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!
"get_note" and "remove_note" function formats
-
Shalom_Ashanti
- Posts: 6
- Joined: Wed May 29, 2013 5:59 am
-
chapelier fou
- Posts: 6352
- Joined: Mon May 15, 2006 12:15 pm
Re: "get_note" and "remove_note" function formats
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
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
MacBook Pro 13" Retina i7 2.8 GHz OS 10.13, L10.0.1, M4L.
MacStudio M1Max 32Go OS 12.3.1
MacStudio M1Max 32Go OS 12.3.1
-
Shalom_Ashanti
- Posts: 6
- Joined: Wed May 29, 2013 5:59 am
Re: "get_note" and "remove_note" function formats
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.
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.
-
Shalom_Ashanti
- Posts: 6
- Joined: Wed May 29, 2013 5:59 am
Re: "get_note" and "remove_note" function formats
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
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
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
-
metastatik
- Posts: 318
- Joined: Tue Mar 13, 2007 3:28 pm
Re: "get_note" and "remove_note" function formats
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.
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.
Site: http://www.nativekontrol.com
Facebook: https://www.facebook.com/nativeKONTROL/
YouTube: https://www.youtube.com/user/Stray411
Facebook: https://www.facebook.com/nativeKONTROL/
YouTube: https://www.youtube.com/user/Stray411