speeding up audio

LiveCode is the premier environment for creating multi-platform solutions for all major operating systems - Windows, Mac OS X, Linux, the Web, Server environments and Mobile platforms. Brand new to LiveCode? Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
bidgeeman
Posts: 495
Joined: Wed Feb 21, 2007 7:58 am

speeding up audio

Post by bidgeeman » Tue Oct 27, 2009 10:44 pm

Does anyone know if it's possible to put effects into an audio file using Rev? Like adjusting the speed or pitch?

Thanks
Bidge

bn
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 4172
Joined: Sun Jan 07, 2007 9:12 pm

Post by bn » Tue Oct 27, 2009 11:14 pm

Hi Bidge,

look at the playrate. Normal is 1, below 1 slower above faster, negative numbers backwards.

I just made a slider with the values betweeen -2 and 2 the numberformat set to 0.00 and the script of the slider

Code: Select all

on scrollbardrag tValue
   set the playrate of player 1 to tValue
end scrollbardrag
sounds funny, is fun.

regards
Bernd

bidgeeman
Posts: 495
Joined: Wed Feb 21, 2007 7:58 am

Post by bidgeeman » Tue Oct 27, 2009 11:47 pm

WOW Bernd!! :D

The only problem I had was the slider is controlling the players reverse and forwards playback. Sliding to the negative value makes the player play backwards chipmonk and sliding to the positive value makes the player play forwards chipmonk.

Is there any way of making it so that you can adjust the slider first without the player playing, then press a button to hear the adjusted audio?

Cheers
Bidge

bn
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 4172
Joined: Sun Jan 07, 2007 9:12 pm

Post by bn » Tue Oct 27, 2009 11:57 pm

Bidge,

Code: Select all

on mouseUp
   start player 1
   set the playrate of player 1 to the thumbposition of scrollbar 1
end mouseUp
in a button will start the player at the playrate you set on the scrollbar/slider.
regards
Bernd

bidgeeman
Posts: 495
Joined: Wed Feb 21, 2007 7:58 am

Post by bidgeeman » Wed Oct 28, 2009 12:30 am

Bernd. Thanks. That is so cool :)
I can't seem to get the slider to read a value of .05. I set the start value at -2 and end value at 2 but it won't increment in .01,.02 etc

Anyone?
Many thanks again.
Cheers
Bidge

bn
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 4172
Joined: Sun Jan 07, 2007 9:12 pm

Post by bn » Wed Oct 28, 2009 12:34 am

Bidge,
in the property inspector for the slider there is number format. set it to 0.00 and make the slider wide enough, that should do it.
regards and good night.
Bernd

bidgeeman
Posts: 495
Joined: Wed Feb 21, 2007 7:58 am

Post by bidgeeman » Wed Oct 28, 2009 12:37 am

Thanks again bernd. Youre a great help mate.

Cheers
Bidge

Post Reply