Page 1 of 2

request for a skip-without-crossfade button

Posted: Sun May 07, 2006 4:25 pm
by wallstreetwalker
hey,

i would very much like a script which would show a button or something to skip (go to the next song) without crossfading.

i 'm using sqrsoft advanced crossfading, sometimes i want a song to fade out when i click skip, but sometimes i just want it to stop immediately and start the next song.

i would also like the same with stop (with or without fading out)

here is how i think it could be done (i'm not sure if stop can be done like this)

i've set sqrsoft so that
when skipping it crossfades, but
on seeking it doesn't.
so if i skip and move the timeslider just a second (seek), crossfading stops.

could this be implemented in a script and made to a button ?

dunno about stop thoo.

i don't think this can be done by configuring sqsrsoft or MM so, please help

is anyone else interested in this?

Posted: Sun May 07, 2006 5:28 pm
by rovingcowboy
you want a script to end sqrcrossfade at the click of a button, then move the song in seek mode for so many seconds then play the song again and turn on the sqrcrossfade back on?

and you want the same script to do the stop button the same way?

is that correct?

onclick = stop crossfade plugin, move timeline of song in seek mode for 15 seconds, start playing song and turn cross fade plugin back on.

how the rest of the code would work i don't know. unless you add a form button in to the mix and have it stop the cross fade but how would you turn on and off a plugin?

8)

Posted: Sun May 07, 2006 6:04 pm
by wallstreetwalker
it could be done that way to, if it is possible to disable the crossfade plugin with a script.

but here is how i do it now:

i click 'next track', crossfading starts, now i move the timeslider like one second and crossfading stops (because crossfade on seek is disabled) so the songs starts playing immediately (in stead of having a crossfade).

i was wondering if this could be automatisized :-? (skip and move slider one second).

but ofcourse something more complex would be nice as well.
like:
1)disable crossfading
2) skip
3) enable crossfading again

dunno what would be the easiest way

Posted: Mon May 08, 2006 4:11 am
by trixmoto
This all hinges on whether you can switch the crossfading off, which surely depends on how you've set the crossfading up?

Posted: Mon May 08, 2006 6:02 am
by wallstreetwalker
well it's just a plugin, what more can i say. :-?

Posted: Mon May 08, 2006 6:14 am
by trixmoto
You could say which plugin!

Posted: Mon May 08, 2006 10:00 am
by Lowlander
I'm not too familiar with the SQRSoft, but I think you can set skip to next track seperatly. So I think you can take the crossfading out of it. I advice you to check the website for help (don't know if it has any) and play with the configuration.

Posted: Mon May 08, 2006 10:18 am
by wallstreetwalker

Posted: Tue May 09, 2006 1:19 pm
by Steegy
i click 'next track', crossfading starts, now i move the timeslider like one second and crossfading stops (because crossfade on seek is disabled) so the songs starts playing immediately (in stead of having a crossfade).
This simple 2 lines script does exactly what you do manually:

NextSongWithoutCrossfade.vbs (for in the Scripts folder)

Code: Select all

Sub NextSongWithoutCrossfade

    SDB.Player.Next
    SDB.Player.PlaybackTime = 0

End Sub

Entry for Scripts.ini:

Code: Select all

[NextSongWithoutCrossfade]
FileName=NextSongWithoutCrossfade.vbs
ProcName=NextSongWithoutCrossfade
Order=15
DisplayName=NextSongWithoutCrossfade
Description=NextSongWithoutCrossfade
Language=VBScript
ScriptType=0

What DirectSound crossfading playback does when the script (or the manual workaround) is started (both things at the same time):
- currently playing song fades out
- next song starts playback immediately (at the full volume)
However, I just want to say that "crossfade on play" and "crossfade on pause/stop" must be enabled, and "crossfade on seek" must be disabled.


What SQRSoft crossfading playback does when the script (or the manual workaround) is started (both things at the same time):
- currently playing song stops immediately (volume 0)
- next song starts playback immediately (at the full volume)

Conclusion: this workaround only works with SQRSoft crossfading. On DirectSound crossfading, it only works partially.

Cheers
Steegy

Posted: Tue May 09, 2006 1:27 pm
by Steegy
Sorry, you wanted a button. The following code will add a new "play next song" button to the standard toolbar.


NextSongWithoutCrossfade.vbs (for the Scripts/Auto folder)

Code: Select all

Sub OnStartup 

    SDB.UI.AddMenuItemSep SDB.UI.Menu_TbStandard, 0, 0
	
    Dim TBItem : Set TBItem = SDB.UI.AddMenuItem(SDB.UI.Menu_TbStandard, 0, 0) 
    TBItem.Caption = "Next Song Without Crossfade"
    TBItem.OnClickFunc = "NextSongWithoutCrossfade" 
    TBItem.UseScript = Script.ScriptPath 
    TBItem.IconIndex = 4

End Sub 




Sub NextSongWithoutCrossfade(TBItem)

    SDB.Player.Next
    SDB.Player.PlaybackTime = 0

End Sub
Cheers
Steegy

thank you

Posted: Sun May 14, 2006 7:10 pm
by wallstreetwalker
thanks alot steegy !

it works perfect! :lol:

i'm using it all the time

if i want to skip a song i don't like i use this button so i don't have to hear the intro crossfading


...and sorry for late reply

Posted: Sun May 14, 2006 8:04 pm
by wallstreetwalker
ow, one more thing

is there an easy way to assign a key tot it like
'ctrl + b' or something.

would be great (er) :D

Posted: Sun May 14, 2006 8:15 pm
by Steegy
Yes, adding

Code: Select all

TBItem.ShortCut = "Ctrl+B"
behind "TBItem.IconIndex = 4" should do the trick.

I say should because there were problems with shortcut keys some time ago. I don't know if it works now.

If it doesn't work, then use the following:


NextSongWithoutCrossfade.vbs (for in the Scripts\Auto folder)

Code: Select all

Sub OnStartup 

    SDB.UI.AddMenuItemSep SDB.UI.Menu_TbStandard, 0, 0 
    
    Dim TBItem : Set TBItem = SDB.UI.AddMenuItem(SDB.UI.Menu_TbStandard, 0, 0) 
    TBItem.Caption = "Next Song Without Crossfade" 
    TBItem.OnClickFunc = "NextSongWithoutCrossfade" 
    TBItem.UseScript = Script.ScriptPath 
    TBItem.IconIndex = 4 

End Sub 




Sub NextSongWithoutCrossfade(TBItem) 

    Call NextSongWithoutCrossfade_DoIt

End Sub



Sub NextSongWithoutCrossfade_DoIt

    SDB.Player.Next 
    SDB.Player.PlaybackTime = 0 

End Sub
Entry for Scripts.ini:

Code: Select all

[NextSongWithoutCrossfade] 
FileName=Auto\NextSongWithoutCrossfade.vbs 
ProcName=NextSongWithoutCrossfade_DoIt 
Order=15 
DisplayName=NextSongWithoutCrossfade 
Description=NextSongWithoutCrossfade
Shortcut=Ctrl+B 
Language=VBScript 
ScriptType=0
Cheers
Steegy

Posted: Mon May 15, 2006 5:38 am
by wallstreetwalker
works perfect again!

i also added a button myself, i edited your script now i also have a button to stop crossfade (in case i already clicked skip (with crossfade) )

Code: Select all

Sub OnStartup 

    SDB.UI.AddMenuItemSep SDB.UI.Menu_TbStandard, 0, 0 
    
    Dim TBItem : Set TBItem = SDB.UI.AddMenuItem(SDB.UI.Menu_TbStandard, 0, 0) 
    TBItem.Caption = "Stop Crossfade" 
    TBItem.OnClickFunc = "StopCrossfade" 
    TBItem.UseScript = Script.ScriptPath 
    TBItem.IconIndex = 4 

End Sub 


Sub StopCrossfade(TBItem) 
 
    SDB.Player.PlaybackTime = 0 

End Sub

Re: request for a skip-without-crossfade button

Posted: Tue Feb 17, 2009 5:01 am
by Beemer
Source: http://www.wanderings.net/notebook/Main ... rossfading

I love the MediaMonkey player, but it bugged me that the beginning of the next track always plays over the end of the last track. This feature is called "crossfading," but it was not clear to me how to adjust it. Here's the path to the crossfading settings...
Tools | Options | Output plug-ins | MediaMonkey DirectSound output | Configure
OR to turn crossfading off entirely, go to the Play menu and uncheck the option Crossfade.