Quantcast
Viewing all articles
Browse latest Browse all 139

General Discussion • Re: Next and Previous Track's Names

I was just thinking, as NowPlaying can not write the Track's name other than the one already playing, that I could do something like this:

I) For Next Track:
If Track is not changed, then it will be empty.

If Track is changed:
1. When the Track is changed - It is changed as 2 Tracks Ahead and Back 1 time.
2. Writing 2nd Track's name to some variable.
3. Referencing it to some meter as String.

If Shuffle is On, and is not jumbled always (Single Shuffle - till the end of the playlist), we can or can not repeat the same steps as above.
If Repeat is On, then it will be empty.

II) For Previous Track:
1. Writing the Current Track to some variable.
2. Referencing it to some meter when the track changes to next.

Would this work? If yes, then how can I implement this? I have not seen anyone do this so far and I'm not tech savvy.

Edit: Just noticed I posted this in Tips & Tricks Section - where defined ones go.. How can I change/shift this topic to General Discussion?
I believe both things can be achieved:
I. Just use [!CommandMeasure YourNowPlayingMeasure "Next"] two times one after another, and the "Previous" equivalent once (possibly with a [!Delay NumberOfMilliseconds] between them), and do your thing at the desired moment
II. Use an OnChangeAction or and OnUpdateAction on the track measure and add a [!SetVariable LastTrack "#CurrentTrack#"][!SetVariable CurrentTrack "[YourTrackMeasure]"] to it (in that order), then use the variable as desired
The above might need some DynamicVariables=1 lines in the sections where those volatile variables (or [section variables]) are used, potentially the nested syntax for [#variables] or [&measures] if the value of the just changed variable/ measure is needed on the same line, but other than that, it shouldn't be hard to achieve what you want.

Statistics: Posted by Yincognito — December 21st, 2023, 5:42 pm



Viewing all articles
Browse latest Browse all 139

Trending Articles