mirror of
https://github.com/thestk/stk
synced 2026-01-16 06:21:51 +00:00
Version 3.0
This commit is contained in:
committed by
Stephen Sinclair
parent
7c0ee03d60
commit
868787a5f9
39
STK/Reverb.cpp
Normal file
39
STK/Reverb.cpp
Normal file
@@ -0,0 +1,39 @@
|
||||
/********************************************/
|
||||
/* Reverb Abstract Class, */
|
||||
/* by Tim Stilson, 1998 */
|
||||
/* */
|
||||
/* Integrated into STK by Gary Scavone */
|
||||
/* with T60 argument. */
|
||||
/********************************************/
|
||||
|
||||
#include "Reverb.h"
|
||||
|
||||
Reverb :: Reverb()
|
||||
{
|
||||
}
|
||||
|
||||
MY_FLOAT Reverb :: tick(MY_FLOAT sample)
|
||||
{
|
||||
printf("Warning: Using virtual function Reverb :: tick()\n");
|
||||
return 0;
|
||||
}
|
||||
|
||||
void Reverb :: setEffectMix(MY_FLOAT mix)
|
||||
{
|
||||
}
|
||||
|
||||
int Reverb :: isprime(int val)
|
||||
{
|
||||
int i;
|
||||
|
||||
if (val == 2) return 1;
|
||||
if (val & 1)
|
||||
{
|
||||
for (i=3; i<(int)sqrt((double)val)+1; i+=2)
|
||||
{
|
||||
if ((val%i) == 0) return 0;
|
||||
}
|
||||
return 1; /* prime */
|
||||
}
|
||||
else return 0; /* even */
|
||||
}
|
||||
Reference in New Issue
Block a user