| OK, thanks for the clarification! So provided I put sr, kr, etc. first
and am careful about re-initializing FLTK etc., I should be OK...
Thanks again,
Joe
Partev Barr Sarkissian wrote:
> Not putting header first may give you a compiling error.
> I create templates and orders of routines so that I don't get
> the "Used before defined" error message. Got to define what
> it is before you use it.
>
> "I think most things, except sr, kr, ksmps, nchnls, and 0dbfs
> could be put anywhere", sounds about right. And the sr, kr,
> ksmps, nchnls, and 0dbfs all go in the header.
>
> -PBS
>
> -------------------------------------------------------------------------------------
>
> --- obrandts@gmail.com wrote:
>
> From: "Oeyvind Brandtsegg"
> To: csound@lists.bath.ac.uk
> Subject: [Csnd] Re: Orc Headers
> Date: Thu, 30 Oct 2008 11:01:12 +0100
>
> 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"
>
>
>
>
> _____________________________________________________________
> Netscape. Just the Net You Need.
>
>
> 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
|