Cortinas V1-12
-
- Posts: 401
- Joined: Thu Sep 27, 2007 4:19 pm
- Location: Connecticut
Cortinas V1-12
This script is in response to this request:
http://www.mediamonkey.com/forum/viewto ... na#p166572
I'm not sure if this script is still desired as I did not get any response from PM to the requestor. Perhaps others
could use it or it could be adapted for other purposes.
Use Tools/Options/Cortinas to set options:
- check to randomize the song selection
- check to randomize the cortinas list
- set the number of songs per set
- set the number of cortinas per song set
- specify the playlist that contains the Cortinas (default is Cortinas)
Right-click a selection in the maintracks window and select Cortinas
The song sets and cortinas will be copied to the Now Playing window
A V1-12 installation package is available here: http://www.mediafire.com/?mzwygnznlwy
Any/all comments are welcome.
History
26-Feb-2009 Added ability to fade-out the Cortina after a user-settable time (30-40 seconds typical).
Use tools/options/cortinas to set time (in seconds) for the cortina to play
Click on Play/Cortinas to enable/disable the Cortinas event timer
27-Feb-2009 Set Cortinas to be enabled by default at startup
Increased fade-out fade-in time to 5 seconds
27-Feb-2009 Allow a 0 value in Cortina Play Timer which results in playing the entire track - no timer gets triggered
28-Feb-2009 Changed method to fadein-out - to address performance issue
1-Mar-2009 Added ability to select start time of Cortina
Added ability to set fade-in and fade-out time
In addition to making a selection in the Main Tracks Window you can now select a node or
playlist to arrange the Cortinas in the Now Playing window
2-Mar-2009 Set default setting per request
Added a pop-up form with Cortina Track info as well as Cortina Time Remaining counter
3-Mar-2009 V1-9 adds a checkbox in options to enable/disable the pop-up form
4-Mar-2009 Fixed/smoothed out a glitch transitioning between tracks
13-Mar-2090 Tweaked the fader routine to make it more linear and smoother.
http://www.mediamonkey.com/forum/viewto ... na#p166572
I'm not sure if this script is still desired as I did not get any response from PM to the requestor. Perhaps others
could use it or it could be adapted for other purposes.
Use Tools/Options/Cortinas to set options:
- check to randomize the song selection
- check to randomize the cortinas list
- set the number of songs per set
- set the number of cortinas per song set
- specify the playlist that contains the Cortinas (default is Cortinas)
Right-click a selection in the maintracks window and select Cortinas
The song sets and cortinas will be copied to the Now Playing window
A V1-12 installation package is available here: http://www.mediafire.com/?mzwygnznlwy
Any/all comments are welcome.
History
26-Feb-2009 Added ability to fade-out the Cortina after a user-settable time (30-40 seconds typical).
Use tools/options/cortinas to set time (in seconds) for the cortina to play
Click on Play/Cortinas to enable/disable the Cortinas event timer
27-Feb-2009 Set Cortinas to be enabled by default at startup
Increased fade-out fade-in time to 5 seconds
27-Feb-2009 Allow a 0 value in Cortina Play Timer which results in playing the entire track - no timer gets triggered
28-Feb-2009 Changed method to fadein-out - to address performance issue
1-Mar-2009 Added ability to select start time of Cortina
Added ability to set fade-in and fade-out time
In addition to making a selection in the Main Tracks Window you can now select a node or
playlist to arrange the Cortinas in the Now Playing window
2-Mar-2009 Set default setting per request
Added a pop-up form with Cortina Track info as well as Cortina Time Remaining counter
3-Mar-2009 V1-9 adds a checkbox in options to enable/disable the pop-up form
4-Mar-2009 Fixed/smoothed out a glitch transitioning between tracks
13-Mar-2090 Tweaked the fader routine to make it more linear and smoother.
Last edited by raybeau528 on Fri Mar 13, 2009 5:10 pm, edited 16 times in total.
Re: Cortinas V1-0
Ray:
I was looking for that specific information a Cortina Script, I can not test it now, I'll do it tonight and I'll get back to you with comments.
Thanks!
MurrayHS
I was looking for that specific information a Cortina Script, I can not test it now, I'll do it tonight and I'll get back to you with comments.
Thanks!
MurrayHS
Re: Cortinas V1-0



I got an error when I run the script.
The error was related to SDB.IniFile.flush()
I commented it out by placing a single quote anywhere before Call SDB.IniFile.flush()
And the script runs excellent. At least I didn’t find any other problem yet.
------------------------------------------------------------------------------------------------------
Is there anyway to play the Cortina song for 30 or 40 seconds, fade that out and jump to the next song?

In the Cortina Playlist we could place any song and with this kind of control play it for just 30 or 40 seconds and then fadeout and play the next sets of songs from the master playlist.
That will be a great option to have.
Currently I edit the music and I placed it into the Cortina playlist.
-
- Posts: 401
- Joined: Thu Sep 27, 2007 4:19 pm
- Location: Connecticut
Re: Cortinas V1-0
The flush command works with the latest beta version of MM. No harm commenting it out.
I don't know much about the Cortinas but thought they already were very small tracks ? 30-40 seconds? I think there are other scripts available that can play a track for a select amount of time. I'll see if something like that can be incorporated into this script.
Edit: As I think about this, there are some new events that might help (but they only work with the beta version at this time). There could be some that work with the current released version which I'll check into. Basically I'm thinking an event could be set to trigger when a song starts. The event routine would check if the current playing song is also in the Cortinas playlist. If so, it would set a timer such as 30 seconds at which time a routine would force it to fade to the next song. The timer amount would be set by you in the options panel.
Ray
I don't know much about the Cortinas but thought they already were very small tracks ? 30-40 seconds? I think there are other scripts available that can play a track for a select amount of time. I'll see if something like that can be incorporated into this script.
Edit: As I think about this, there are some new events that might help (but they only work with the beta version at this time). There could be some that work with the current released version which I'll check into. Basically I'm thinking an event could be set to trigger when a song starts. The event routine would check if the current playing song is also in the Cortinas playlist. If so, it would set a timer such as 30 seconds at which time a routine would force it to fade to the next song. The timer amount would be set by you in the options panel.
Ray
Re: Cortinas V1-0
Thanks! Ray
As today I have MM 3.0.7.1191 installed on my pc.
What you described is exactly what I’d like to have.
If you find the solution for the beta release, just let me know, I can install it to try it.
I don’t know much about MM scripting but I saw something like SDB.Player.PlaybackTime
Is that the event that you are looking for?
Murray
As today I have MM 3.0.7.1191 installed on my pc.
What you described is exactly what I’d like to have.
If you find the solution for the beta release, just let me know, I can install it to try it.
I don’t know much about MM scripting but I saw something like SDB.Player.PlaybackTime
Is that the event that you are looking for?
Murray
-
- Posts: 401
- Joined: Thu Sep 27, 2007 4:19 pm
- Location: Connecticut
Re: Cortinas V1-0
What I think I need is an event that is triggered anytime a song starts playing. That event would then execute a routine which would check to see if the current playing song is also in the cortinas playlist and if so then initiate a timer which then causes the current song to fade out to the next song in the now playing list. I should be able to work on that this eventing and hopefully post an update later.
Ray
Ray
-
- Posts: 401
- Joined: Thu Sep 27, 2007 4:19 pm
- Location: Connecticut
Re: Cortinas V1-1
Murray,
A new version is available. It should work with the current released version of MM. It does as I proposed previously - basically every time a track starts playing, it checks of the track is also in the Cortinas playlist. If it is, then it starts a timer set by you in the options panel. When the time expires, the volume is faded to 0 and the next track starts and the volume is brought back to original setting. Let me know how that works for you or if you have any issues.
Ray
A new version is available. It should work with the current released version of MM. It does as I proposed previously - basically every time a track starts playing, it checks of the track is also in the Cortinas playlist. If it is, then it starts a timer set by you in the options panel. When the time expires, the volume is faded to 0 and the next track starts and the volume is brought back to original setting. Let me know how that works for you or if you have any issues.
Ray
Re: Cortinas V1-1
WOWOW!
I'll try it tonight before midnight. I'll post my comments for you tomorrow morning.
Thanks in advance for your help, your enforce!
Have a great! Night!
Best!
Murray.
I'll try it tonight before midnight. I'll post my comments for you tomorrow morning.
Thanks in advance for your help, your enforce!
Have a great! Night!
Best!
Murray.
Re: Cortinas V1-1
Ray:
The idea that you got is perfect, I saw the script runing 2 times well.
then... I don't know why... stop running
I don't see the Cortina Item on the drop-down menu anymore,
I still seen the one located where the options are.
That one seen to working well.
when I select the music and click the right click of the mouse
I can not see the cortina option anymore
I closed MM and opened it again and again, turn off PC
and uninstall and re-install it, with no luck
But the Version 1 still working well.
One more thing that will be nice to have.
The Fade-out Delay... the one that you set is maybe 2 or 3 seconds,
it will be nice to go for around 5 sec.
anyways... this one is a really small detail.
I'm really happy with the first result that you got until stopped working.
Time for me to sleep.
Thanks! again and have a good night
Murray
The idea that you got is perfect, I saw the script runing 2 times well.
then... I don't know why... stop running
I don't see the Cortina Item on the drop-down menu anymore,
I still seen the one located where the options are.
That one seen to working well.
when I select the music and click the right click of the mouse
I can not see the cortina option anymore
I closed MM and opened it again and again, turn off PC
and uninstall and re-install it, with no luck
But the Version 1 still working well.
One more thing that will be nice to have.
The Fade-out Delay... the one that you set is maybe 2 or 3 seconds,
it will be nice to go for around 5 sec.
anyways... this one is a really small detail.
I'm really happy with the first result that you got until stopped working.
Time for me to sleep.
Thanks! again and have a good night
Murray
-
- Posts: 401
- Joined: Thu Sep 27, 2007 4:19 pm
- Location: Connecticut
Re: Cortinas V1-1
Murray,
Did you see this in the first post?
Click on Play/Cortinas to enable/disable the Cortinas event timer
I added this 'feature' to be able to turn the event timer on/off.
I'll look at making it ON by default at startup as well as add some more silence between tracks. No problem.
Ray
Did you see this in the first post?
Click on Play/Cortinas to enable/disable the Cortinas event timer
I added this 'feature' to be able to turn the event timer on/off.
I'll look at making it ON by default at startup as well as add some more silence between tracks. No problem.
Ray
-
- Posts: 401
- Joined: Thu Sep 27, 2007 4:19 pm
- Location: Connecticut
Re: Cortinas V1-1
New version is available which enables Cortinas by default at startup and changes the fade-out fade-in time to 5 secs.
Re: Cortinas V1-1
I tested the new version this morning seen to be working perfectly!!!!!
Click on Play/Cortinas to enable/disable the Cortinas event timer.
I don’t remember that line at all. Maybe I saw it the first time that I run the script the script.sorry
--------------------------- New Improvement -------------------
Basically:
There is a Cortina Playlist.
1 -If the song is part of the Cortina Playlist
2- Play the track for a selected amount of time (Default Time 30 s.)
3- The volume is faded to 0
4- Jump to next song
I didn’t try it, maybe these option are already in your script.
2. What if the timer set by the user in the options panel is equal to 0 ?
Expire time = 0.
o Will the script play the track full length?
This option can be a good one, play the full length of the song.
The script can be use to mix to different play-list choosing how many song do the user want to play from the master list and/or how many tracks from the secondary play-list to be play ( in this cases Cortina Playlist)
3. if the timer set by user is = 0
• Avoid Volume faded to 0
o Volume faded to zero is not necessary, normally the tracks are already edited and faded out by the editor.
What do you think about it?
Murray
Click on Play/Cortinas to enable/disable the Cortinas event timer.
I don’t remember that line at all. Maybe I saw it the first time that I run the script the script.sorry
--------------------------- New Improvement -------------------
Basically:
There is a Cortina Playlist.
1 -If the song is part of the Cortina Playlist
2- Play the track for a selected amount of time (Default Time 30 s.)
3- The volume is faded to 0
4- Jump to next song
I didn’t try it, maybe these option are already in your script.
2. What if the timer set by the user in the options panel is equal to 0 ?
Expire time = 0.
o Will the script play the track full length?
This option can be a good one, play the full length of the song.
The script can be use to mix to different play-list choosing how many song do the user want to play from the master list and/or how many tracks from the secondary play-list to be play ( in this cases Cortina Playlist)
3. if the timer set by user is = 0
• Avoid Volume faded to 0
o Volume faded to zero is not necessary, normally the tracks are already edited and faded out by the editor.
What do you think about it?
Murray
-
- Posts: 401
- Joined: Thu Sep 27, 2007 4:19 pm
- Location: Connecticut
Re: Cortinas V1-1
Yes, this is how it works now.1 -If the song is part of the Cortina Playlist
2- Play the track for a selected amount of time (Default Time 30 s.)
3- The volume is faded to 0
4- Jump to next song
So basically your request is if the play timer for the cortina is set to 0 then don't do anything, just let it play like any other song (like the way it was before I added the timer) ?
Ray
-
- Posts: 401
- Joined: Thu Sep 27, 2007 4:19 pm
- Location: Connecticut
Re: Cortinas V1-3
V1-3 is now available which allows a 0 value in the cortina play time. The entire track will then be played.
Ray
Ray
Re: Cortinas V1-3
Ray,
I just wanted to send you a quick message.
the Script works GREAT!
I'm using it and I see no problem at all with it!
THANKS!!!! and I saw many other comments, no doubts you are the BEST!
Enjoy your weekend!
I'll be in touch with you!
Murray
I just wanted to send you a quick message.
the Script works GREAT!
I'm using it and I see no problem at all with it!
THANKS!!!! and I saw many other comments, no doubts you are the BEST!
Enjoy your weekend!
I'll be in touch with you!
Murray