Csound Csound-dev Csound-tekno Search About

[Csnd] Calling Csound::readScore twice before startijg performance seems to clear all score events.

Date2020-07-09 13:29
FromPeter Burgess
Subject[Csnd] Calling Csound::readScore twice before startijg performance seems to clear all score events.
Hi there.

Using Csound 6.14 via the C++ API, I am trying to set a few batches of score events before calling Csound::Start and CsoundPerfThread::Play.

Using Csound:: readScore(), I am able to set a batch of score events in string format and perform successfully. I can create a second batch of score events and perform those instead successfully.

However, if I call it twice before the performance, once for each batch of score events (or even twice with the same batch), the Csound performance appears to contain no score events, and ends the performance gracefully as you would expect when having not set any score events.

If I concatenate the two strings containing the batches of score events, then the performance contains all the expected events from both batches.

If I start the performance first, I can call `readScore()` as many times as I like and the extra score events will always be added.

The docs say you can call readScore as many times as you wish. It does not stipulate if this is true specifically during the performance, so does this require an update from the docs, or is a bug?

Pete
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