diff options
author | cbdev <cb@cbcdn.com> | 2017-12-02 17:33:17 +0100 |
---|---|---|
committer | cbdev <cb@cbcdn.com> | 2017-12-02 17:33:17 +0100 |
commit | 04e248a5e75e677f71b504cd9ad7f6ecf17b00a9 (patch) | |
tree | eb593c44be62c477377276977f3d5d8514ef40c6 | |
parent | 06a87606cdef8af477c4341d764102c0d3f3e7e2 (diff) | |
download | midimonster-04e248a5e75e677f71b504cd9ad7f6ecf17b00a9.tar.gz midimonster-04e248a5e75e677f71b504cd9ad7f6ecf17b00a9.tar.bz2 midimonster-04e248a5e75e677f71b504cd9ad7f6ecf17b00a9.zip |
Simplify config parsing, OSC keyboard sample config
-rw-r--r-- | config.c | 3 | ||||
-rw-r--r-- | configs/osc-kbd.cfg | 25 |
2 files changed, 26 insertions, 2 deletions
@@ -213,8 +213,7 @@ int config_read(char* cfg_file){ else{ //pass to parser //find separator - for(separator = line; *separator && *separator != '='; separator++){ - } + separator = strchr(line, '='); if(!*separator){ fprintf(stderr, "Not an assignment: %s\n", line); diff --git a/configs/osc-kbd.cfg b/configs/osc-kbd.cfg new file mode 100644 index 0000000..0abd131 --- /dev/null +++ b/configs/osc-kbd.cfg @@ -0,0 +1,25 @@ +; Maps a TouchOSC simpl keyboard layout to MIDI notes + +[backend midi] +name = MIDIMonster + +[midi out] +write = FLUID + +[osc pad] +bind = * 8000 +dest = learn@8001 + +[map] +pad./1/push1 > out.note0.60 +pad./1/push2 > out.note0.61 +pad./1/push3 > out.note0.62 +pad./1/push4 > out.note0.63 +pad./1/push5 > out.note0.64 +pad./1/push6 > out.note0.65 +pad./1/push7 > out.note0.66 +pad./1/push8 > out.note0.67 +pad./1/push9 > out.note0.68 +pad./1/push10 > out.note0.69 +pad./1/push11 > out.note0.70 +pad./1/push12 > out.note0.71 |