A little bit cleaned-up for “notearray.pd” Attached “simon-notes.pd”
Salutti, Lucarda. Mensaje telepatico asistido por maquinas. ________________________________ From: Pd-list <[email protected]> on behalf of Simon Iten <[email protected]> Sent: Sunday, July 2, 2017 10:29 AM To: Cyrille Henry Cc: [email protected] 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.
#N canvas 106 87 543 408 12; #X obj 155 143 notein; #X obj 182 338 array set notess; #X obj 263 160 array define notess 128; #X obj 181 306 f; #X obj 40 265 array sum notess; #X obj 146 221 t b b f; #X floatatom 47 328 5 0 0 0 - - -, f 5; #X obj 220 229 > 0; #X connect 0 0 5 0; #X connect 0 1 7 0; #X connect 3 0 1 0; #X connect 4 0 6 0; #X connect 5 0 4 0; #X connect 5 1 3 0; #X connect 5 2 1 1; #X connect 7 0 3 1;
_______________________________________________ [email protected] mailing list UNSUBSCRIBE and account-management -> https://lists.puredata.info/listinfo/pd-list
