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: xavierbdm on Jan 09, '06 07:28:58AM
Here is a version that:
- gets rid of one or two bugs in the above lines
- keeps same volume setting between iTunes and QuickTime player
- allows for manual entry of rate (default is 1.33) (we don't need the Finder for the dialog!)
- brings QuickTime player to front, so you can stop/close if need be.

tell application "iTunes"
	set currentVolume to sound volume
	pause
	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:" default answer speed buttons {"OK"} default button 1
set speed to text returned of the result

tell application "QuickTime Player"
	open my_track
	set my_movie to first movie
	set ts to time scale of my_movie
	set current time of my_movie to my_seconds * ts
	set sound volume of my_movie to currentVolume
	set rate of my_movie to speed -- starts playing
end tell
As usual, paste Script Editor, save in ~/Library/iTunes/Scripts/ (or somewhere else if your script menu is activated, but then this works too)

---
iMac G4 17 800/512/80 + powerbook firewire G3 500/512/30

[ Reply to This | # ]

Listen to podcasts at 1.33x speed and at same volume
Authored by: xhide on Jan 13, '06 09:38:45PM

maintain same volume only works when "Sound Check" is enabled in iTunes preferences playback setting. For those with "Sound Check" disabled need to delete the lines where set sound volume.

Thanks for the tips



[ Reply to This | # ]
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 | # ]