Need someone with knowlege of sound files

Colin Holgate coiin at verizon.net
Thu Apr 8 09:20:10 EDT 2010


Look at using Send. You may be able to compensate for the timing errors, at least on playback. Here's a pseudo code strategy:

Make a list that represents the start ticks plus the value of each note tick value. For example, if you start the playback at exactly 4000 ticks after starting up Rev, the numbers might read: 4000, 4010, 4040, 4120 and so on.

Do a play tick right away, and before playing the sound, do some math to figure out when the next tick should happen. A bit like this:

on playtick
    put item nexttick of allticks - the ticks into tickgap
    send playtick to me in 
    add 1 to nexttick
    play tick
End playtick

The idea is that no matter how later this note got played, the next note would be on time. 


More information about the use-livecode mailing list