Csound Csound-dev Csound-tekno Search About

resonx: parameters changed/undocumented?

Date1999-03-09 09:40
FromRick Mealey
Subjectresonx: parameters changed/undocumented?
Hello...

I ran into a puzzlement last night with the latest Bath CSound running under
Win95 (version number? anybody?).

My first rev of the orchestra below consisted of noise run through the tonex
filter bank. Inelegantly, there were ten instruments, each of which sounded
for one second in its turn, with increasing values for inumlayer. (It didn't
occur to me to try 0 as a number too. Oh well.) That version worked superbly
for my experiment.

Then, working my way up the frequency spectrum, I tried resonx, plugging in
values that I thought would behave. That orc looked remarkably like the one
below, except that the values for iscl and inumlayer were transposed. But
horrors! I promptly received errors in each of the ten instruments. No joy.

Apparently the value I was using for iscl was invalid-- even though (if I'm
reading the online help correctly) the value "2" for iscl ought to be valid.
The docs say that that parameter behaves just like it would in the single
reson unit, and it's valid ~there~....

So, on a hunch, I transposed the values for iscl and inumlayer, winding up
with the orc below, and compiled again. I wound up with one noise burst
followed by some really ugly stuff. I felt like if I didn't take my cans off,
my brains would melt. (Obviously my orcs and scos are not yet ready for prime
time.)

So what am I missing here? Is the order of resonx's parameters correct as
presented in the manual and am I just using bad values, or did the parameters
get swapped somewhere, or is there a hidden parameter, or what?

Thanks for the eartime,
Rick

In that handy-dandy csd format:


sr=44100
kr=11025
ksmps=4
nchnls=2

instr 1 ; noise for testing
idur = p3
anoise	rand	28000,28000,1
;		asig,  kcf, kbw, iscl, inumlayer, istor]
afil	resonx	anoise,1000,1000,2,    1,         1
	outs	afil,afil
endin

instr 2 ; noise for testing
idur = p3
anoise	rand	28000,28000,1
;		asig,  kcf, kbw, iscl, inumlayer, istor]
afil	resonx	anoise,1000,1000,2,    2,         1
	outs	afil,afil
endin
.
; and so on, ad nauseam down to
.
instr 10 ; noise for testing
idur = p3
anoise	rand	28000,28000,1
;		asig,  kcf, kbw, iscl,inumlayer,istor]
afil	resonx	anoise,1000,1000,10,  2,        1
	outs	afil,afil
endin


i 1 0 1
i 2 1 1
i 3 2 1
i 4 3 1
i 5 4 1
i 6 5 1
i 7 6 1
i 8 7 1
i 9 8 1
i 10 9 1
e



____________________________________________________________________
More than just email--Get your FREE Netscape WebMail account today at htt