Csound Csound-dev Csound-tekno Search About

[Csnd] accessing a global orc variable from the score

Date2008-03-15 00:03
From"Oeyvind Brandtsegg"
Subject[Csnd] accessing a global orc variable from the score
AttachmentsNone  

Date2008-03-15 01:29
FromJacob Joaquin
Subject[Csnd] Re: accessing a global orc variable from the score
One possibility it to use macros instead of globals.  I usually define all my
instruments and named tables in a file called foo.csmacro, and then type #
include "./foo.csmacro" in both the orc and the sco.  I can then use them in
both the orc and score.  For example:


a1 oscil 0dbfs, 440, $tSine
...
i 2 0 4 0.5 262 $tSine


Best, 
Jake 
---- 
The Csound Blog 
http://www.thumbuki.com/csound/blog/






Oeyvind Brandtsegg-2 wrote:
> 
> When defining tables with ftgen in the orchestra, I find it very
> useful to be able to refer to tables via names rather than numbers.
> F.ex.
> 
> giSine ftgen 0, 0, 65537, 10, 1
> 
> And, it would be very useful to be able to select (named) tables via
> p-fields in the score. F.ex:
> 
> i1 0 1 giSine
> i1 2 1 giSaw
> etc
> 
> Is there any way to access a global orc variable from the score ?
> 
> best
> Oeyvind
> 

-- 
View this message in context: http://www.nabble.com/accessing-a-global-orc-variable-from-the-score-tp16062643p16063396.html
Sent from the Csound - General mailing list archive at Nabble.com.