-
Notifications
You must be signed in to change notification settings - Fork 0
Linux Cfg Example
Charlie FG edited this page Dec 27, 2015
·
1 revision
The following is a fully working example of a Linux based .cfg file used by StrangePad to configure StrangeIO.
{
"system": {
"threads": {
"workers" : 3
},
"linux": {
"sched_policy" : "SCHED_FIFO",
"sched_priority" : 3
}
},
"midi" : {
"LaunchControl" : {
"port" : "hw:1,0,0",
"led_on" : 144,
"led_off": 128
}
},
"rack": {
"mainlines" : [{"plug":"ac1"},{"plug":"ac2"}],
"daisychains" : [
{ "from" : "rack", "plug" : "ac1", "to" : "flac1", "jack" : "power" },
{ "from" : "rack", "plug" : "ac2", "to" : "flac2", "jack" : "power" },
{ "from" : "flac1", "plug": "audio", "to" : "delay_c1", "jack": "audio_in" },
{ "from" : "delay_c1", "plug": "audio", "to" : "mastermix", "jack": "channel_a" },
{ "from" : "flac2", "plug": "audio", "to" : "delay_c2", "jack": "audio_in" },
{ "from" : "delay_c2", "plug": "audio", "to" : "mastermix", "jack": "channel_b" },
{ "from" : "mastermix", "plug": "audio", "to" : "masterout", "jack": "audio_in" }
],
"flac1" : {
"unit" : "SuFlac",
"library": "./units/SuFlac.rso",
"bindings" : {
"pause" : { "module": "LaunchControl" , "code":73 }
},
"leds" : {
"ready": { "module": "LaunchControl", "code": 73, "value": 15, "mode": "steady" },
"streaming": { "module": "LaunchControl", "code": 73, "value": 60, "mode": "steady" }
}
},
"flac2" : {
"unit" : "SuFlac",
"library": "./units/SuFlac.rso",
"bindings" : {
"pause" : { "module": "LaunchControl" , "code":74 }
},
"leds" : {
"ready": { "module": "LaunchControl", "code": 74, "value": 15, "mode": "steady" },
"streaming": { "module": "LaunchControl", "code": 74, "value": 60, "mode": "steady" }
}
},
"mastermix" : {
"unit" : "SuMixer",
"library": "./units/SuMixer.rso",
"bindings" : {
"master_gain" : { "module": "LaunchControl" , "code":50 },
"channel_a_gain" : { "module": "LaunchControl" , "code":49 },
"channel_b_gain" : { "module": "LaunchControl" , "code":51 }
}
},
"masterout": {
"unit" : "SuAlsa",
"library" : "./units/SuAlsa.rso",
"config" : {
"device" : "strangeio",
"period_size" : "128",
"trigger" : "256",
"sched_policy" : "SCHED_FIFO",
"sched_priority" : "3"
}
},
"delay_c1": {
"unit" : "SuDelay",
"library" : "./units/SuDelay.rso",
"bindings" : {
"toggle" : { "module": "LaunchControl" , "code":91 },
"volume" : { "module": "LaunchControl" , "code":35 },
"decay" : { "module": "LaunchControl" , "code":55 },
"reset_toggle" : { "module": "LaunchControl" , "code":59 },
"reset_buffer" : { "module": "LaunchControl" , "code":19 }
},
"leds" : {
"priming": { "module": "LaunchControl", "code": 91, "value": 63, "mode": "steady" },
"ready": { "module": "LaunchControl", "code": 91, "value": 15, "mode": "steady" },
"filtering": { "module": "LaunchControl", "code": 91, "value": 60, "mode": "steady" }
}
},
"delay_c2": {
"unit" : "SuDelay",
"library" : "./units/SuDelay.rso",
"bindings" : {
"toggle" : { "module": "LaunchControl" , "code":92 },
"volume" : { "module": "LaunchControl" , "code":36 },
"decay" : { "module": "LaunchControl" , "code":56 },
"reset_toggle" : { "module": "LaunchControl" , "code":60 },
"reset_buffer" : { "module": "LaunchControl" , "code":20 }
},
"leds" : {
"priming": { "module": "LaunchControl", "code": 92, "value": 63, "mode": "steady" },
"ready": { "module": "LaunchControl", "code": 92, "value": 15, "mode": "steady" },
"filtering": { "module": "LaunchControl", "code": 92, "value": 60, "mode": "steady" }
}
}
}
}