Crossfade within Kjams (not between Kjams & iTunes)

Is kJams missing a feature you need? Post it here! Note: if iTunes has it but kJams doesn't, it's a good bet kJams will have it, but that I just haven't gotten around to it yet. But go ahead and request it anyway!
Post Reply
KaraokeinMD
Posts: 4
Joined: Thu Jul 01, 2010 1:17 pm

Crossfade within Kjams (not between Kjams & iTunes)

Post by KaraokeinMD »

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.

dave
Site Admin
Posts: 6688
Joined: Sun Sep 18, 2005 8:02 am
Location: Seattle
Contact:

Re: Crossfade within Kjams (not between Kjams & iTunes)

Post by dave »

we all want that. trust that it will happen. i'm currently putting out dozens of fires WRT the Windows release.

KaraokeinMD
Posts: 4
Joined: Thu Jul 01, 2010 1:17 pm

Re: Crossfade within Kjams (not between Kjams & iTunes)

Post by KaraokeinMD »

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?

dave
Site Admin
Posts: 6688
Joined: Sun Sep 18, 2005 8:02 am
Location: Seattle
Contact:

Re: Crossfade within Kjams (not between Kjams & iTunes)

Post by dave »


DeusExMachina
Posts: 1293
Joined: Sun Apr 20, 2008 9:57 am
Location: Pittsburgh, PA
Contact:

Re: Crossfade within Kjams (not between Kjams & iTunes)

Post by DeusExMachina »

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.

dave
Site Admin
Posts: 6688
Joined: Sun Sep 18, 2005 8:02 am
Location: Seattle
Contact:

Re: Crossfade within Kjams (not between Kjams & iTunes)

Post by dave »

i think folks would enjoy that.

DeusExMachina
Posts: 1293
Joined: Sun Apr 20, 2008 9:57 am
Location: Pittsburgh, PA
Contact:

Re: Crossfade within Kjams (not between Kjams & iTunes)

Post by DeusExMachina »

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

dave
Site Admin
Posts: 6688
Joined: Sun Sep 18, 2005 8:02 am
Location: Seattle
Contact:

Re: Crossfade within Kjams (not between Kjams & iTunes)

Post by dave »

:shock:

Post Reply