Creating a setlist template

Discuss Lemur and share techniques.
Inglev
Newbie
Posts: 8
Joined: 23 Feb 2012 16:37

Creating a setlist template

Post 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
Macciza
Regular
Posts: 1315
Joined: 07 Dec 2011 04:57
Location: Sydney, Australia.

Re: Creating a setlist template

Post 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
iMac 2.8G i7 12G 10.6.8/10.7.2, Legacy Dexter/Lemur, Liine Lemur/iPad2, KMI SoftStep, 12Step & QuNeo , B-Controls, Mackie C4 etc
MaxMSP, Live Suite, Native Instrument stuff, etc Modified Virtual Guitar System etc All Projects/Modules © CC-BY-NC-SA[*][/b]
Inglev
Newbie
Posts: 8
Joined: 23 Feb 2012 16:37

Re: Creating a setlist template

Post 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...
Macciza
Regular
Posts: 1315
Joined: 07 Dec 2011 04:57
Location: Sydney, Australia.

Re: Creating a setlist template

Post by Macciza »

Hi
No - there is no attribute for currently selected tab . . .

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

Cheers
MM
Attachments
^SetList_Tabs.jzml
(5.95 KiB) Downloaded 178 times
iMac 2.8G i7 12G 10.6.8/10.7.2, Legacy Dexter/Lemur, Liine Lemur/iPad2, KMI SoftStep, 12Step & QuNeo , B-Controls, Mackie C4 etc
MaxMSP, Live Suite, Native Instrument stuff, etc Modified Virtual Guitar System etc All Projects/Modules © CC-BY-NC-SA[*][/b]
Inglev
Newbie
Posts: 8
Joined: 23 Feb 2012 16:37

Re: Creating a setlist template

Post by Inglev »

Wow, thanks a lot! That template is a huge help :).
lABl
Lemur Guru
Posts: 269
Joined: 09 Dec 2011 15:56
Contact:

Re: Creating a setlist template

Post 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 165 times
Cheers,
AB
Macciza
Regular
Posts: 1315
Joined: 07 Dec 2011 04:57
Location: Sydney, Australia.

Re: Creating a setlist template

Post 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
iMac 2.8G i7 12G 10.6.8/10.7.2, Legacy Dexter/Lemur, Liine Lemur/iPad2, KMI SoftStep, 12Step & QuNeo , B-Controls, Mackie C4 etc
MaxMSP, Live Suite, Native Instrument stuff, etc Modified Virtual Guitar System etc All Projects/Modules © CC-BY-NC-SA[*][/b]
lABl
Lemur Guru
Posts: 269
Joined: 09 Dec 2011 15:56
Contact:

Re: Creating a setlist template

Post 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
Inglev
Newbie
Posts: 8
Joined: 23 Feb 2012 16:37

Re: Creating a setlist template

Post 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
Inglev
Newbie
Posts: 8
Joined: 23 Feb 2012 16:37

Re: Creating a setlist template

Post 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!
Attachments
Asbjorn2.jzml
(87.42 KiB) Downloaded 141 times
Post Reply