dear list,
i try to make a monoponic bass synth patch that glides from note to note, but only when more than one note is pressed. here is my attempt that works, but if i play very fast i get stuck notes and a stack overflow error. this seems to come from the counter. when i remove the counter part it all works as expected, but without glide...
is there something wrong with my approach? or is there a better (more stable) way to do this?
cheers
Hi Simon,
Your patch is working perfect here on Win8.1.
I don't get “stack overflow error”.
You can try [notein yourchannel?], just to test?
Salutti, Lucarda.
Mensaje telepatico asistido por maquinas.
From: Pd-list pd-list-bounces@lists.iem.at on behalf of Simon Iten itensimon@gmail.com Sent: Tuesday, June 27, 2017 2:04 PM To: Pd-List Subject: [PD] legato portamento
dear list,
i try to make a monoponic bass synth patch that glides from note to note, but only when more than one note is pressed. here is my attempt that works, but if i play very fast i get stuck notes and a stack overflow error. this seems to come from the counter. when i remove the counter part it all works as expected, but without glide...
is there something wrong with my approach? or is there a better (more stable) way to do this?
cheers
Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> https://lists.puredata.info/listinfo/pd-list
it works fine here as well as long as I don't send very fast runs (20 notes per second and more) did you try with fast midi input?
cheers
On Jun 27, 2017 18:14, "Lucas Cordiviola" lucarda27@hotmail.com wrote:
Hi Simon,
Your patch is working perfect here on Win8.1.
I don't get “stack overflow error”.
You can try [notein yourchannel?], just to test?
Salutti, Lucarda.
Mensaje telepatico asistido por maquinas.
*From:* Pd-list pd-list-bounces@lists.iem.at on behalf of Simon Iten < itensimon@gmail.com> *Sent:* Tuesday, June 27, 2017 2:04 PM *To:* Pd-List *Subject:* [PD] legato portamento
dear list,
i try to make a monoponic bass synth patch that glides from note to note, but only when more than one note is pressed. here is my attempt that works, but if i play very fast i get stuck notes and a stack overflow error. this seems to come from the counter. when i remove the counter part it all works as expected, but without glide...
is there something wrong with my approach? or is there a better (more stable) way to do this?
cheers
Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> https://lists.puredata.info/ listinfo/pd-list
On 06/27/2017 09:03 PM, Simon Iten wrote:
it works fine here as well as long as I don't send very fast runs (20 notes per second and more) did you try with fast midi input?
for testing, try to get rid of any hardware device, and replace it by a stub (e.g. [metro]+[random 4]+[select 0 1 2 3]+[64 100(...)
as a general rule, though shalt also get rid of *all* fan outs and replace them with triggers.
gfmdsa IOhannes
thanks johannes, good advice.
i replaced the notein with a makenote (and your random select chain) and set the metro duration one below the note duration (to get overlapping notes) i can go down to 5ms notes and it does not glitch. i also changed the fanouts to triggers as suggested and changed the reset of the glide. find patch attached.
i will try this patch tomorrow with my midi controller and see if it glitches again. what puzzles me is that the glitching only occurs with the glide portion in the patch. without it, it is fine with my controller. this led me to believe that it had to be an issue with the counter, rather than the midi input.
could the pd/os bridge also be an issue e.g. the midi implementation? basically my controller sends note offs immediately (as fast as midi allows) after the new note on. maybe that is somehow too fast?
also note that my controller has a direct usb-midi output, no need for an extra midi-usb device. maybe data arrives faster at the usb port then via serial midi?
some shots in the dark.
cheers
On 27 Jun 2017, at 21:09, IOhannes m zmölnig zmoelnig@iem.at wrote:
On 06/27/2017 09:03 PM, Simon Iten wrote:
it works fine here as well as long as I don't send very fast runs (20 notes per second and more) did you try with fast midi input?
for testing, try to get rid of any hardware device, and replace it by a stub (e.g. [metro]+[random 4]+[select 0 1 2 3]+[64 100(...)
as a general rule, though shalt also get rid of *all* fan outs and replace them with triggers.
gfmdsa IOhannes
Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> https://lists.puredata.info/listinfo/pd-list
Recording of your patch, works Ok.
Attached Mp3 file.
Casiotone mt-240 (primitive, velocity can be 0 or 64 only) midicable m-audio fasttrackpro pd 0.47.1 win8.1
Mensaje telepatico asistido por maquinas.
From: Simon Iten itensimon@gmail.com Sent: Tuesday, June 27, 2017 7:03 PM To: Lucas Cordiviola Cc: Pd-List Subject: Re: [PD] legato portamento
it works fine here as well as long as I don't send very fast runs (20 notes per second and more) did you try with fast midi input?
cheers
hello, i would try a more simple counter, but i don't see any obvious problem, and I can't test the patch. cheers c
Le 27/06/2017 à 16:04, Simon Iten a écrit :
dear list,
i try to make a monoponic bass synth patch that glides from note to note, but only when more than one note is pressed. here is my attempt that works, but if i play very fast i get stuck notes and a stack overflow error. this seems to come from the counter. when i remove the counter part it all works as expected, but without glide...
is there something wrong with my approach? or is there a better (more stable) way to do this?
cheers
Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> https://lists.puredata.info/listinfo/pd-list
ok, what would be a simpler counter? sorry i don’t see another approach atm.
cheers simon
On 27 Jun 2017, at 23:25, cyrille henry ch@chnry.net wrote:
hello, i would try a more simple counter, but i don't see any obvious problem, and I can't test the patch. cheers c
Le 27/06/2017 à 16:04, Simon Iten a écrit :
dear list, i try to make a monoponic bass synth patch that glides from note to note, but only when more than one note is pressed. here is my attempt that works, but if i play very fast i get stuck notes and a stack overflow error. this seems to come from the counter. when i remove the counter part it all works as expected, but without glide... is there something wrong with my approach? or is there a better (more stable) way to do this? cheers _______________________________________________ Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> https://lists.puredata.info/listinfo/pd-list
<legatoportamentomidibass.pd>_______________________________________________ Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> https://lists.puredata.info/listinfo/pd-list
have a look at the attachement patch in my mail.
Le 27/06/2017 à 23:31, Simon Iten a écrit :
ok, what would be a simpler counter? sorry i don’t see another approach atm.
cheers simon
On 27 Jun 2017, at 23:25, cyrille henry ch@chnry.net wrote:
hello, i would try a more simple counter, but i don't see any obvious problem, and I can't test the patch. cheers c
Le 27/06/2017 à 16:04, Simon Iten a écrit :
dear list, i try to make a monoponic bass synth patch that glides from note to note, but only when more than one note is pressed. here is my attempt that works, but if i play very fast i get stuck notes and a stack overflow error. this seems to come from the counter. when i remove the counter part it all works as expected, but without glide... is there something wrong with my approach? or is there a better (more stable) way to do this? cheers _______________________________________________ Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> https://lists.puredata.info/listinfo/pd-list
<legatoportamentomidibass.pd>_______________________________________________ Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> https://lists.puredata.info/listinfo/pd-list
Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> https://lists.puredata.info/listinfo/pd-list
ah sorry :-)
On 27 Jun 2017, at 23:37, cyrille henry ch@chnry.net wrote:
have a look at the attachement patch in my mail.
Le 27/06/2017 à 23:31, Simon Iten a écrit :
ok, what would be a simpler counter? sorry i don’t see another approach atm. cheers simon
On 27 Jun 2017, at 23:25, cyrille henry ch@chnry.net wrote:
hello, i would try a more simple counter, but i don't see any obvious problem, and I can't test the patch. cheers c
Le 27/06/2017 à 16:04, Simon Iten a écrit :
dear list, i try to make a monoponic bass synth patch that glides from note to note, but only when more than one note is pressed. here is my attempt that works, but if i play very fast i get stuck notes and a stack overflow error. this seems to come from the counter. when i remove the counter part it all works as expected, but without glide... is there something wrong with my approach? or is there a better (more stable) way to do this? cheers _______________________________________________ Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> https://lists.puredata.info/listinfo/pd-list
<legatoportamentomidibass.pd>_______________________________________________ Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> https://lists.puredata.info/listinfo/pd-list
Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> https://lists.puredata.info/listinfo/pd-list
Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> https://lists.puredata.info/listinfo/pd-list
ok, some more interesting things i found out:
with your counter cyrille i don’t get stack overflow anymore, it still glitches though.
if i connect my controller to ableton live and route midi through there to pd it does not glitch. so ableton does seem to change the midi stream?
cheers
On 27 Jun 2017, at 23:40, Simon Iten itensimon@gmail.com wrote:
ah sorry :-)
On 27 Jun 2017, at 23:37, cyrille henry ch@chnry.net wrote:
have a look at the attachement patch in my mail.
Le 27/06/2017 à 23:31, Simon Iten a écrit :
ok, what would be a simpler counter? sorry i don’t see another approach atm. cheers simon
On 27 Jun 2017, at 23:25, cyrille henry ch@chnry.net wrote:
hello, i would try a more simple counter, but i don't see any obvious problem, and I can't test the patch. cheers c
Le 27/06/2017 à 16:04, Simon Iten a écrit :
dear list, i try to make a monoponic bass synth patch that glides from note to note, but only when more than one note is pressed. here is my attempt that works, but if i play very fast i get stuck notes and a stack overflow error. this seems to come from the counter. when i remove the counter part it all works as expected, but without glide... is there something wrong with my approach? or is there a better (more stable) way to do this? cheers _______________________________________________ Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> https://lists.puredata.info/listinfo/pd-list
<legatoportamentomidibass.pd>_______________________________________________ Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> https://lists.puredata.info/listinfo/pd-list
Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> https://lists.puredata.info/listinfo/pd-list
Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> https://lists.puredata.info/listinfo/pd-list
and to close this, i have gone through 1000+ midi messages from my controller and stumbled across an error there…on very short notes there sometimes are two note ons sent for the same note and only one note off is sent afterwards. time to debug there! in the meantime i created an abstraction that is less naive in counting held keys, based on an array (with one value for each midinote). find attached a version for pd with array and array sum and a version that should compile in heavy that is slightly more complex.
On 28 Jun 2017, at 14:34, Simon Iten itensimon@gmail.com wrote:
ok, some more interesting things i found out:
with your counter cyrille i don’t get stack overflow anymore, it still glitches though.
if i connect my controller to ableton live and route midi through there to pd it does not glitch. so ableton does seem to change the midi stream?
cheers
On 27 Jun 2017, at 23:40, Simon Iten itensimon@gmail.com wrote:
ah sorry :-)
On 27 Jun 2017, at 23:37, cyrille henry ch@chnry.net wrote:
have a look at the attachement patch in my mail.
Le 27/06/2017 à 23:31, Simon Iten a écrit :
ok, what would be a simpler counter? sorry i don’t see another approach atm. cheers simon
On 27 Jun 2017, at 23:25, cyrille henry ch@chnry.net wrote:
hello, i would try a more simple counter, but i don't see any obvious problem, and I can't test the patch. cheers c
Le 27/06/2017 à 16:04, Simon Iten a écrit :
dear list, i try to make a monoponic bass synth patch that glides from note to note, but only when more than one note is pressed. here is my attempt that works, but if i play very fast i get stuck notes and a stack overflow error. this seems to come from the counter. when i remove the counter part it all works as expected, but without glide... is there something wrong with my approach? or is there a better (more stable) way to do this? cheers _______________________________________________ Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> https://lists.puredata.info/listinfo/pd-list
<legatoportamentomidibass.pd>_______________________________________________ Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> https://lists.puredata.info/listinfo/pd-list
Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> https://lists.puredata.info/listinfo/pd-list
Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> https://lists.puredata.info/listinfo/pd-list
A little bit cleaned-up for “notearray.pd”
Attached “simon-notes.pd”
Salutti, Lucarda.
Mensaje telepatico asistido por maquinas.
From: Pd-list pd-list-bounces@lists.iem.at on behalf of Simon Iten itensimon@gmail.com Sent: Sunday, July 2, 2017 10:29 AM To: Cyrille Henry Cc: pd-list@lists.iem.at Subject: Re: [PD] legato portamento
and to close this, i have gone through 1000+ midi messages from my controller and stumbled across an error there…on very short notes there sometimes are two note ons sent for the same note and only one note off is sent afterwards. time to debug there! in the meantime i created an abstraction that is less naive in counting held keys, based on an array (with one value for each midinote). find attached a version for pd with array and array sum and a version that should compile in heavy that is slightly more complex.
Ops!!!,
Here is the really most efficient one. For Pd & for heavy.
Attached "simon-notes-minimal.pd"
Salutti, Lucarda.
Mensaje telepatico asistido por maquinas.
From: Pd-list pd-list-bounces@lists.iem.at on behalf of Lucas Cordiviola lucarda27@hotmail.com Sent: Sunday, July 2, 2017 7:52 PM To: Simon Iten; Cyrille Henry Cc: pd-list@lists.iem.at Subject: Re: [PD] legato portamento
A little bit cleaned-up for “notearray.pd”
Attached “simon-notes.pd”
Salutti, Lucarda.
Mensaje telepatico asistido por maquinas.
From: Pd-list pd-list-bounces@lists.iem.at on behalf of Simon Iten itensimon@gmail.com Sent: Sunday, July 2, 2017 10:29 AM To: Cyrille Henry Cc: pd-list@lists.iem.at Subject: Re: [PD] legato portamento
and to close this, i have gone through 1000+ midi messages from my controller and stumbled across an error there…on very short notes there sometimes are two note ons sent for the same note and only one note off is sent afterwards. time to debug there! in the meantime i created an abstraction that is less naive in counting held keys, based on an array (with one value for each midinote). find attached a version for pd with array and array sum and a version that should compile in heavy that is slightly more complex.
yes, but the array solution is more robust since it takes pitch into account as well, so it works with multiple note ons and offs for the same note (and a mismatch of those). i think it is not totally clear if a note off for a given pitch should mute all the notes sounding at that pitch. (can there sound more then one note on the same pitch on the same instrument?)
On 2 Jul 2017, at 22:21, Lucas Cordiviola lucarda27@hotmail.com wrote:
<simon-notes-minimal.pd>
yes, but the array solution is more robust since it takes pitch into account as well, so it works with multiple note ons and offs for the same note (and a mismatch of those).
? we are only counting how many are pressed. Your patch does not tell anything about pitch.
i think it is not totally clear if a note off for a given pitch should mute all the notes sounding at that pitch. (can there sound more then one note on the same pitch on the same instrument?)
Can you put 2 different values on the same array/table index at the same time?
For midi-channel 1, note 64, there is *only* one velocity possible, not more than one.
Mensaje telepatico asistido por maquinas.
From: Simon Iten itensimon@gmail.com Sent: Sunday, July 2, 2017 8:53 PM To: Lucas Cordiviola Cc: Cyrille Henry; pd-list@lists.iem.at Subject: Re: [PD] legato portamento
yes, but the array solution is more robust since it takes pitch into account as well, so it works with multiple note ons and offs for the same note (and a mismatch of those). i think it is not totally clear if a note off for a given pitch should mute all the notes sounding at that pitch. (can there sound more then one note on the same pitch on the same instrument?)
On 2 Jul 2017, at 22:21, Lucas Cordiviola lucarda27@hotmail.com wrote:
<simon-notes-minimal.pd>
On 2 Jul 2017, at 23:38, Lucas Cordiviola lucarda27@hotmail.com wrote:
yes, but the array solution is more robust since it takes pitch into account as well, so it works with multiple note ons and offs for the same note (and a mismatch of those).
? we are only counting how many are pressed. Your patch does not tell anything about pitch.
well my array based approach sets a boolean value for each pitch, while the other approach just counts note ons and offs regardless of pitch. hence in the array solution two note ons of the same pitch will still result in a 1 and in the other approach in a 2.
i think it is not totally clear if a note off for a given pitch should mute all the notes sounding at that pitch. (can there sound more then one note on the same pitch on the same instrument?)
Can you put 2 different values on the same array/table index at the same time?
no, that is exactly why i use it :-)
For midi-channel 1, note 64, there is *only* one velocity possible, not more than one.
yeah but you can send two note ons 64 after each other, and then one note off 64, what should happen? (for example if you merge two midi-streams)
Mensaje telepatico asistido por maquinas.
From: Simon Iten itensimon@gmail.com Sent: Sunday, July 2, 2017 8:53 PM To: Lucas Cordiviola Cc: Cyrille Henry; pd-list@lists.iem.at Subject: Re: [PD] legato portamento
yes, but the array solution is more robust since it takes pitch into account as well, so it works with multiple note ons and offs for the same note (and a mismatch of those). i think it is not totally clear if a note off for a given pitch should mute all the notes sounding at that pitch. (can there sound more then one note on the same pitch on the same instrument?)
On 2 Jul 2017, at 22:21, Lucas Cordiviola lucarda27@hotmail.com wrote:
<simon-notes-minimal.pd>
On 2017-07-02 22:53, Simon Iten wrote:
(can there sound more then one note on the same pitch on the same instrument?)
you mean, something like that weirdo one: http://bit.ly/1G68IQb ?
gmasdr IOhannes
Some MIDI keyboards send more than one note on when a sustain pedal is pressed - even on the same MIDI channel. Most sound generators wouldn't know which note to stop at the note off at ths point ...
Theoretically you could also use two different MIDI controllers although most likely they would be on different MIDI channels. However, none of those abstractions consideres the possibility different MIDI channels.
Ingo
On 2017-07-02 22:53, Simon Iten wrote:
(can there sound more then one note on the same pitch on the same
instrument?)
you mean, something like that weirdo one: http://bit.ly/1G68IQb ?
gmasdr IOhannes
On Mon, 2017-07-03 at 10:11 +0200, IOhannes m zmoelnig wrote:
On 2017-07-02 22:53, Simon Iten wrote:
(can there sound more then one note on the same pitch on the same instrument?)
you mean, something like that weirdo one: http://bit.ly/1G68IQb ?
:-)
You not always want to mute the first note when a second note with the same pitch is triggered, regardless whether such an instrument exists or not. When creating software instruments, I often explicitly allow to trigger two or more notes of the same pitch because of the way it affects the sound. The phasing or (with a small amount of random pitch) pulsing can be nice.
Roman
On 3 Jul 2017, at 10:41, Roman Haefeli reduzent@gmail.com wrote:
You not always want to mute the first note when a second note with the same pitch is triggered, regardless whether such an instrument exists or not. When creating software instruments, I often explicitly allow to trigger two or more notes of the same pitch because of the way it affects the sound. The phasing or (with a small amount of random pitch) pulsing can be nice.
of course, but since i try to find a nice solution for legato portamento playing monophonic synths in puredata (4 of them on different channels, see below), there is only really one voice sounding at a time.
by now i fixed my controller code and i can again use the much simpler method with a counter, see attached.
@johannes: actually my controller is a bass midi controller. the four strings are sent on four channels, allowing for 4 of the same notes (as on a real bass). but since they are on a different channel, each string can be processed separately. this allows for string slides and hammer ons and offs which would not be possible on one midi channel. see here: https://4.bp.blogspot.com/-DQen_oBVTIQ/V5uR9AhcFfI/AAAAAAAAAcY/4h94gB1VMegke... https://4.bp.blogspot.com/-DQen_oBVTIQ/V5uR9AhcFfI/AAAAAAAAAcY/4h94gB1VMegkemIKMTCQ4jDTt0XZQYbtwCLcB/s1600/IMG_0795.JPG
exactly my point. but guitar is really a weird instrument. i play bass, much better.
On 3 Jul 2017, at 10:11, IOhannes m zmoelnig zmoelnig@iem.at wrote:
On 2017-07-02 22:53, Simon Iten wrote:
(can there sound more then one note on the same pitch on the same instrument?)
you mean, something like that weirdo one: http://bit.ly/1G68IQb ?
gmasdr IOhannes
Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> https://lists.puredata.info/listinfo/pd-list