Csound Csound-dev Csound-tekno Search About

samphold: problem with audio ouput/control gating ?

Date1999-06-05 18:22
FromPaul Barton-Davis
Subjectsamphold: problem with audio ouput/control gating ?
if you use samphold with an a-rate output and a k-rate input, you a
control-cycle's (ksmps samples) worth of constant-valued output if the
gate is zero. this data produces silence.

this means that samphold does do what i would expect, which is
continue outputting the last ksmps-worth of input data. 

however, on thinking about it, its really not clear to me what it
should do under such circumstances. the chances are that playing the
last ksmps-samples over and over will result in clicking at 1/kr Hz,
because its unlikely that there are smooth amplitude transitions at
the end of loop.

any opinions ?

--p