Csound Csound-dev Csound-tekno Search About

Re: [Cs-dev] Score Rewinding

Date2005-05-11 18:00
FromMichael Gogins
SubjectRe: [Cs-dev] Score Rewinding
The API comments are perfectly clear about what the score offset is. 

But I admit, the score pending idea is not clarified, and the reader could easily be mystified.

I will amend the comments this evening to provide a complete description of the previous behavior.

Regards,
Mike

-----Original Message-----
From: Istvan Varga 
Sent: May 11, 2005 11:04 AM
To: csound-devel@lists.sourceforge.net
Subject: Re: [Cs-dev] Score Rewinding

Michael Gogins wrote:

> What was wrong with the 'a' event is that it did not produce
 > the proper behavior when I tested it. If you can get it to produce
 > the proper behavior, I'll be happy to put the 'a' event back, since
 > I do understand what you are saying about MIDI files.

You still did not describe what the expected "proper behavior" is in the
context of the API (and not Cubase and CsoundVST of which I use neither).
However, I guess that while skipping time you do not want the perform
functions to return for every single skipped frame. So, I reverted to the
old code, but changed csoundPerformKsmps and related functions to not return
until the advance is complete and the requested time is reached.

> As for pause or mute, in this context they are functionally equivalent,

No, an API call should do what it is documented and expected to do,
and not just what is functionally equivalent for a single specific host
application. It may very well make sense to have a function that mutes
notes in this particular way, but then it would better be named something
like csoundMuteNonMIDINotes().

> Of course, my approach has the advantage of being brain-dead simple and
 > apparently lackiing side effects.

It also mutes all non-MIDI real time events (line events, event, schedkwhen, etc.).
Does that count as a side effect ?



-------------------------------------------------------
This SF.Net email is sponsored by Oracle Space Sweepstakes
Want to be the first software developer in space?
Enter now for the Oracle Space Sweepstakes!
http://ads.osdn.com/?ad_id=7393&alloc_id=16281&op=click
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/csound-devel





-------------------------------------------------------
This SF.Net email is sponsored by Oracle Space Sweepstakes
Want to be the first software developer in space?
Enter now for the Oracle Space Sweepstakes!
http://ads.osdn.com/?ad_id=7393&alloc_id=16281&op=click
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net