Send CC values back to controller

In a galaxy far away in a time far back I tinkered with Midibox stuff. I once built a Midibox SEQ4. From that time some spare parts were left. One is the core of the midibox ecosystem, a STM32 F4 module with carrier board. Together with MidiboxNG I want to build a controller with 16 encoders and 16 small Oled scribblestrips. MidiboxNG is a kind of script language for creating controllers.

So I created a test setup to get a proof-of-concept.

the only code needed for this is:

RESET_HW

DIO  port=J10A  emu_din_sr=1

ENC n=  1   sr=1 pins=0:1   type=detented1

EVENT_ENC id=1 fwd_to_lcd=1 type=CC chn= 1 cc= 16 lcd_pos=1:1:1 label=“%C&bENC #%2i @(1:1:5)%d”

This code sends CC16 on channel 1 to midi out (first of 4 virtual USB midi devices) and udpdates the text on screen.

Zynthian recognized the 4 midi devices and I can learn a zynthiancontrol to the controller, no problem, so sending midi works.

The MidiboxNG app is designed to receive midi too. When I send midi CC16 on channel 1 to the controller the oled updates the value and after that, the encoder resumes with the new value. I have tested this and it works.

My question, is it possible te send the zynthian-encoder value back to the controller when I turn the encoder on the Zynthian itself.

Cheers, Kees

4 Likes

Sounds like a job for a piece of crtldev code….

This is a mechanism for including python code in the definition of a device driver so that miracles can be performed with a standardized interface.

Best search on the forum for details and document freely with pictures, bells and marching bands.