General

Creating a setlist template

Started by Inglev on .

Sign in or create an account to join the conversation.

13 posts

Topic starter
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
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
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...
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
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
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
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!

Asbjorn2.jzml
Hi
For your Prev script you could use this
decl t;

t = current_tab;

if (t>0) //if not at  0 tab
{
t=t-1; // decrement peeeeeeeeeeeeeeeeeeeee
selecttab(Set,tab_index[t]);
current_tab = t;
}
else // if it is at the 0 tab
{
selecttab(Set,tab_index[sizeof(tab_index)-1]); // set tab to last element
current_tab = sizeof(tab_index)-1;
}
Then just have 1 current_tab var and 1 tab_index to deal with,

For the scenes - you already have the tab index and a trigger with the Next/Prev scripts so use them.
How do you want to sent the scene messages? Fit that into the script.

Hope that helps
MM
I tried making a CustomMidi with the controller as "tab_index+80" (making the CC's 80-89) and the trigger "next_song", but that just triggers the next_song script all the time... i spaces out...
I'll try to make a script with the "if" and "else" commands, sending different midi CC's depending on the sizeof(tab_index)...
Hi again.

I'm bringing up my old topic here, because I need help updating my template. I've used the template for a long time now, with the help of the scripting being shown to me ind this thread (again, thanks alot for the help Macciza!). Now I'm trying to add more songs to the "set" container, but this seems to bug out the "next" button I've made. The "Next" command wont go any further than song nr. 12, and the "Prev" button and command skips some songs. Can't really put my finger on the problem...

Hope some of you guys can help!

I'm starting to wonder if I should build up the whole template form the beginning again, this time placing songs in different pages, and not in a single container. Maybe the whole "Next" and "Prev" thing will be easier that way?

Also there seems to be a limit to the amount of characters you can put in an index. I cant put any more songs in the template, because the "tab_index" is filled up!

-Inglev

Asbjorn2013.jzml