< Back to IRCAM Forum

ADD-2

Hello,

there is something I do not understand about ADD-2
“The frequency of the oscillator is f0*scal.”
Means if I give one f0 and two scal I have two sounds (numcols = 2)?
If I give two f0 and one scal I have two sounds (numcols = 2)?
But giving two f0 and two scal I obtained only two sounds, numcols =2 or =4 did not change the result.
I checked on Audiosculpt to make sure: I got the 1st scal applied to the 1st f0 and the 2nd scal applied to the 2nd f0.
I tried to work on the lists (sub-listing, repeating ecc.), no use.

If I have a list of f0 and a list of scal, and I want each scal to be applied to all the elements in the f0 list,
can I do it without a omloop?

Thank you in advance!

Marco Bidin

The only way to have an iteration between two lists is with omloop.
http://support.ircam.fr/docs/om/om6-manual/co/LoopIntro.html
The OMChroma classes work as the other standard OM classes. So you have the list (100 200 300 400 500) as f0, the list(1 1.1 1.2) as scal, with 6 numcol you get as result not the iteration between the two list but the cross result list (100 220 360 400 550)
If you double the numcols you double the Csound istatments and every line will execute twice, but anyway the rendering result will rescaled to 0 dB and you will have no change. See the .sco file in the out-files, but remember, the rendering of the audio files is always rescaled to 0 dB.