| I'm working through Dr Boulanger's intro chapter to the upcoming Csound book
(sorry, don't have the url) and am having trouble with his instr
106
____________
instr 106 ; simple sample playback
a1 loscil 10000, 440, 4
out a1
endin
_____
;the function statement in .sco, as near as I can make out:
f 4 0 0 1 "sing.wav" 0 4 0
the p fields are:
i 106 20 3
since I seem to have trouble with aif files, I generated a 3 second 44.1
mono wav file at A 440 using Cool Edit, as described by Dr Boulanger as
being the original
file of a singer singing 'la' at that pitch . it seems to make no difference
. .
in the compilation, I get the error:
INIT ERROR in instr 106: no legal base frequency
a1 loscil 10000 440 4 0 -1 0 0 -1 0 0
B 20.000 - note deleted. i106 had 1 init errors
when I added the numbers 0 -1 0 0 -1 0 0 to the instr that the error
message offered, it then worked . . . . what's going on? shouldn't the
original example give this, for the book?
also, though it all compiles, and claims '0 errors' there is the error
message:
ftable 4:
deferred alloc
sing.wav: WAVE, 132300 samples
audio sr = 44100, monaural
WARNING: GEN1: aiff file truncated by ftable size
audio samps 132300 exceeds ftsize 132299
non-deferred ftable 4 needs size 262144
ftable 4: 132300 points, scalemax 1.000
how do you tell it to expect a wav instead of an aif? or is that even the
problem? that portion compiles, very interestingly too. and plus, the
final compilation only has five instrument sounds, though the sco seems to
call for six events each lasting 3 seconds, and the console output seems to
suggests all 6 are written. maybe i'm just staying up too late, and I'm
nuts for sure anyway, but it seems to me I've done it as the book suggests,
and there are oddities, that I've had to make significant changes to get it
to work. I hope I'm not the only beginner that all this might help if a
more experienced person cared to make comments.
Jim
|