| I feel compelled to say, reading this, that I think the specification of
the opcode is a little flawed, in that it requires the user to know, or
take the trouble to find out, if a base frequency is contained in the
header. Possibly a majority of files don't carry this information. Given
the solution suggested, can't the opcode be revised to take the already
used kcps argument as the default, unless overridden?
Richard Dobson
rasmus ekman wrote:
>
> 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.
>
--
Test your DAW with my Soundcard Attrition Page!
http://wkweb5.cableinet.co.uk/rwd (LU: 19th May 1999) |