Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Listen to podcasts at 1.33x speed and at same volume' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Listen to podcasts at 1.33x speed and at same volume
Authored by: htlmac on Jun 13, '06 11:30:47PM
the ranges of sound volume differ between iTune and QTime.
thus,

set sound volume of my_movie to 256 * (currentVolume / 100)

as iTune has min 0 and max 100 while QTime has 256 as 100%.


here is my reversion:

tell application "iTunes"
play -- in case not already playing
pause
set currentVolume to sound volume
set my_track to location of current track
set my_seconds to player position
end tell

set speed to "1.33"
display dialog "Enter Rate (0.50 ~ 3.00):" default answer speed buttons {"OK"} default button 1
set speed to text returned of the result

tell application "QuickTime Player"
set show av controls window to true
set show equalizer to true
set show movie info window to true

open my_track
set my_movie to first movie
set sound volume of my_movie to 256 * (currentVolume / 100)
set rate of my_movie to speed
set treble gain of my_movie to -100
set current time of my_movie to (my_seconds * (time scale of my_movie))
end tell

display dialog "Click OK to return to 1x:" buttons {"OK"} default button 1

tell application "QuickTime Player"
set my_movie to first movie
set my_seconds to ((current time of my_movie) / (time scale of my_movie))
set auto play of my_movie to false
set auto present of my_movie to false
set auto quit when done of my_movie to true
close my_movie
end tell


tell application "iTunes"
set player position to my_seconds
play
end tell


[ Reply to This | # ]