[Csnd] Clear score event queue
Date | 2020-04-02 17:42 |
From | Syl Morrison |
Subject | [Csnd] Clear score event queue |
Hi all, been searching for a way to do this, basically I'm reading a text file to csound via the api, but at some point (when a stop button is pressed) I want to clear that queue. The way I'm doing it at the moment is literally using cleanup() and reloading the csd everytime, but because I'm using soundfonts, it takes a few seconds to reload, and I'd like to minimise this time as much as possible. So one way I thought of was to instead of reading all the score events at startup, use sleep and read the events as they happen (so realtime) that way I could easily terminate the thread doing that prematurely, but I was hoping there was a more elegant way within the API or the opcodes,
Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here
Cheers, Syl |