Csound Csound-dev Csound-tekno Search About

Re: oscil3: bug or feature - oops!

Date1999-01-18 22:37
Frompete moss
SubjectRe: oscil3: bug or feature - oops!
just to further exhaust this topic, i tested oscil and oscili against oscil3 at
three different table sizes.  (5, 257, and 1025)  at 5, oscil outputs a square
wave, oscili outputs a triangle wave, and oscil3 outputs a sine wave with
points at the maximum and minimum.
at 257, oscili outputs a sine wave with an added freq at 12800 hz, while oscil3
outputs a very clean sine wave.  at 1025, there is virtually no difference that
i or my software (cool edit pro) was able to distinguish.

below is a modifed version of the work that greg posted earlier.  BTW, i love
the new .csd format.  it is so much easier to use for standard things.

pete











sr = 44100
kr = 4410
ksmps = 10
nchnls = 1

instr 1
aout oscil3 30000,p4,1
out aout
endin

instr 2
aout oscili 30000,p4,1
out aout
endin





f1 0 1025 10 1
i1 0 3 50
i2 3.5 3 50
e