shanteacontrols / OpenDeck

Software and hardware platform for simpler building of MIDI controllers.
https://shanteacontrols.com
Apache License 2.0
618 stars 53 forks source link

blackpill401cc - Preset change #185

Closed Wapata closed 1 year ago

Wapata commented 1 year ago

Hi there ! It's been a long time but i've did it, a simple wind controller by using the power of OpenDeck.

So, it's blacpill401cc board, with pressure sensor into Analog 0 / A1, (plus a swicth to put A1 to 3.3volts to bypass the sensor) and a Button 2 / B10. The job is simple, Button 2 should navigate from Preset 1 to 2 and vice versa, Analog 0 should be CC2 on preset 1 and CC11 on preset 2. ... The button work great except if I configure it to "preset change" / "Midi ID : 2" (or 1) then the board send crazy messages.

Here is the response to Button 2 = note (first push), then Button 2 = Preset (second push): `

Time | Event -- | -- 20:47:59 16 | Note On 7channel 1velocity 0Raw data[ 144 7 0 ]  Dec 20:47:59 13 | Note On 6channel 1velocity 0Raw data[ 144 6 0 ]  Dec 20:47:59 10 | Note On 5channel 1velocity 0Raw data[ 144 5 0 ]  Dec 20:47:59 2 | Note On 4channel 1velocity 0Raw data[ 144 4 0 ]  Dec 20:47:59 0 | Note On 3channel 1velocity 0Raw data[ 144 3 0 ]  Dec 20:47:58 998 | Note On 2channel 1velocity 0Raw data[ 144 2 0 ]  Dec 20:47:58 995 | Component infoButton #1Raw data[ 240 0 83 67 1 0 73 1 0 1 247 ]  Dec 20:47:58 990 | Note On 1channel 1velocity 0Raw data[ 144 1 0 ]  Dec 20:47:58 988 | Note On 0channel 1velocity 0Raw data[ 144 0 0 ]  Dec 20:47:58 704 | Note On 2channel 1velocity 0Raw data[ 144 2 0 ]  Dec 20:47:58 489 | Component infoButton #2Raw data[ 240 0 83 67 1 0 73 1 0 2 247 ]  Dec 20:47:58 488 | Note On 2channel 1velocity 127Raw data[ 144 2 127 ]  Dec 20:47:54 37 | 118.  SetValue- Button # 2 Message type17donein11mswaited4msSent[ 240 0 83 67 0 0 1 0 1 1 0 2 0 17 247 ]  DecReceived[ 240 0 83 67 247 ]  DecParsed[] 20:47:44 745 | Component infoButton #2Raw data[ 240 0 83 67 1 0 73 1 0 2 247 ]  Dec 20:47:44 744 | Note On 2channel 1velocity 0Raw data[ 144 2 0 ]  Dec 20:47:44 203 | Component infoButton #2Raw data[ 240 0 83 67 1 0 73 1 0 2 247 ]  Dec 20:47:44 198 | Note On 2channel 1velocity 127Raw data[ 144 2 127 ]  Dec

`

IMG_20221231_201525_322

IMG_20221231_201519_083

paradajz commented 1 year ago

Once the preset is changed, the board will resend all values for buttons and enabled potentiometers. Same thing happens once the USB connection is established.