| If I use ftgen and GEN01 together with strset, Csound crashes when it tries
to draw the table. Using the -d switch eliminates the problem. The problem
may be due to my sound files, but there is no problem if the f-tables are
generated in the score, even with graphic displays on. Finally, the
soundfile must be in the active directory, or a full path must be given.
For some reason, Csound seems to "forget" SSDIR and SFDIR, even though the
error message says:
cannot open foo.raw. Not in cur dir, SSDIR or SFDIR as defined
Soundin may also "forget" SSDIR and SFDIR when using strset, but I haven't
checked.
This problem isn't the end of the world, but it is annoying when dealing
with "scoreless" orchestras.
The following three csd files illustrate my points:
;Test1.csd
;This version crashes upon trying to draw the f-table
-n -W
sr = 44100
kr = 441
ksmps = 100
nchnls = 1
strset 91, "foo.raw"
gifoo ftgen 0, 0, 256, -1, 91, 0, 6, 0
gisin ftgen 0, 0, 512, 10, 1
instr 1
asig oscil 10000, p4, gisin
endin
i1 0 1 440
;====================================================
;Test2.csd
;This version works if "foo.raw" is in active directory
;Same as Test1.csd except for -d switch
-n -d -W
sr = 44100
kr = 441
ksmps = 100
nchnls = 1
strset 91, "foo.raw"
gifoo ftgen 0, 0, 256, -1, 91, 0, 6, 0
gisin ftgen 0, 0, 512, 10, 1
instr 1
asig oscil 10000, p4, gisin
endin
i1 0 1 440
;====================================================
;Test3.csd
;This version works if "foo.raw" is in SFDIR, SSDIR or Active Directory.
;"foo.raw" is now loaded in score
-n -W
sr = 44100
kr = 441
ksmps = 100
nchnls = 4
gifoo = 1
gisin ftgen 0, 0, 512, 10, 1
instr 1
asig oscil 10000, p4, gisin
endin
f1 0 256 -1 "foo.raw" 0 6 0
i1 0 1 440
|