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.
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)...
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!