I would like to be able to crossfade from one song to the next within Kjams. I know there are some scripts out there to allow iTunes to fade in when a Kjams song is ending. That's cool, but I need to be able to fade in the Kjams song that's selected as the next song as the currently playing Kjams tune is fading out. I used to be able to do this with 2 standalone players and a mixing board.
Forgive me if I'm missing something. Is this already possible? If so, how is it done? If not, then please mark this down as a requested feature.
Thanks.
Crossfade within Kjams (not between Kjams & iTunes)
-
- Posts: 4
- Joined: Thu Jul 01, 2010 1:17 pm
Re: Crossfade within Kjams (not between Kjams & iTunes)
we all want that. trust that it will happen. i'm currently putting out dozens of fires WRT the Windows release.
-
- Posts: 4
- Joined: Thu Jul 01, 2010 1:17 pm
Re: Crossfade within Kjams (not between Kjams & iTunes)
Thanks Dave. If you say it'll happen then I know it will. Thanks. Is there a script workaround of some sort available until you do your magic?
-
- Posts: 1293
- Joined: Sun Apr 20, 2008 9:57 am
- Location: Pittsburgh, PA
- Contact:
Re: Crossfade within Kjams (not between Kjams & iTunes)
OK, while that is not technically possible in the current workings of kJams (this would require two simultaneous transport streams) it IS possible to make kJams auto fade down at the end of each song and then autofade up the next song. You can use the bones of the new autocrossfader for iTunes to write it, and use the code I wrote for sensing the end of the currently playing kJams song to trigger the end fade out, and the next song fade in.
I am actually planning to write a skip to next track script that does a lot of this already, minus the automatic trigger. (I don't like automatic things, as it decreases my flexibility.) I can post that if you would find that helpful.
I am actually planning to write a skip to next track script that does a lot of this already, minus the automatic trigger. (I don't like automatic things, as it decreases my flexibility.) I can post that if you would find that helpful.
Re: Crossfade within Kjams (not between Kjams & iTunes)
i think folks would enjoy that.
-
- Posts: 1293
- Joined: Sun Apr 20, 2008 9:57 am
- Location: Pittsburgh, PA
- Contact:
Re: Crossfade within Kjams (not between Kjams & iTunes)
Well, hopefully "folks" will let me know!
Code: Select all
tell application "kJams Pro"
set kSpeakers to 0
--sets how long in seconds between each step in the fade
set fadeDelay to 0.1
set kScriptCommand_Next to 4
--Get current audio volume from kJams
set kJamsMaxVolume to get volume kSpeakers
set kJamsVolume to kJamsMaxVolume
set fadeSteps to 20
--sets how much in percentage the volume is decreased per step
set kJFadeStep to kJamsMaxVolume / fadeSteps
--this is the minimum volume setting
set MinVolume to 0
repeat until (kJamsVolume ≤ 0)
set kJamsVolume to (kJamsVolume - kJFadeStep)
set volume kSpeakers level kJamsVolume
delay fadeDelay
end repeat
docommand kScriptCommand_Next
set volume kSpeakers level kJamsMaxVolume
end tell