custom code in listeners does not work
When adding anything that isn’t an integer or the preset modifier code in the Custom Code Field for a listener the reaction breaks with a syntax error. E.g. error: RemoteScriptError: def _mode1_self_song_tracks_self_track_bank_*_8_+_1_add_mute_listener_id_9(self):
is there any way to use custom code as a listener, not even using the preset listeners? it seems as though whatever you pass into the listener field gets mapped literally to a variable
is there a listener that reacts to any incoming midi and then lets you use that in the reaction? is there a listener that reacts to parameter changes in live and lets you use info about that event in the reaction?
this is in V.2.9.0
I hope this gets solved soon, right now this is a huge bottleneck for me!
Cheers, Theo
You can use custom code in a listener field, but it must resolve to a valid listener target within the Live Object Model or to a valid function/method name in the script.
There isn’t a “any incoming midi” listener. The only similar thing I can think of is adding a ‘receive_midi’ method in your script. it will catch any midi that is not already handled by a control element.
So the input that you move on your controller must not exist in the attached controller template.
def receive_midi(self, midi_bytes):
status = midi_bytes[0]
data1 = midi_bytes[1]
data2 = midi_bytes[2]
self.log_message("csslog: MIDI: %s %s %s" % (status, data1, data2))
Regarding V3, we have a hevily discounted upgrade option if you have previously purchased CSS2. Login to your account on Remotify.io and go to the CSS3 product page, you should see your discounted price there.
Hi, I’m also struggling with custom code in listeners. May I ask for 1-2 simple examples using LOM listeners? For example I tried to change parameter number with variables in “self.song().appointed_device.parameters[1].add_value_listener” but it’s not possible for me to make this work. So, what does “must resolve to a valid listener target” mean ? Kind regards, mj
Sign up
User registration is currently not allowed.
follow up: have you fully stopped supporting and fixing bugs in versions prior to v3?
it would be a shame. i paid good money for the software just before v3 dropped