Hi,
I am new to scripts. In fact, this is my first one.
I use Foobar for my backtracks. I want to be able to scroll up and down my playlist using "next" and "prev" buttuns in OSC. For example I would like to push the "next" button repeatedly until I get to the right song and then Foobar has to wait until I click on the "play" button. Unfortunately, when Foobar gets to the correct song, it starts playing the song immediately.
So the plan is to send 2 CC messages every time I push the button. For example, when I push the "next" button, OSC must send CC#27 (= next) and 100msec after that send CC#23 (= stop).
This is my attempt, but I get an error message:
{
"widgets": [{
"name": "myButton",
"type": "button",
"x": 100,
"y": 100,
"width": 100,
"height": 50,
"label": "Click Me!",
"ontouchstart": "/send_midi",
"ontouchend": "/send_midi_23"
}],
"pages": [{
"name": "main",
"widgets": ["myButton"]
}],
"controls": [{
"name": "send_midi",
"args": {
"port": "oscMIDI",
"type": "cc",
"channel": 15,
"control": 27,
"value": 120
},
"schedule": {
"delay": 0
}
},
{
"name": "send_midi_23",
"args": {
"port": "oscMIDI",
"type": "cc",
"channel": 15,
"control": 23,
"value": 120
},
"schedule": {
"delay": 0.1
}
}
]
}