mirror of
https://github.com/thestk/stk
synced 2026-01-13 13:01:52 +00:00
Version 4.2.1
This commit is contained in:
committed by
Stephen Sinclair
parent
a6381b9d38
commit
2cbce2d8bd
@@ -14,7 +14,7 @@
|
||||
used in fixed delay-length applications, such
|
||||
as for reverberation.
|
||||
|
||||
by Perry R. Cook and Gary P. Scavone, 1995 - 2004.
|
||||
by Perry R. Cook and Gary P. Scavone, 1995 - 2005.
|
||||
*/
|
||||
/***************************************************/
|
||||
|
||||
@@ -167,9 +167,9 @@ StkFloat Delay :: nextOut(void)
|
||||
return inputs_[outPoint_];
|
||||
}
|
||||
|
||||
StkFloat Delay :: tick(StkFloat sample)
|
||||
StkFloat Delay :: computeSample( StkFloat input )
|
||||
{
|
||||
inputs_[inPoint_++] = sample;
|
||||
inputs_[inPoint_++] = input;
|
||||
|
||||
// Check for end condition
|
||||
if (inPoint_ == inputs_.size())
|
||||
@@ -184,9 +184,9 @@ StkFloat Delay :: tick(StkFloat sample)
|
||||
return outputs_[0];
|
||||
}
|
||||
|
||||
StkFloat *Delay :: tick(StkFloat *vector, unsigned int vectorSize)
|
||||
StkFloat Delay :: tick( StkFloat input )
|
||||
{
|
||||
return Filter::tick( vector, vectorSize );
|
||||
return computeSample( input );
|
||||
}
|
||||
|
||||
StkFrames& Delay :: tick( StkFrames& frames, unsigned int channel )
|
||||
|
||||
Reference in New Issue
Block a user