[Csnd] turnoff midi activated notes with long pedal
Date | 2023-10-03 21:00 |
From | giovanni damiani <00000f31ffed4c22-dmarc-request@LISTSERV.HEANET.IE> |
Subject | [Csnd] turnoff midi activated notes with long pedal |
Hi Csounders,
I wrote a sampler (a piano model) for Realtime, MIDI-activated usage, and I need Pedal-tenuto-to-the-end, with many repeated accords and trills: in this situation memory goes early to overrun, and one need absolutely a deallocating algorithm. I tried many solutions, without success:
1) cpuprc: it blocks fast all new events; 2) maxalloc: the same; 3) turnoff2 instr,1,1 : don’t seem works, also in separate repeated initializations; 4) in the option: -+raw_controller_mode=yes (so I deactivate the pedal standard action, but what instead?) and then I would prolong the note with xtratim opcode (for the duration and expire the still queue of notes, that need so memory as the percevaible more importants attacks…) I regret the intelligent ‘stealing’ algorithm of my Kurzweil K2000, that with 24 voices shuts off all the old notes except for the harmonic bass (or else the note with lower number).
Some advice or ideas of free memory algorithms?
Greetings
Giovanni Damiani |