Csound Csound-dev Csound-tekno Search About

[Csnd] Orc Headers

Date2008-10-30 09:38
FromJoseph Sanger
Subject[Csnd] Orc Headers
Hi there list,

I was wondering... Does orchestra header code have to appear BEFORE the 
instruments, or is it OK provided it appears outside an instrument 
block? (e.g. between instrument blocks or after).

I'm working on something that compiles a csound orchestra from a set of 
macros, and I was thinking of something like an FLTK instrument, where 
it would be handy if the header code could appear next to the instrument 
code, but perhaps after other instrument blocks.

It's probably only slightly more complicated to work around it if not, 
but I couldn't find an answer in the manual.

Many thanks,

Joe

-- 
Joseph Sanger

Blueberry Eikaiwa
www.bbeikaiwa.com
joe@bbeikaiwa.com

Date2008-10-30 10:01
From"Oeyvind Brandtsegg"
Subject[Csnd] Re: Orc Headers
AttachmentsNone  

Date2008-10-30 11:59
FromJoseph Sanger
Subject[Csnd] Re: Re: Orc Headers
Hi there Oeyvind,

Thank you - that's really useful to know.

I presume it would be a bad idea to have two separate instruments each 
containing separate FLTK code? Would there be some conflict, e.g. using 
commands like "FLrun" twice?

Of course I'll find the time to try this soon, but I'm at work now and 
unfortunately my job doesn't involve Csound programming... Yet...

Joe

Oeyvind Brandtsegg wrote:
> You can also define a lot of the global statements inside an instrument.
> I think most things, except sr, kr, ksmps, nchnls, and 0dbfs could be
> put anywhere,
> and I routinely put all FLTK code inside an instrument and keep that
> instrument "always on".
> Oeyvind
> 
> 2008/10/30 Joseph Sanger :
>> Hi there list,
>>
>> I was wondering... Does orchestra header code have to appear BEFORE the
>> instruments, or is it OK provided it appears outside an instrument block?
>> (e.g. between instrument blocks or after).
>>
>> I'm working on something that compiles a csound orchestra from a set of
>> macros, and I was thinking of something like an FLTK instrument, where it
>> would be handy if the header code could appear next to the instrument code,
>> but perhaps after other instrument blocks.
>>
>> It's probably only slightly more complicated to work around it if not, but I
>> couldn't find an answer in the manual.
>>
>> Many thanks,
>>
>> Joe
>>
>> --
>> Joseph Sanger
>>
>> Blueberry Eikaiwa
>> www.bbeikaiwa.com
>> joe@bbeikaiwa.com
>>
>>
>> Send bugs reports to this list.
>> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe
>> csound"
>>
> 
> 
> Send bugs reports to this list.
> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"
> 
> 

-- 
Joseph Sanger

Blueberry Eikaiwa
www.bbeikaiwa.com
joe@bbeikaiwa.com

Date2008-10-30 12:52
From"Oeyvind Brandtsegg"
Subject[Csnd] Re: Re: Re: Orc Headers
AttachmentsNone