Csound Csound-dev Csound-tekno Search About

gen functions

Date1997-08-20 16:57
Frompete moss
Subjectgen functions
i am new to csound and i have one, probably rather silly question.  but
i must know...

why are the gen routines (the f statements) called from within the .sco?

i have read through the manual searching for the reason and it still
eludes me.
it makes more sense to me to have them in the .orc file where the rest
of the definitions are called.  the reason is, in toot 6 in the manual
the f statements are:

f1 0 2048 10 1 ;sine
f2 0 2048 10 1 .5 .3 .25 .2 .167 .14 .125 .111 ;sawtooth
f3 0 2048 10 1 0 .3 0 .2 0 .14 0 .111 ;square
f4 0 2048 10 1 1 1 1 .7 .5 .3 .1 ;pulse

now each waveshape changes the resulting sound of the instrument. it
seems to me that each instrument file could stand alone if it wasnt for
the f statements in the .sco file.  better portability could be had if
the orchestra was independant of the score.

please help me with this problem!!!

william 'pete' moss


Date1997-08-20 17:21
Fromjpff@maths.bath.ac.uk
SubjectRe: gen functions
This is a FAQ really, but there is a new answer!

Old answer:
    SCORE activity is dynamic, and so creating and destroying of
    tables lives there.  The ORCHESTRA is static, existing throughout
    the run,

New answer:
    Wait for version 3.47 where you can create tables in the orchestra

I have an alpha version of 3.47 out there now.  My own Window95 PC
decided to burn up (or otherwise sulk) and so I am having to
reconstruct on a new machine.  A few more days and there may be a beta
version.

==John ff