Csound Csound-dev Csound-tekno Search About

[Csnd] i-time instrument in p-pass

Date2011-08-24 07:28
FromTarmo Johannes
Subject[Csnd] i-time instrument in p-pass
Hello,

I wasted a lot of time before I understood why I cannot play fluidNote on the time when I needed, something like:

if kGo=1 then
	fluidNote ....
endif

I was stupid and did not undertand immediately that if an opcode has only i-time arguments, it must be run just in i-time as well. And it is run anyaway in the init pass, if when it is written into a k-rate condition ; 
Maybe it is not so obvious for others, too. Two suggestions:

- In the case of opcodes that don't return any value (where you cans see clearly if it  is of i- k- or a- or any type),  could there be  a line in the manual "Run in i-time" or "Run in a-time"? For example like for schedule, ficlose, etc  A good example is prints:

prints — Prints at init-time using a printf() style syntax. 

- could the parser be so clever, that if it sees a mismatch between the condition and the opcode within it, it gives a warning?
Like "k-time opcode in i-time branch"? 

I am using Csound 5.13, double, old parser.

greetings,
tarmo


Send bugs reports to the Sourceforge bug tracker
            https://sourceforge.net/tracker/?group_id=81968&atid=564599
Discussions of bugs and features can be posted here
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"