request for a skip-without-crossfade button

Download and get help for different MediaMonkey for Windows 4 Addons.

Moderators: Peke, Gurus

wallstreetwalker
Posts: 150
Joined: Wed Dec 07, 2005 9:56 am

request for a skip-without-crossfade button

Post 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?
PUNK IN DRUBLIC
rovingcowboy
Posts: 14163
Joined: Sat Oct 25, 2003 7:57 am
Location: (Texas)
Contact:

Post 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)
roving cowboy / keith hall. My skins http://www.mediamonkey.com/forum/viewto ... =9&t=16724 for some help check on Monkey's helpful messages at http://www.mediamonkey.com/forum/viewto ... 4008#44008 MY SYSTEMS.1.Jukebox WinXp pro sp 3 version 3.5 gigabyte mb. 281 GHz amd athlon x2 240 built by me.) 2.WinXP pro sp3, vers 2.5.5 and vers 3.5 backup storage, shuttle 32a mb,734 MHz amd athlon put together by me.) 3.Dell demension, winxp pro sp3, mm3.5 spare jukebox.) 4.WinXp pro sp3, vers 3.5, dad's computer bought from computer store. )5. Samsung Galaxy A51 5G Android ) 6. amd a8-5600 apu 3.60ghz mm version 4 windows 7 pro bought from computer store.
wallstreetwalker
Posts: 150
Joined: Wed Dec 07, 2005 9:56 am

Post 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
PUNK IN DRUBLIC
trixmoto
Posts: 10024
Joined: Fri Aug 26, 2005 3:28 am
Location: Hull, UK
Contact:

Post by trixmoto »

This all hinges on whether you can switch the crossfading off, which surely depends on how you've set the crossfading up?
Download my scripts at my own MediaMonkey fansite.
All the code for my website and scripts is safely backed up immediately and for free using Dropbox.
wallstreetwalker
Posts: 150
Joined: Wed Dec 07, 2005 9:56 am

Post by wallstreetwalker »

well it's just a plugin, what more can i say. :-?
PUNK IN DRUBLIC
trixmoto
Posts: 10024
Joined: Fri Aug 26, 2005 3:28 am
Location: Hull, UK
Contact:

Post by trixmoto »

You could say which plugin!
Download my scripts at my own MediaMonkey fansite.
All the code for my website and scripts is safely backed up immediately and for free using Dropbox.
Lowlander
Posts: 56491
Joined: Sat Sep 06, 2003 5:53 pm
Location: MediaMonkey 5

Post 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.
wallstreetwalker
Posts: 150
Joined: Wed Dec 07, 2005 9:56 am

Post by wallstreetwalker »

PUNK IN DRUBLIC
Steegy
Posts: 3452
Joined: Sat Nov 05, 2005 7:17 pm

Post 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
Extensions: ExternalTools, ExtractFields, SongPreviewer, LinkedTracks, CleanImport, and some other scripts (Need Help with Addons > List of All Scripts).
Steegy
Posts: 3452
Joined: Sat Nov 05, 2005 7:17 pm

Post 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
Extensions: ExternalTools, ExtractFields, SongPreviewer, LinkedTracks, CleanImport, and some other scripts (Need Help with Addons > List of All Scripts).
wallstreetwalker
Posts: 150
Joined: Wed Dec 07, 2005 9:56 am

thank you

Post 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
PUNK IN DRUBLIC
wallstreetwalker
Posts: 150
Joined: Wed Dec 07, 2005 9:56 am

Post 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
PUNK IN DRUBLIC
Steegy
Posts: 3452
Joined: Sat Nov 05, 2005 7:17 pm

Post 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
Extensions: ExternalTools, ExtractFields, SongPreviewer, LinkedTracks, CleanImport, and some other scripts (Need Help with Addons > List of All Scripts).
wallstreetwalker
Posts: 150
Joined: Wed Dec 07, 2005 9:56 am

Post 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
PUNK IN DRUBLIC
Beemer

Re: request for a skip-without-crossfade button

Post 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.
Post Reply