| Jim Smitherman wrote:
>
> I'm having trouble with Dr Boulangers' instr 106
> a1 loscil 10000, 440, 4
> I generated a 3 second 44.1 mono wav file at A 440 using Cool Edit,
> in the compilation, I get the error:
> INIT ERROR in instr 106: no legal base frequency
Excerpts from LOSCIL entry of Csound manual:
ar1 [,ar2] loscil xamp, kcps, ifn[, ibas] [,imod1,ibeg1,iend1] [, imod2,ibeg2,iend2]
ibas (optional) - base frequency in cps of the recorded sound.
This optionally overrides the frequency given in the AIFF file,
but is required if the file did not contain one.
The default value is 0 (no override).
End excerpt.
So, an extra argument like this:
a1 loscil 10000, 440, 4, 440
should make it work.
If the chapter text does not mention some specific file having
this info (chunk), it may be a problem in the text. Still, the
error message *is* somewhat informative, and so should help.
Good luck,
|