- auto iterated tab/widget unique ids if not set in session file

- docs, wip
This commit is contained in:
jean-emmanuel 2015-09-17 13:58:01 +02:00 • committed by bordun
parent a93e8dc9c8
commit 60967e0e89
8 changed files with 124 additions and 53 deletions

View file

@ -5,34 +5,27 @@ TABS = function(){
var tabs = new Array()
tabs.push(function(){
var tab = {}
tab.id = 'Audio Surface'
tab.widgets = new Array()
for (i in [0,1,2,3,4,5,6,7,8,9]) {
tab.widgets.push({
id:'strip_'+i,
type:'strip',
widgets: [
{
id:'w0'+i,
type:"knob",
target:target
},
{
id:'w1'+i,
type:"switch",
values:['ozehfozeizadz',1,2],
values:[0,1,2],
target:target
},
{
id:'w2'+i,
type:"fader",
target:target
},
{
id:'w3'+i,
type:"toggle",
mode:"horizontal",
target:target
// color:'orange'
}

View file

@ -1727,13 +1727,13 @@ TABS =
},
{
id: "Gates",
mode:"stack",
stack:true,
widgets: [
{
id: "Gate_Kick",
label: "Kick",
type: "strip",
mode:"horizontal",
horizontal:true,
widgets: [
{
id: "Gate_LF_Kick",
@ -1810,7 +1810,7 @@ TABS =
id: "Gate_Snare",
label: "Snare",
type: "strip",
mode:"horizontal",
horizontal:true,
widgets: [
{
id: "Gate_LF_Snare",
@ -1887,7 +1887,7 @@ TABS =
id: "Gate_Tom1",
label: "Tom1",
type: "strip",
mode:"horizontal",
horizontal:true,
widgets: [
{
id: "Gate_LF_Tom1",
@ -1964,7 +1964,7 @@ TABS =
id: "Gate_Tom2",
label: "Tom2",
type: "strip",
mode:"horizontal",
horizontal:true,
widgets: [
{
id: "Gate_LF_Tom2",
@ -2041,7 +2041,7 @@ TABS =
id: "Gate_Tom3",
label: "Tom3",
type: "strip",
mode:"horizontal",
horizontal:true,
widgets: [
{
id: "Gate_LF_Tom3",
@ -3905,13 +3905,13 @@ TABS =
},
{
id: "Gates",
mode:"stack",
stack:true,
widgets: [
{
id: "Gate_Vx_Dag",
label: "Vx_Dag",
type: "strip",
mode:"horizontal",
horizontal:true,
widgets: [
{
id: "Gate_LF_Vx_Dag",
@ -3988,7 +3988,7 @@ TABS =
id: "Gate_Vx_ORL",
label: "Vx_ORL",
type: "strip",
mode:"horizontal",
horizontal:true,
widgets: [
{
id: "Gate_LF_Vx_ORL",