by rycher » Sat Jul 05, 2008 9:14 am
Hello,
A short while ago, while I was still using MM2, I saw this thread
http://www.mediamonkey.com/forum/viewto ... &sk=t&sd=a where someone made a script to keep logical groups of track together. Basically, you put a common tag in a custom field for tracks that should run together (like whole sides (!) of Pink Floyd's albums, or songs that have an intro in a separate track). When such a track started playing, the script automatically added the following tracks from its group just after it in Now Playing.
I modified the script so it also added the previous track from its group before it, and started playing at the first track of the group. This way, I could use AutoDJ, and be sure that whatever track was added to Now Playing, it would always play complete logical groups that I tagged.
This worked well in MM2. But then I upgraded to MM3, and it does not behave the same.
What I see when MM3 starts playing a linked track, it's that the original track starts playing, and it takes at least 5 seconds before the other tracks are added to the playlist (in MM2 that was instantaneous). But they are added before and after the current track (and the current does not change), so the tracks before never play. More clearly, if 1, 2 and 3 are linked and only 2 is in Now Playing and starts to play, it takes 5 seconds before 1 is added before and 3 is added after. So 2 and 3 play, but not 1. With the same scenario in MM2, track 2 didn't have time to start playing, the other tracks were added and track 1 started playing without any audio glitch (like there would be if track 2 started playing before the manipulation was completed).
In my script, when the current track was linked, before adding the tracks I went to the previous track (using SDB.Player.Previous), then added the other linked tracks at the right position (before or after the original track), and then went to the next track (using SDB.Player.Next) which was now the first track of the linked group. But the next and previous commands now do nothing. It does not give any error message, it just does not do what it did in MM2. I even tried using Stop before the whole manipulation and then Play at the end, those do nothing either. I checked in the scripting documentation but did not see anything.
How come this does not work anymore? Is there another way to do what I want in MM3?
Just when I had the behaviour I wanted, I lose it... But there are other features only in MM3 that I want to keep, so I wouldn't want to have to go back to MM2.
Thanks in advance for your help,
Rycher
Hello,
A short while ago, while I was still using MM2, I saw this thread [url]http://www.mediamonkey.com/forum/viewtopic.php?f=2&t=8464&st=0&sk=t&sd=a[/url] where someone made a script to keep logical groups of track together. Basically, you put a common tag in a custom field for tracks that should run together (like whole sides (!) of Pink Floyd's albums, or songs that have an intro in a separate track). When such a track started playing, the script automatically added the following tracks from its group just after it in Now Playing.
I modified the script so it also added the previous track from its group before it, and started playing at the first track of the group. This way, I could use AutoDJ, and be sure that whatever track was added to Now Playing, it would always play complete logical groups that I tagged.
This worked well in MM2. But then I upgraded to MM3, and it does not behave the same.
What I see when MM3 starts playing a linked track, it's that the original track starts playing, and it takes at least 5 seconds before the other tracks are added to the playlist (in MM2 that was instantaneous). But they are added before and after the current track (and the current does not change), so the tracks before never play. More clearly, if 1, 2 and 3 are linked and only 2 is in Now Playing and starts to play, it takes 5 seconds before 1 is added before and 3 is added after. So 2 and 3 play, but not 1. With the same scenario in MM2, track 2 didn't have time to start playing, the other tracks were added and track 1 started playing without any audio glitch (like there would be if track 2 started playing before the manipulation was completed).
In my script, when the current track was linked, before adding the tracks I went to the previous track (using SDB.Player.Previous), then added the other linked tracks at the right position (before or after the original track), and then went to the next track (using SDB.Player.Next) which was now the first track of the linked group. But the next and previous commands now do nothing. It does not give any error message, it just does not do what it did in MM2. I even tried using Stop before the whole manipulation and then Play at the end, those do nothing either. I checked in the scripting documentation but did not see anything.
How come this does not work anymore? Is there another way to do what I want in MM3?
Just when I had the behaviour I wanted, I lose it... But there are other features only in MM3 that I want to keep, so I wouldn't want to have to go back to MM2.
Thanks in advance for your help,
Rycher