Skip to content

Commit 0c925be

Browse files
author
Martin Klang
committed
Phasor renamed RampOscillator
1 parent 7d4bdfd commit 0c925be

1 file changed

Lines changed: 9 additions & 9 deletions

File tree

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
1-
#ifndef PHASOR_H
2-
#define PHASOR_H
1+
#ifndef RAMPOSCILLATOR_H
2+
#define RAMPOSCILLATOR_H
33

44
#include "Oscillator.h"
55

6-
class Phasor : public Oscillator {
6+
class RampOscillator : public Oscillator {
77
private:
88
float mul;
99
float phase;
1010
float incr;
1111
public:
12-
Phasor() : phase(0.0f), incr(0.0f) {
12+
RampOscillator() : phase(0.0f), incr(0.0f) {
1313
setSampleRate(48000);
1414
}
15-
Phasor(float sr) : phase(0.0f), incr(0.0f){
15+
RampOscillator(float sr) : phase(0.0f), incr(0.0f){
1616
setSampleRate(sr);
1717
}
1818
void setSampleRate(float sr){
@@ -46,12 +46,12 @@ class Phasor : public Oscillator {
4646
phase -= 1.0f;
4747
return sample;
4848
}
49-
static Phasor* create(float sr){
50-
return new Phasor(sr);
49+
static RampOscillator* create(float sr){
50+
return new RampOscillator(sr);
5151
}
52-
static void destroy(Phasor* osc){
52+
static void destroy(RampOscillator* osc){
5353
delete osc;
5454
}
5555
};
5656

57-
#endif /* PHASOR_H */
57+
#endif /* RAMPOSCILLATOR_H */

0 commit comments

Comments
 (0)