Csound Csound-dev Csound-tekno Search About

[Cs-dev] Execution of instr 0

Date2013-04-19 00:55
FromAndres Cabrera
Subject[Cs-dev] Execution of instr 0
AttachmentsNone  None  
Hi,

When is instr 0 executed? I would've expected it would be executed on the call to CsoundStart() but it seems I need to call csoundPerformKsmps to do it.

Is that right? Wouldn't it be better to have instr 1 execute with csoundStart() (or CsoundCompile() )?

My use case is the chn_k opcode which can provide GUI hints to a host. Since chn_k is generally in the header the host can call csoundCompile and then query the hints using csoundGetControlChannel hints to generate the GUI before actual audio performance has started.

Cheers,
Andrés


Date2013-04-19 02:10
FromAndres Cabrera
SubjectRe: [Cs-dev] Execution of instr 0
AttachmentsNone  None  
Sorry, disregard. It is executed in csoundStart().

Cheers,
Andrés


On Thu, Apr 18, 2013 at 4:55 PM, Andres Cabrera <mantaraya36@gmail.com> wrote:
Hi,

When is instr 0 executed? I would've expected it would be executed on the call to CsoundStart() but it seems I need to call csoundPerformKsmps to do it.

Is that right? Wouldn't it be better to have instr 1 execute with csoundStart() (or CsoundCompile() )?

My use case is the chn_k opcode which can provide GUI hints to a host. Since chn_k is generally in the header the host can call csoundCompile and then query the hints using csoundGetControlChannel hints to generate the GUI before actual audio performance has started.

Cheers,
Andrés