laidlaw42 / ableton-live-midi-remote-scripts

Scripts for creating custom MIDI Remote Scripts in Ableton Live.
MIT License
118 stars 34 forks source link

Fader->Encoder: Absolute vs. Relative mode #8

Open dashezzl opened 7 months ago

dashezzl commented 7 months ago

Hey there, very happy to find your script and tutorial, helped me alot. I want to map the encoders from my Beatstep to volume faders in ableton. its working fine with absolute mode, but not doing much in relative 1/2/3 mode (Arturia Midi Control Center) Is there any workaround? thank you!

laidlaw42 commented 5 months ago

I have no idea! But there's probably a way to set this in the scripts. I will have a look but can't promise anything, I don't have a beatstep anymore and very limited time to work on this outside of work/life.

It be worth looking at other controller scripts for an insight here's the decompiled set

laidlaw42 commented 5 months ago

Looks like you'd use one of these: Live.MidiMap.MapMode.relative_smooth_two_compliment Live.MidiMap.MapMode.relative_binary_offset `Live.MidiMap.MapMode.relative_signed_bit'

Implementing it is beyond me at the moment. I found these in the aforementioned de-compiled MIDI remote scripts.

Seems you'd have to import EncoderElement into the main script YourControllerName.py and change the _load_MIDI_map function.

Here's an example I found: def make_encoder(identifier, name): return EncoderElement(MIDI_CC_TYPE, 0, identifier, (Live.MidiMap.MapMode.relative_smooth_signed_bit), name=name)