Need someone with knowlege of sound files

Fred Moyer fmoyer at aol.com
Fri Apr 9 01:42:05 EDT 2010


On Apr 8, 2010, at 1:00 PM, use-revolution-request at lists.runrev.com  
wrote:

> There is (for me) too much latency with using "play audioclip"...  
> But, for your project the latency is perhaps not important... ?

Latency is very important. Is there some way to play sounds in  
Revolution without latency? For example, how does gaming software do  
it? Gaming software must constantly need sounds to be perfectly  
aligned to visual cues.

Thanks
Fred


> Second thing : tick = 1/60 second
> so I prefer use millisecond...
> René
>
> Le 8 avr. 2010 à 15:05, Fred Moyer a écrit :
>
>> Hi Everyone:
>>
>> Thanks for your replies regarding my need for help. Really  
>> impressive stuff that people have sent me. However, it does seem  
>> to be all about Midi. I really need help with audio files (AIFF,  
>> Wave, etc.) For example, I would like to be able to slow down  
>> music without changing pitch, and to string two soundfiles  
>> together to get one long sound file.
>>
>> Here is the most recent project that I am having trouble with: I  
>> am trying to record precisely the point in time that all of the  
>> notes begin in a sound file. Here is how I am doing it (without  
>> success:)
>>
>> I set a global gNoteTimeList to empty, then start a player and tap  
>> the mouse in time with the notes in the music using a simple command:
>>
>> on mousedown
>>   put the currentTime of player 1 after gNoteTimeList
>> end mousedown
>>
>> I then set the callbacks of player 1 using this script:
>>
>> repeat for each line L in gNoteTimeList
>>   put L & ",PlayTick" & cr after theCallBacks
>> end repeat
>> set the callbacks of player 1 to theCallBacks
>>
>> Then I import into my stack an extremely short sound file called  
>> "tick" that is the sound of one tick of a clock and use the  
>> following script
>>
>> On PlayTick
>>   Play audioclip "tick"
>> end PlayTick
>>
>> to play it. When I run the player, it's pretty good, every time I  
>> run the player, "tick" plays in slightly different places. After  
>> lots of testing, it seems that the computer is inexact in both  
>> recording the mouseclicks and in playback of "Tick". I think I am  
>> probably just using the wrong tools for this project.
>>
>> I would really like to stay inside Revolution to complete it. Does  
>> anyone have any ideas?
>>
>> Thanks
>> Fred Moyer




More information about the use-livecode mailing list