I need to populate a list with the MIDI notes that are being pressed, and remove the note from the list when the key is released.
One idea is to use [notein], and if the velocity is> 0 then add the note to the list, and if the velocity == 0 then remove the note from the list. But I have no idea of how to implement this.
I think I need [list-extend], [list-find], and [list-delete], but I just can't figure out an implementation.
How can I do this?
If you are on Pd-extended I would suggest using [cyclone/coll]. That's what I am using. Much easier than working with regular lists.
Ingo
-----Ursprüngliche Nachricht----- Von: Pd-list [mailto:pd-list-bounces@lists.iem.at] Im Auftrag von JC Pedroza Gesendet: Dienstag, 11. November 2014 13:54 An: pd-list@lists.iem.at Betreff: [PD] How to add/remove MIDI notes from a list using MIDI in and note on/off?
I need to populate a list with the MIDI notes that are being pressed, and remove the note from the list when the key is released.
One idea is to use [notein], and if the velocity is> 0 then add the note to the list, and if the velocity == 0 then remove the note from the list. But I have no idea of how to implement this.
I think I need [list-extend], [list-find], and [list-delete], but I just can't figure out an implementation.
How can I do this? _______________________________________________ Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
I finally solved this.
Used a combination of [list-extend], [list-find], [list-delete] for the list dynamics and [notein] for MIDI input. The patch first separates the MIDI note messages by velocity (0 velocity is note-off). If note-on then it adds the note to the list, if note-off it removes the note from the list.
When the patch receives a bang, it outputs the list with all the keys (MIDI notes) that are being pressed.
I'm including the patch as attachment. You can also get it at: http://raw.githubusercontent.com/JCPedroza/puredata/master/tools/MIDI_io/lis...
There are two important subpatches. [pd on_off_route] routes the MIDI-note-on notes to one side, and MIDI-note-off notes to the other. [pd list-deletevalue] deletes a value from a given list, outputs the list unchanged if the value was not found.
It surely can be improved. Let me know if you find something.
Thanks everyone for your time and help, I really appreciate it.
From: ingo@miamiwave.com To: nemesis4go10@hotmail.com; pd-list@lists.iem.at Subject: AW: [PD] How to add/remove MIDI notes from a list using MIDI in and note on/off? Date: Tue, 11 Nov 2014 14:43:33 +0100
If you are on Pd-extended I would suggest using [cyclone/coll]. That's what I am using. Much easier than working with regular lists.
Ingo
-----Ursprüngliche Nachricht----- Von: Pd-list [mailto:pd-list-bounces@lists.iem.at] Im Auftrag von JC Pedroza Gesendet: Dienstag, 11. November 2014 13:54 An: pd-list@lists.iem.at Betreff: [PD] How to add/remove MIDI notes from a list using MIDI in and note on/off?
I need to populate a list with the MIDI notes that are being pressed, and remove the note from the list when the key is released.
One idea is to use [notein], and if the velocity is> 0 then add the note to the list, and if the velocity == 0 then remove the note from the list. But I have no idea of how to implement this.
I think I need [list-extend], [list-find], and [list-delete], but I just can't figure out an implementation.
How can I do this? _______________________________________________ Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
I couldn't resist creating my own approach.
I used a table with 2048 entries and just store the velocity for each note, I add 128 * channel number to each note number to achieve multiple channels.
In order to find which notes are down you just see which entries in the table are greater than 0.
-Alex
On Tue, Nov 11, 2014 at 6:40 PM, JC Pedroza nemesis4go10@hotmail.com wrote:
I finally solved this.
Used a combination of [list-extend], [list-find], [list-delete] for the list dynamics and [notein] for MIDI input. The patch first separates the MIDI note messages by velocity (0 velocity is note-off). If note-on then it adds the note to the list, if note-off it removes the note from the list.
When the patch receives a bang, it outputs the list with all the keys (MIDI notes) that are being pressed.
I'm including the patch as attachment. You can also get it at: http://raw.githubusercontent.com/JCPedroza/puredata/master/tools/MIDI_io/lis...
There are two important subpatches. [pd on_off_route] routes the MIDI-note-on notes to one side, and MIDI-note-off notes to the other. [pd list-deletevalue] deletes a value from a given list, outputs the list unchanged if the value was not found.
It surely can be improved. Let me know if you find something.
Thanks everyone for your time and help, I really appreciate it.
From: ingo@miamiwave.com To: nemesis4go10@hotmail.com; pd-list@lists.iem.at Subject: AW: [PD] How to add/remove MIDI notes from a list using MIDI in
and note on/off?
Date: Tue, 11 Nov 2014 14:43:33 +0100
If you are on Pd-extended I would suggest using [cyclone/coll]. That's what I am using. Much easier than working with regular lists.
Ingo
-----Ursprüngliche Nachricht----- Von: Pd-list [mailto:pd-list-bounces@lists.iem.at] Im Auftrag von JC Pedroza Gesendet: Dienstag, 11. November 2014 13:54 An: pd-list@lists.iem.at Betreff: [PD] How to add/remove MIDI notes from a list using MIDI in and note on/off?
I need to populate a list with the MIDI notes that are being pressed,
and
remove the note from the list when the key is released.
One idea is to use [notein], and if the velocity is> 0 then add the note to the list, and if the velocity == 0 then remove the note from the
list.
But I have no idea of how to implement this.
I think I need [list-extend], [list-find], and [list-delete], but I just can't figure out an implementation.
How can I do this? _______________________________________________ Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
Nice one!
Le 12/11/2014 04:17, Alex a écrit :
I couldn't resist creating my own approach.
I used a table with 2048 entries and just store the velocity for each note, I add 128 * channel number to each note number to achieve multiple channels.
In order to find which notes are down you just see which entries in the table are greater than 0.
-Alex
On Tue, Nov 11, 2014 at 6:40 PM, JC Pedroza <nemesis4go10@hotmail.com mailto:nemesis4go10@hotmail.com> wrote:
I finally solved this. Used a combination of [list-extend], [list-find], [list-delete] for the list dynamics and [notein] for MIDI input. The patch first separates the MIDI note messages by velocity (0 velocity is note-off). If note-on then it adds the note to the list, if note-off it removes the note from the list. When the patch receives a bang, it outputs the list with all the keys (MIDI notes) that are being pressed. I'm including the patch as attachment. You can also get it at: http://raw.githubusercontent.com/JCPedroza/puredata/master/tools/MIDI_io/list-MIDInoteon.pd There are two important subpatches. [pd on_off_route] routes the MIDI-note-on notes to one side, and MIDI-note-off notes to the other. [pd list-deletevalue] deletes a value from a given list, outputs the list unchanged if the value was not found. It surely can be improved. Let me know if you find something. Thanks everyone for your time and help, I really appreciate it. ---------------------------------------- > From: ingo@miamiwave.com <mailto:ingo@miamiwave.com> > To: nemesis4go10@hotmail.com <mailto:nemesis4go10@hotmail.com>; pd-list@lists.iem.at <mailto:pd-list@lists.iem.at> > Subject: AW: [PD] How to add/remove MIDI notes from a list using MIDI in and note on/off? > Date: Tue, 11 Nov 2014 14:43:33 +0100 > > If you are on Pd-extended I would suggest using [cyclone/coll]. > That's what I am using. Much easier than working with regular lists. > > Ingo > > >> -----Ursprüngliche Nachricht----- >> Von: Pd-list [mailto:pd-list-bounces@lists.iem.at <mailto:pd-list-bounces@lists.iem.at>] Im Auftrag von JC >> Pedroza >> Gesendet: Dienstag, 11. November 2014 13:54 >> An: pd-list@lists.iem.at <mailto:pd-list@lists.iem.at> >> Betreff: [PD] How to add/remove MIDI notes from a list using MIDI in and >> note on/off? >> >> I need to populate a list with the MIDI notes that are being pressed, and >> remove the note from the list when the key is released. >> >> One idea is to use [notein], and if the velocity is> 0 then add the note >> to the list, and if the velocity == 0 then remove the note from the list. >> But I have no idea of how to implement this. >> >> I think I need [list-extend], [list-find], and [list-delete], but I just >> can't figure out an implementation. >> >> How can I do this? >> _______________________________________________ >> Pd-list@lists.iem.at <mailto:Pd-list@lists.iem.at> mailing list >> UNSUBSCRIBE and account-management -> >> http://lists.puredata.info/listinfo/pd-list > _______________________________________________ Pd-list@lists.iem.at <mailto:Pd-list@lists.iem.at> mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
hi, what about using [poly] instead?
Le 11/11/2014 13:53, JC Pedroza a écrit :
I need to populate a list with the MIDI notes that are being pressed, and remove the note from the list when the key is released.
One idea is to use [notein], and if the velocity is> 0 then add the note to the list, and if the velocity == 0 then remove the note from the list. But I have no idea of how to implement this.
I think I need [list-extend], [list-find], and [list-delete], but I just can't figure out an implementation.
How can I do this? _______________________________________________ Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
On 11/11/2014 13:53, JC Pedroza wrote:
I need to populate a list with the MIDI notes that are being pressed, and remove the note from the list when the key is released.
Just a side comment as various people already responded.
In theese cases it would help to describe your use case with as much detail as possible, unless the question is really trivial. If you explain _why_ you want to store/remove incoming midi notes in a list it helps because maybe there is a different/similar approach to ahieve the same result... Otherwise people (like e.g. patrice) have to guess what the scenario is and without detailed background it's really difficult.
houndreds, millions??)
etc. etc.
:-) Lorenzo.
One idea is to use [notein], and if the velocity is> 0 then add the note to the list, and if the velocity == 0 then remove the note from the list. But I have no idea of how to implement this.
I think I need [list-extend], [list-find], and [list-delete], but I just can't figure out an implementation.
How can I do this? _______________________________________________ Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
You are right, I forgot to include the details! I'm very sorry.
I need this for a sequencer/synth that queries the list for a random note, at random times, in a given time range. That random note is then used to set the frequency of a synth (from an array of synths). It's a bunch of randomness.
At the start I was just writing the values into the list, but eventually wanted something more dynamic.
The idea is for the input to be any MIDI input. DAW, sequencer, external MIDI keyboard, whatever. Anything that inputs MIDI note messages. By "notes being pressed" I just mean MIDI note-on. The rate of notes pressed is the more the better just for having the option to go crazy, but a rate of a "very fast human" should be more than enough.
You can find the sequencer/synth in question here: http://github.com/JCPedroza/puredata/tree/master/synths/Cloud1 . Cloud1 is the main patch, and synthcell is a synthesizer abstraction. You can find my solution to the list of MIDI note-on in subpatch path: [pd Cloud1] / [pd freq_list] / [pd list-MIDInoteon] .
Date: Wed, 12 Nov 2014 11:38:52 +0100 From: lorenzofsutton@gmail.com To: pd-list@lists.iem.at Subject: Re: [PD] How to add/remove MIDI notes from a list using MIDI in and note on/off?
On 11/11/2014 13:53, JC Pedroza wrote:
I need to populate a list with the MIDI notes that are being pressed, and remove the note from the list when the key is released.
Just a side comment as various people already responded.
In theese cases it would help to describe your use case with as much detail as possible, unless the question is really trivial. If you explain _why_ you want to store/remove incoming midi notes in a list it helps because maybe there is a different/similar approach to ahieve the same result... Otherwise people (like e.g. patrice) have to guess what the scenario is and without detailed background it's really difficult.
- Where are the midi notes being pressed? An external midi keyboard?
- What is the list of (pressed) midi notes used for?
- What's your expected rate of notes pressed e.g. per second (one, tens,
houndreds, millions??)
etc. etc.
:-) Lorenzo.
One idea is to use [notein], and if the velocity is> 0 then add the note to the list, and if the velocity == 0 then remove the note from the list. But I have no idea of how to implement this.
I think I need [list-extend], [list-find], and [list-delete], but I just can't figure out an implementation.
How can I do this? _______________________________________________ Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
Hope I'm not wasting your time by trying to resolve this question, it's just a fun to give a try by using only vanilla objects.
I've made a big mistake in patching, and corrected it by reversing the [list-find] inlets, sorry for that. Correction and improvements are attached.
Le 12/11/2014 12:19, JC Pedroza a écrit :
You are right, I forgot to include the details! I'm very sorry.
I need this for a sequencer/synth that queries the list for a random note, at random times, in a given time range. That random note is then used to set the frequency of a synth (from an array of synths). It's a bunch of randomness.
At the start I was just writing the values into the list, but eventually wanted something more dynamic.
The idea is for the input to be any MIDI input. DAW, sequencer, external MIDI keyboard, whatever. Anything that inputs MIDI note messages. By "notes being pressed" I just mean MIDI note-on. The rate of notes pressed is the more the better just for having the option to go crazy, but a rate of a "very fast human" should be more than enough.
You can find the sequencer/synth in question here: http://github.com/JCPedroza/puredata/tree/master/synths/Cloud1 . Cloud1 is the main patch, and synthcell is a synthesizer abstraction. You can find my solution to the list of MIDI note-on in subpatch path: [pd Cloud1] / [pd freq_list] / [pd list-MIDInoteon] .
Date: Wed, 12 Nov 2014 11:38:52 +0100 From: lorenzofsutton@gmail.com To: pd-list@lists.iem.at Subject: Re: [PD] How to add/remove MIDI notes from a list using MIDI in and note on/off?
On 11/11/2014 13:53, JC Pedroza wrote:
I need to populate a list with the MIDI notes that are being pressed, and remove the note from the list when the key is released.
Just a side comment as various people already responded.
In theese cases it would help to describe your use case with as much detail as possible, unless the question is really trivial. If you explain _why_ you want to store/remove incoming midi notes in a list it helps because maybe there is a different/similar approach to ahieve the same result... Otherwise people (like e.g. patrice) have to guess what the scenario is and without detailed background it's really difficult.
- Where are the midi notes being pressed? An external midi keyboard?
- What is the list of (pressed) midi notes used for?
- What's your expected rate of notes pressed e.g. per second (one, tens,
houndreds, millions??)
etc. etc.
:-) Lorenzo.
One idea is to use [notein], and if the velocity is> 0 then add the note to the list, and if the velocity == 0 then remove the note from the list. But I have no idea of how to implement this.
I think I need [list-extend], [list-find], and [list-delete], but I just can't figure out an implementation.
How can I do this? _______________________________________________ Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
You are not wasting anyone's time. On the contrary, and I really appreciate your time and help.
This fix broke the patch further! Now it doesn't work at all. It adds each note to the list twice. When working with one note at a time it doesn't remove the note at all (pressing and releasing one note keeps populating the list without removing the note on release). And when working with multiple notes pressed at a time it doesn't always remove all the notes from the list on release.
You are facing the exact same bugs and issues I found while trying to build a solution.
Date: Wed, 12 Nov 2014 19:36:39 +0100 From: colet.patrice@free.fr To: nemesis4go10@hotmail.com; pd-list@iem.at Subject: Re: [PD] How to add/remove MIDI notes from a list using MIDI in and note on/off?
Hope I'm not wasting your time by trying to resolve this question, it's just a fun to give a try by using only vanilla objects.
I've made a big mistake in patching, and corrected it by reversing the [list-find] inlets, sorry for that. Correction and improvements are attached.
Le 12/11/2014 12:19, JC Pedroza a écrit :
You are right, I forgot to include the details! I'm very sorry.
I need this for a sequencer/synth that queries the list for a random note, at random times, in a given time range. That random note is then used to set the frequency of a synth (from an array of synths). It's a bunch of randomness.
At the start I was just writing the values into the list, but eventually wanted something more dynamic.
The idea is for the input to be any MIDI input. DAW, sequencer, external MIDI keyboard, whatever. Anything that inputs MIDI note messages. By "notes being pressed" I just mean MIDI note-on. The rate of notes pressed is the more the better just for having the option to go crazy, but a rate of a "very fast human" should be more than enough.
You can find the sequencer/synth in question here: http://github.com/JCPedroza/puredata/tree/master/synths/Cloud1 . Cloud1 is the main patch, and synthcell is a synthesizer abstraction. You can find my solution to the list of MIDI note-on in subpatch path: [pd Cloud1] / [pd freq_list] / [pd list-MIDInoteon] .
Date: Wed, 12 Nov 2014 11:38:52 +0100 From: lorenzofsutton@gmail.com To: pd-list@lists.iem.at Subject: Re: [PD] How to add/remove MIDI notes from a list using MIDI in and note on/off?
On 11/11/2014 13:53, JC Pedroza wrote:
I need to populate a list with the MIDI notes that are being pressed, and remove the note from the list when the key is released.
Just a side comment as various people already responded.
In theese cases it would help to describe your use case with as much detail as possible, unless the question is really trivial. If you explain _why_ you want to store/remove incoming midi notes in a list it helps because maybe there is a different/similar approach to ahieve the same result... Otherwise people (like e.g. patrice) have to guess what the scenario is and without detailed background it's really difficult.
- Where are the midi notes being pressed? An external midi keyboard?
- What is the list of (pressed) midi notes used for?
- What's your expected rate of notes pressed e.g. per second (one, tens,
houndreds, millions??)
etc. etc.
:-) Lorenzo.
One idea is to use [notein], and if the velocity is> 0 then add the note to the list, and if the velocity == 0 then remove the note from the list. But I have no idea of how to implement this.
I think I need [list-extend], [list-find], and [list-delete], but I just can't figure out an implementation.
How can I do this? _______________________________________________ Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
Nevermind, your patch works flawlessly. It was a weird bug on my side.
From: nemesis4go10@hotmail.com To: pd-list@lists.iem.at Date: Thu, 13 Nov 2014 00:04:17 +0000 Subject: Re: [PD] How to add/remove MIDI notes from a list using MIDI in and note on/off?
You are not wasting anyone's time. On the contrary, and I really appreciate your time and help.
This fix broke the patch further! Now it doesn't work at all. It adds each note to the list twice. When working with one note at a time it doesn't remove the note at all (pressing and releasing one note keeps populating the list without removing the note on release). And when working with multiple notes pressed at a time it doesn't always remove all the notes from the list on release.
You are facing the exact same bugs and issues I found while trying to build a solution.
Date: Wed, 12 Nov 2014 19:36:39 +0100 From: colet.patrice@free.fr To: nemesis4go10@hotmail.com; pd-list@iem.at Subject: Re: [PD] How to add/remove MIDI notes from a list using MIDI in and note on/off?
Hope I'm not wasting your time by trying to resolve this question, it's just a fun to give a try by using only vanilla objects.
I've made a big mistake in patching, and corrected it by reversing the [list-find] inlets, sorry for that. Correction and improvements are attached.
Le 12/11/2014 12:19, JC Pedroza a écrit :
You are right, I forgot to include the details! I'm very sorry.
I need this for a sequencer/synth that queries the list for a random note, at random times, in a given time range. That random note is then used to set the frequency of a synth (from an array of synths). It's a bunch of randomness.
At the start I was just writing the values into the list, but eventually wanted something more dynamic.
The idea is for the input to be any MIDI input. DAW, sequencer, external MIDI keyboard, whatever. Anything that inputs MIDI note messages. By "notes being pressed" I just mean MIDI note-on. The rate of notes pressed is the more the better just for having the option to go crazy, but a rate of a "very fast human" should be more than enough.
You can find the sequencer/synth in question here: http://github.com/JCPedroza/puredata/tree/master/synths/Cloud1 . Cloud1 is the main patch, and synthcell is a synthesizer abstraction. You can find my solution to the list of MIDI note-on in subpatch path: [pd Cloud1] / [pd freq_list] / [pd list-MIDInoteon] .
Date: Wed, 12 Nov 2014 11:38:52 +0100 From: lorenzofsutton@gmail.com To: pd-list@lists.iem.at Subject: Re: [PD] How to add/remove MIDI notes from a list using MIDI in and note on/off?
On 11/11/2014 13:53, JC Pedroza wrote:
I need to populate a list with the MIDI notes that are being pressed, and remove the note from the list when the key is released.
Just a side comment as various people already responded.
In theese cases it would help to describe your use case with as much detail as possible, unless the question is really trivial. If you explain _why_ you want to store/remove incoming midi notes in a list it helps because maybe there is a different/similar approach to ahieve the same result... Otherwise people (like e.g. patrice) have to guess what the scenario is and without detailed background it's really difficult.
- Where are the midi notes being pressed? An external midi keyboard?
- What is the list of (pressed) midi notes used for?
- What's your expected rate of notes pressed e.g. per second (one, tens,
houndreds, millions??)
etc. etc.
:-) Lorenzo.
One idea is to use [notein], and if the velocity is> 0 then add the note to the list, and if the velocity == 0 then remove the note from the list. But I have no idea of how to implement this.
I think I need [list-extend], [list-find], and [list-delete], but I just can't figure out an implementation.
How can I do this? _______________________________________________ Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
On 11/11/2014 01:53 PM, JC Pedroza wrote:
I need to populate a list with the MIDI notes that are being pressed, and remove the note from the list when the key is released.
One idea is to use [notein], and if the velocity is> 0 then add the note to the list, and if the velocity == 0 then remove the note from the list. But I have no idea of how to implement this.
I think I need [list-extend], [list-find], and [list-delete], but I just can't figure out an implementation.
How can I do this?
use [poly] instead? it seems that it does exactly what you are trying to do.
gdmsr IOhannes
On 11/12/2014 07:38 PM, IOhannes m zmölnig wrote:
use [poly] instead? it seems that it does exactly what you are trying to do.
ah sorry, this has already been mentioned. when not reading the list for a couple of days i should first check whether a thread has seen sufficient attention :-)
gfmrdsa IOhannes
But how can poly be used to solve this problem? Can someone provide an example? You are the second person that suggests its use but I can't for the life of me figure out why. A note-velocity pair comes in, a voicenumber-pitch-velocity triple comes out. That's all it does, right? What am I missing?
How would you guys use [poly] here?
Date: Wed, 12 Nov 2014 19:38:40 +0100 From: zmoelnig@iem.at To: pd-list@lists.iem.at Subject: Re: [PD] How to add/remove MIDI notes from a list using MIDI in and note on/off?
use [poly] instead? it seems that it does exactly what you are trying to do.
gdmsr IOhannes
On 11/11/2014 01:53 PM, JC Pedroza wrote:
I need to populate a list with the MIDI notes that are being pressed, and remove the note from the list when the key is released.
One idea is to use [notein], and if the velocity is> 0 then add the note to the list, and if the velocity == 0 then remove the note from the list. But I have no idea of how to implement this.
I think I need [list-extend], [list-find], and [list-delete], but I just can't figure out an implementation.
How can I do this?
_______________________________________________ Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
On 13/11/14 10:29, JC Pedroza wrote:
But how can poly be used to solve this problem? Can someone provide an example? You are the second person that suggests its use but I can't for the life of me figure out why. A note-velocity pair comes in, a voicenumber-pitch-velocity triple comes out. That's all it does, right? What am I missing?
It keeps a list internally ... doing the required housekeeping re on off etc, but it cannot be queried for the contents ... [bag] is what you need
see patch ... this one works even if you use multiple notes of the same value, while Patrice's patch deletes too much when there are multiples.
Simon
Great solutions!
The only inconsistency I found with the previous version was that the values changed position with each flush. Were there any other issues?
Date: Thu, 13 Nov 2014 15:08:00 +1100 From: simonzwise@gmail.com To: pd-list@lists.iem.at Subject: Re: [PD] How to add/remove MIDI notes from a list using MIDI in and note on/off?
On 13/11/14 14:02, Simon Wise wrote:
... [bag] is what you need
see patch ... this one works even if you use multiple notes of the same value,
this is a bit more consistent, and cleaner ...
Simon
_______________________________________________ Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
On 13/11/14 16:13, JC Pedroza wrote:
Great solutions!
The only inconsistency I found with the previous version was that the values changed position with each flush. Were there any other issues?
no, just that the first version flipped the order each flush ... but the second also is more sensible about the order during a flush, it is a bit safer to adapt it ... and it is easier to read.
Simon