| Well in instr 1 you´re multiplying two enveloped oscillators of maximum
ampliture = 10000 each, so you´ll get a peak amplitude of 1000000, far
beyond the limit of about 32000 for a 16 bit output. You´ll only hear a
click at the beginning and at the end of the note because all the signal is
clipped.
In instr 2 you perform an addition, so the output amplitude can go up to
20000 which is ok for 16bit files.
If you want to hear how ring modulation sounds (instr 1) I suggest you to
use normalized amplitudes (p4 = 1 in the score) and multiply the result by
10000 or whatever you want.
outs 10000*asig1*asig3, 10000*(asig2*asig3)
With normalized amplitudes you won´t have to be bothered by overflow.
Hope this helps,
Josep M Comajuncosas
Jeremiah T. Isaacs wrote:
> with the following orc and sco, i only hear instrument 1. if i comment
> out instrument 1 in the .sco, i hear only instrument 2.
>
> please tell me im making some strange mistake.
>
> i1 0 4 10000 6.00
> i2 4 5 10000 8.00
> instr 1
> asig1 oscil kenv1, cpspch(p5), 1
> asig2 oscil kenv1, cpspch(p5/2), 1
> asig3 oscil kenv1*0.2, cpspch(p5*2), 1
>
> outs asig1*asig3, asig2*asig3
> instr 2
> asig1 oscil kenv1, cpspch(p5), 2
> asig2 oscil kenv2, cpspch(p5/2), 2
>
> asig3 oscil kenv1, cpspch(p5*2), 2
> asig4 oscil kenv2, cpspch(p5*3), 2
>
> outs asig2+asig4, asig1+asig3
> --
--
Josep M Comajuncosas
C/ Circumval.lacio 75 08790 Gelida - Penedes
Catalunya - SPAIN
home phone : 93 7792243 / 00 34 3 7792243
Csound page at http://members.tripod.com/csound/
|