Thanks a lot for examples of the ring modulation! One more question — how to make the output file length same as the input file length automatically? (If I want to load audiofile, ring-modulate it and write to disc the result file with same duration?)
Using Sfile saves you from typing the filename out twice.
In this case the score or schedule/event duration (p3) gets overwritten and is essentially not important. You could make it say .1 seconds then the output will process quicker.
ex. i"RingMod"0 .1 or
schedule"RingMod", 0, .1
Though, if you want to listen to it in realtime as it is modulated, you could use the fout opcode to write the output file to disk instead of -o in CsOptions.