[Csnd] buzz artifacts?
Date | 2010-01-15 13:21 |
From | Casper Schipper |
Subject | [Csnd] buzz artifacts? |
Dear cSounders, I am using the buzz opcode to create low density impulses, but I get strange sweep like artifacts. At first I thought this was because of the frequency modulation I use (to get density changes), but even without it the artifacts are there. Does anybody know how to avoid them ? Or is there maybe a better way of creating clean random pulses ? Here's the instrument: <CsInstruments> ; Initialize the global variables. sr = 44100 kr = 4410 ksmps = 10 nchnls = 1 ; Instrument #1. instr 1 kamp = 30000 * p4 ifreqmin = p5 ; these freqs control the density of pulses ifreqmax = p6 imodmin = 0.05 imodmax = 1 ifreqdiv = ifreqmax - ifreqmin kmod jspline ifreqdiv,imodmin,imodmax kfreq = kmod + ifreqmin knharm = 22050/kfreq ; find maximum harmonic below niquist ifn = 1 a1 buzz kamp, kfreq, knharm, ifn out a1 endin </CsInstruments> <CsScore> ; Table #1, a sine wave. f 1 0 16384 10 1 ; Play Instrument #1 for one second. ; p4 = amp p5 = freqs i 1 0 96 0.4 4 2 i 1 0 96 0.4 4 2 i 1 0 96 0.4 4 2 </CsScore> </CsoundSynthesizer> |