Page 1 of 1
"get_note" and "remove_note" function formats
Posted: Wed May 29, 2013 6:18 pm
by Shalom_Ashanti
Hi. This is my first post. So, I can't find anywhere in the M4L documentations the proper format to use in Max to send the "get_note" and "remove_note" functions to a Live Clip. There is no example in the docs, and no patcher example either. Can someone please help me out with the order and content of the messages I'd have to send to the [live.object] in Max?
Thanks!
Re: "get_note" and "remove_note" function formats
Posted: Wed May 29, 2013 6:32 pm
by chapelier fou
from the LOM changes :
Note format is (pitch, time, duration, velocity, is_muted)
get_notes(from_time, from_pitch, time_span, pitch_span) Returns a list of notes that start in the given area just like get_selected_notes remove_notes(from_time, from_pitch, time_span, pitch_span) Deletes all notes that start in the given area
set_notes(list_of_notes) Will apply the given notes to the clip, overwriting existing notes
Re: "get_note" and "remove_note" function formats
Posted: Wed May 29, 2013 7:32 pm
by Shalom_Ashanti
Dear chapelier,
Thanks but I already know that. What I meant with format was specific to the Max way of sending these messages, which is not easy to figure out if you rely only on the LOM docs. For instance, if I would want to sent a list of notes, I would send the following to the [live.object] object:
call set_notes;
call notes x (number of notes);
call note x (list of each note's pitch, starttime, etc.);
call done
Since the "remove_notes" function has different parameters than "set_notes", I still can't use the right format syntax, to make these changes. Please help me out with a clear example such as above.
Re: "get_note" and "remove_note" function formats
Posted: Wed May 29, 2013 11:41 pm
by Shalom_Ashanti
Hi, it's me again. I reckon this is not the most visited forum, but the lack of response so far heightens my suspicion that my question is perhaps too low-level. At last I haven't found any reference so far to it, and there's no Max patch to help me figure out the remove_note format. How can I contact the Ableton people to ask them directly? I'm trying to find an address on their site but all they offer is a phone (I'm very far from their offices) and tons of FAQs.
Re: "get_note" and "remove_note" function formats
Posted: Thu May 30, 2013 8:42 am
by S4racen
Go to the cycling 74 forum, it has a much better attended max4live forum....
You first need to select all notes from memory to delete one...
I do it in Both Isotonik and Oktopad to delete a note entirely from a clip... took me about two weeks to get it working properly...
Cheers
D
Re: "get_note" and "remove_note" function formats
Posted: Thu May 30, 2013 10:56 am
by metastatik
The format is just like chapelier mentions, just without the parentheses. For example, to remove all the notes that exist from beat 2 to 3 in a 4/4 clip:
live.function remove_notes 1. 0 1. 128
1. – start deleting at beat 2
0 – start deleting at the lowest possible note
1. – delete for 1 beat
128 – delete for all 128 notes
As another example, to remove a single 1/16th note (say note C3) that exists at a single position (say beat 1):
live.function remove_notes 0. 60 0.25 1
0. – start deleting at beat 1
60 – start deleting at note 60 (C3)
0.25 – delete for 1/16th note
1 – delete for 1 note (just note 60)
The format of get_notes is identical to remove_notes.