Add custom python code that generate MIDI signal, note or CC

323 viewsCSS Questionsmidi notes
0

Hello,

is it possible in Action for reactions to add custom python code (switch to custom coding) that generate MIDI signal, note or CC?
I tried, but do not have expiriece in pytoh, and did not get any results.

My idea for this is that for different conditions in Reaction to generate differnet MIDI notes/CC, and that MIDI notes/CC can be usted for example with BOEME MIDI creator or Autohotkey to trigger something else outside of Ableton (not for playing music, but for some functions).

pedjableton Answered question February 8, 2025
0

You can send midi to the connected midi controller with reactions. midi controller > send raw midi data to controller.

JohnC Answered question February 7, 2025
0

Hello JohnC,

I did this:

In reactions, Listener is press button on controller, and Action is

MIDI Controller – send raw data to controller,  Enter custom code : 0xb0,  and code looks like this (switch on custom coding): self._send_midi(0xb0).

In Ableton through MIDI Monitor+ its visible only MIDI signal from (Listener in reaction) Button. The same is in the BOEME MIDI translator. midi data 0xb0 is not visible.

JohnC Posted new comment February 8, 2025

This is only sent to the connected midi controller, not to Ableton or other.

0

Thak you JohnC,

CSS is a great visual scripting program with huge capabilities. Maybe I’m asking too much.

Glenn Verhaeghe Posted new comment February 9, 2025

There’s a lot of stuff possible but the “how to” is not always easy to come by. I’m hoping that when we get a decent database of information running on the forum, things will eventually get more clear.