CC commands via Up/Down Switches #wanted #UnO2


alexis@...
 

Hi there,

I am searching for a solution to get to a - in my first thought - relatively easy sounding goal. My previous research has found that this maybe was a bit naively thinking from me :D

 

I want to send an individual CC command per switch every time I press one of the 12 (!) foot switches. So same function for all 0-9 as well as up/down switches.

 

I don’t need to change banks with up/down. I only need these 12 CC commands.

 

Best would be in something like ‘trigger mode’ so that the lights only lighten up when pressing (not toggle). But that’s not a must.

 

Is there any possibility? I think I read that in UnO2 there is a possibility to give the up/down Buttons other functions than selecting banks. If yes, I would really appreciate if someone could share a hint ore maybe a code basis?

 

Best regards

Alexis


alexis@...
 

So since there was no reply yet, I'd like to share the script I worked on today.

 

Requirements:

  1. Only one bank
  2. An individual CC command per foot pedal every time one of the 12 (!) foot pedals is pressed.
  3. So: Up/down pedals same function as the other 1-10 `normal` pedals
  4. Exception: Pedal 4: When pressed, open relay 1 for a really short time (not toggle)
  5. General: Only Channel 16 used (CC01-CC14)
  6. Every Pedal in `trigger mode’ so that the lights only lighten up when pressing (not toggle).
  7. Express-Pedal: Channel 16 CC 13 resp. CC 14; 0-127 no matter what preset I’m in

 

Code:

 

// Defining the 12 triggers:

 

TRIGGERS =

{

1 _Git_1

2 _Git_2

3_Bass

4 _Trigger_CV

5_Play_all

6_Tas1

7_Tas2

8_Tas3

9_Rol_Midi

10_delete

11_up

12_down

}

 

// Up/down pedals same function as the other 1-10 `normal` pedals:

 

NO_UPDOWN_SWITCHES

 

// Defining the one and only bank „Looper“:

 

BANKS  = 

{
Looper : 1 _Git_1 | 2 _Git_2 | 3_Bass | 4 _Trigger_CV | 5_Play_all | 6_Tas1 | 7_Tas2 | 8_Tas3 | 9_Rol_Midi | 10_delete | 11_up | 12_down

}

CHANNEL Looper = 16

 

// Defining the Pedals (generic naming because of yada yada)

 

INIT_FCB =
{

Pedal 1 = Pedal_1

Pedal 2 = Pedal_2

 

// Defining what the triggers do:

TRIGGER_CLICK  1_Git_1 = SendMidi Looper CtrlChange 1 127 

TRIGGER_CLICK  2 _Git_2 = SendMidi Looper CtrlChange 2 127 

TRIGGER_CLICK  3_Bass = SendMidi Looper CtrlChange 3 127 

TRIGGER_CLICK  4 _Trigger_CV = Open  Relay1

TRIGGER_CLICK  5_Play_all = SendMidi Looper CtrlChange 5 127 

TRIGGER_CLICK  6_Tas1 = SendMidi Looper CtrlChange 6 127 

TRIGGER_CLICK  7_Tas2 = SendMidi Looper CtrlChange 7 127 

TRIGGER_CLICK  8_Tas3 = SendMidi Looper CtrlChange 8 127 

TRIGGER_CLICK  9_Rol_Midi = SendMidi Looper CtrlChange 9 127 

TRIGGER_CLICK  10_delete = SendMidi Looper CtrlChange 10 127 

TRIGGER_CLICK  11_up = SendMidi Looper CtrlChange 11 127 

TRIGGER_CLICK  12_down = SendMidi Looper CtrlChange 12 127 

 

// Defining what the pedals do:

 

SWEEP Pedal_1 = SendMidi Looper CtrlChange 13 0-127

SWEEP Pedal_2 = SendMidi Looper CtrlChange 14 0-127

I would be very happy if someone could review and give some feedback for the code as this would affect if I'm going to order UnO2.

Cheers
Alexis