Csound Csound-dev Csound-tekno Search About

pops, etc.

Date1999-01-21 06:32
FromKevin Gallagher
Subjectpops, etc.
This may seem like an elementary question, but how do I get rid of the
pops at the beginning and/or end of some notes?  I tried writing to a wav
file and it's still there, so I don't think it's a buffering problem.  I
also tried putting an amplitude envelope on the note, but the pop doesn't
disappear unless I create a farily long rise and fall, giving me a much
soggier attack and release than I want.  I usually use DirectSound 2.5,
but I tried Winsound and the same thing happens.  Does anybody have any
suggestions on how to get rid of those darn pops?  Thanks!

				Kevin Gallager, kgallagh@astro.temple.edu
				Web - http://astro.temple.edu/~kgallagh

Date1999-01-21 14:45
FromErik Spjut
SubjectRe: pops, etc.
Infinite and marvelous are the ways to generate pops. We can't diagnose
your particular problem without seeing your .orc and .sco.

Some general suggestions: Never use k-rate variables for anything or set
kr=sr. k-rate for envelope generators such as linseg, expseg, envelopx (or
whatever it's called these days) and balance are especially severe
offenders.

Never try to use true square waves or triangle waves (or anything with
sharp edges). Always use band-limited Fourier approximations (write me
personally if you have no clue what I mean) or higher-order polynomials or
cubic splines.

There are many others, but they're largely case specific.

At 1:32 AM -0500 1/21/99, Kevin Gallagher wrote:
>This may seem like an elementary question, but how do I get rid of the
>pops at the beginning and/or end of some notes?  I tried writing to a wav
>file and it's still there, so I don't think it's a buffering problem.  I
>also tried putting an amplitude envelope on the note, but the pop doesn't
>disappear unless I create a farily long rise and fall, giving me a much
>soggier attack and release than I want.  I usually use DirectSound 2.5,
>but I tried Winsound and the same thing happens.  Does anybody have any
>suggestions on how to get rid of those darn pops?  Thanks!
>
>				Kevin Gallager, kgallagh@astro.temple.edu
>				Web - http://astro.temple.edu/~kgallagh


-------------------------------------------------------------------------------
Erik Spjut (spyoot, rhymes with cute) - Associate Professor of Engineering
and  Associate Director for Engineering Computing,  Center for Design Education
Harvey Mudd College, Claremont, CA 91711-5990  USA
Erik_Spjut@hmc.edu      Ph & Voice mail (909) 607-3890      Fax (909) 621-8967