Re: [CM] ring-modulate

2024-06-04 Thread bil

It looks like rm-radians is not used in new-effects.scm, so that code
is multiplying the input samples by an oscil at rm-frequency.  This
is the same as the code in examp.scm without the envelope. ring-modulate
is just a multiply, so I think you want (ring-modulate mysnd (oscil os))
where the "os" oscil runs at whatever frequency you want (the default 
appears

to be 100Hz).  (The "radians" variable is misnamed -- this is probably
a number in Hz).

___
Cmdist mailing list
Cmdist@ccrma.stanford.edu
https://cm-mail.stanford.edu/mailman/listinfo/cmdist


[CM] ring-modulate

2024-06-04 Thread James Hearon
Hi,
I'm getting confused over ring-modulate ex. in manual vs. ring-modulate code in 
new-effects.scm.

Manual: ring-modulate in1 in2; returns (* in1 in2)

And new-effects.scm seems to show map-channel using frequency and radians:
(rm-effect rm-frequency #f)) ;(list 0 0 1 (hz->radians rm-radians))

I'm trying to use a reader and apply ring-modulate to the snd.

(with-sound (:play #t)
  (let ((reader (make-readin "mywave.wav")))
(do ((i 0 (+ i 1)))
((= i 602866))
(let* ((mysnd (readin reader)))
  (outa i (* 0.5 (ring-modulate xxx xxx)) ;not sure what it wants here?

But whatever I use as input to ring-modulate I'm not getting close to the 
new-effects.scm application of Ring modulation which uses frequency and radians.

Wondering where I'm getting confused.

Jim
___
Cmdist mailing list
Cmdist@ccrma.stanford.edu
https://cm-mail.stanford.edu/mailman/listinfo/cmdist