Sustain Help Needed
I’m a first time poster in the forums and a first time user of MAX.
Cutting to the chase, I need to select which notes the sustain affects. I’ve got the ‘notein’, ‘noteout’ sussed and currently have the sustain toggling through the spacebar. I was thinking it’d have to be an ‘if then’ statement, but I can’t seem to wrap my head around it.
Any advise, or a point in the right direction would be gratefully appreciated.
P.S. I’m new to this, so go easy on me : )
maybe use a gate to route your incoming note-off messages according to whether the space bar is being held down or not. the pitches that have a velocity zero could be grouped [zl group], and when the spacebar up is detected these pitches are iterated out [iter] to a [noteout] with a velocity zero argument; also look at borax– there might be an neater way to do it using that
OK I think borax and gate is the way to go– I haven’t tried this out but it should work. Will give you a start anyway.
----------begin_max5_patcher---------- 608.3ocyWFsjZBCEF9Z7oHCWacxIgfPuqOGc1oCpotYqFXfvT2ty9tWHAr3N QLRoodCYxIQx+4yeO43aKBB2jehWEh9L5qnff2VDDnC0FHnadP3wrSaOjUo2 Vnj+y7MuDtzrjheRYBmq340p93hc5nM67S.qO32ykJY1QtdouTJxNLbkJwuz q.vJVJCRV2slr9nPdfqzGOsKXQlZ6yB49uUx2pLxOIcEdIhvf1gHyD7JL5o+ 7dZDX+KB2F78EKZer7uK02mo3H.A1xc314tQTpWK3l7HL7rj+.Vv1HB4VDAV iaGX5mP5UIBLeDQYGF3I.CgTce7.tNOHIq0L.znfP8GPp3GPThEljNAjrISt OboC9jhRdEWpxThb4.LPAMFHwj1Ab2igPvI2EIIt8ilneAQ2xcQlS2E1BIi+ eatH5BO.N8gwbw9WZtb1lPz1rjHeaS9A+UKLIZh1jk1FtKFgGgQFSioDMKcE aTFEMqLptvBknOjTZchlOfuozl7xrS1tPiLmXxggqQxI0uDSWhh.5p3.AeiF lRmOd11qnPZCnyiu69wDbKLAXSqClh7ifI5DvzlZkJ2JOhGuNs86rGIY5t5G vw8ownIyvKozaI7fP9w+tf9XZieYFVkWWtsWs8+ZAEc9j1wqTBot2jgap4Nq ldo62zyhc63xg0ENJ1Uj27kbmHPOYk22klntnIr+zDbwwcEMQ7JmRcQRw9ES zKHvUzD3ULE6Bl.+hI7imlbxMg8pjXNHI+5uibPQ9svD0AEk5+Z.NUpziZJ1 UMQbWSTRrocWSyZwzyytPsMSdewuAzuSIBC -----------end_max5_patcher-----------
Thank you very much Terry. I’ll get working on it.
Forums > MaxMSP