Page 1 of 2

Creating a setlist template

Posted: 23 Feb 2012 16:45
by Inglev
I want to create a template, where its easy to shuffle the different songs around each night. One night the songs might go "a, b, c, d, e" and the next they might go "c, d, a, b, e". Does anyone have a great idea for this? Or does anyone know of an existing template?

I'm trying this atm: having a container with, say, 10 tabs - one for each song. You would have to change the order of the tabs each night depending on the setlist order. Also, my wish is to hide the tab bar and just have a "Next song" button, so I don't have to remember the order of the songs while I'm playing.

But when i create this script for the "next" button:

selecttab(Container,+1);

it just selects tab number 1. Is there a specific name for the container tab number? Like 'current_tab' or just 'tab'?

Thanks in advance!
-Inglev

Re: Creating a setlist template

Posted: 23 Feb 2012 23:27
by Macciza
Hi
Mu guess is it is ignoring the lus sign, which it probably should . . .
You probably should st this as a variable that you can change and then reference it in selecttab() . . .

Different ways of doing this depending on whether you want control or random listing

For full control I would probably do several menus with song names that feed there tab numbers into an array,
then step through the array with your next page button or something along that line of thought . .

For randomness, there is a rand function that you could use, though you would probably need non-repetition
I guess you could program an 'urn' type function that combines these and spits out a non-repeating array

Hope that helps
Cheers
MM

Re: Creating a setlist template

Posted: 27 Feb 2012 10:08
by Inglev
Macciza wrote:Hi
Mu guess is it is ignoring the lus sign, which it probably should . . .
You probably should st this as a variable that you can change and then reference it in selecttab() . . .

Different ways of doing this depending on whether you want control or random listing

For full control I would probably do several menus with song names that feed there tab numbers into an array,
then step through the array with your next page button or something along that line of thought . .

For randomness, there is a rand function that you could use, though you would probably need non-repetition
I guess you could program an 'urn' type function that combines these and spits out a non-repeating array

Hope that helps
Cheers
MM
Thank you for the reply,

but how do I declare the tab number to a variable? I've tried

decl n;
n=getattribute(Container,'current_tab');

but that doesn't seem to work. It's the 'current_tab' part I'm in doubt of. Thats why I asked if the tabs has a 'name'? I can't seem to find it anywhere...

Re: Creating a setlist template

Posted: 27 Feb 2012 12:04
by Macciza
Hi
No - there is no attribute for currently selected tab . . .

Have a look at this and see if it helps . . .

Cheers
MM

Re: Creating a setlist template

Posted: 27 Feb 2012 12:19
by Inglev
Wow, thanks a lot! That template is a huge help :).

Re: Creating a setlist template

Posted: 27 Feb 2012 15:44
by lABl
Hi Iglev,

if you need to add a random list feature, (I did some like that but for Patterns) you could add the module attached to Macciza's work.
rndOrderjzlib4.jzlib
(4.85 KiB) Downloaded 166 times
Cheers,
AB

Re: Creating a setlist template

Posted: 27 Feb 2012 16:37
by Macciza
Thanks AB

I thought about random functions, bounds checking, and editability but just went with plain vanilla in the end . .

Thanks for the random thing - had been thinking about rand / noise functions a bit lately,

Cheers
MM

Re: Creating a setlist template

Posted: 27 Feb 2012 18:29
by lABl
No problem Macciza,

Yes, I like random functions too, the previous script has some possiblities for sequence generation, I think it could to has some feature more like max URN outlets.

Cheers,
AB

Re: Creating a setlist template

Posted: 01 Apr 2012 11:26
by Inglev
Macciza wrote:Hi
No - there is no attribute for currently selected tab . . .

Have a look at this and see if it helps . . .

Cheers
MM
Sorry to bring this up again, but if I want to change the code to a kind of "Select previous song" I can't get it to work. I've tried to change the +1 to -1, but that doesn't seem to work... :/. I'm new to all this advanced scripting, so bare with me :).

Thanks
Inglev

Re: Creating a setlist template

Posted: 01 Apr 2012 12:48
by Inglev
Actually, here's the template I'm working on. That'll probably give you a better idea of what I'm working on.

Right now the "Prev" button is set up with the same script code as the "Next" button, but they run on separate indexes (tab_index and tab_index_rev - the latter is just the reversed order of tab_index). Which doesn't work at all... actually it' s terrible way of doing it :P...

The first interface is the "playing" part. The container with all the object I'll be using live is there. The second interface is the "set list editor" part, where i create a setlist of 10 songs with the 10 menus.

Also, I've got another problem. When I hit the "next" button, I want the Lemur to send a Midi message to Ableton Live, so I can trigger the scene that match the song on the Lemur display. I've tried using the "On Frame" trigger on a script, but that just sends a constant stream of Midi CC messages... and that's not so handy :).

I hope someone can help!
Thanks!