Closed deanfra closed 3 years ago
Hey @deanfra!
Thanks for your feedback! I haven't used setNotes in a while, but I can take a look at what's going wrong with it tomorrow. I'll keep you posted :)
Thanks very much!
Just some more testing around notes: | function | result |
---|---|---|
selectAllNotes |
Works | |
removeNotes |
Works (with a warning popup in Ableton 11) | |
deselectAllNotes |
Throws Error: Function call failed: deselectAllNotes doesn't exist or isn't callable . |
|
getNotes |
Throws Error: get_notes() argument after ** must be a mapping, not list |
|
replaceSelectedNotes |
Throws Clip.replace_selected_notes(Clip, list) did not match C++ signature: replace_selected_notes(TPyHandle<AClip>, boost::python::tuple) |
Thanks
Hi again, I was able to figure out how to make setNotes
work again in Ableton 11:
clip.ts
, in the function setNotes
, the argument doesn't need a wrapping array, so it can be changed toreturn this.sendCommand("set_notes", notes.map(noteToTuple));
Thanks for your insights! I'll push a fix for it soon :)
Great work, thanks!
Hey @deanfra!
Sorry for the long delay. I've created a fix and will release it in the next version :)
@leolabs Thanks!
Hi, I'm enjoying this library very much.
One issue I've noticed (using Ableton 11) is that using
set_notes
on a Clip (and possibly other Set commands) will throw this error.My JS code looks like this
I've attempted to define a custom setter in
Clip.py
that converts a List to Tuple, but then it throws a similar type errorI've exhausted my rudimentary Python knowledge so I thought I'd raise a ticket, thanks! 😄
https://github.com/leolabs/ableton-js/blob/2d89342d70f16a07427d17ec9fa43bc48c865d9e/midi-script/Interface.py#L102