Skip to content

Commit 24e2c08

Browse files
author
Vivian Stewart
committed
Revert "fast sine function"
This reverts commit 3630d9b. A new class is needed.
1 parent 9503223 commit 24e2c08

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

src/AudioEffects/SoundGenerator.h

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,7 @@
55
#include "AudioBasic/Collections.h"
66

77
namespace audio_tools {
8-
// sine approximation.
9-
float sine(float t) {
10-
float p = (t - (int)t) - 0.5f; // 0 <= p <= 1
11-
float pp = p * p;
12-
return (p - 6.283211f * pp * p + 9.132843f * pp * pp * p) * -6.221086f;
13-
}
8+
149
/**
1510
* @brief Base class to define the abstract interface for the sound generating classes
1611
* @author Phil Schatzmann

0 commit comments

Comments
 (0)