alsa sequencer: note interface
A question - if you're sending a load of MIDI notes (as opposed to noteons/noteoffs) with very long duration and to curtail these notes you're sending notes with shorter (finite if you like) duration to same channel/pitch should the longer ones clear down from ALSA and get cast away?
At the moment I can get the notes to stop sounding correctly but after playing more notes for a while (and everything sounding fine) the sequencer just eventually stops accepting any more notes for playback presumably because the original long notes are still hanging around in a buffer somewhere.
Thoughts?
B
Signature · 8 lines
Rosegarden. Music Software For Linux http://www.all-day-breakfast.com/rosegarden ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf
Quoted 6 lines · Richard Bown
A question - if you're sending a load of MIDI notes (as opposed to noteons/noteoffs) with very long duration and to curtail these notes you're sending notes with shorter (finite if you like) duration to same channel/pitch should the longer ones clear down from ALSA and get cast away?
Quoted 7 lines
At the moment I can get the notes to stop sounding correctly but after playing more notes for a while (and everything sounding fine) the sequencer just eventually stops accepting any more notes for playback presumably because the original long notes are still hanging around in a buffer somewhere.
Thoughts?
When NOTE event is processing, the NOTEON event is delivered to attached clients and NOTEOFF event is enqueued to be processed later. So, it's possible that you'll have buffer full with NOTEOFF events.
Jaroslav
-----
Jaroslav Kysela <[email protected]>
Linux Kernel Sound Maintainer
ALSA Project http://www.alsa-project.org
SuSE Linux http://www.suse.com
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf