Skip to content

Commit 5bd7f26

Browse files
committed
Rename phasor with 3 args to phasorBetween
1 parent 7c3b372 commit 5bd7f26

File tree

7 files changed

+7
-6
lines changed

7 files changed

+7
-6
lines changed

examples/examples-maximilian/08-Counting2/08-Counting2.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ void play(double *output) {
3737
// Once every second, CurrentCount counts from 1 until it gets to 9, then resets itself.
3838
// When it reaches 9 it resets, so the values you get are 1-8.
3939

40-
CurrentCount=myCounter.phasor(1.0, 1.0, 9.0);//phasor can take three arguments; frequency, start value and end value.
40+
CurrentCount=myCounter.phasorBetween(1.0, 1.0, 9.0);//phasor can take three arguments; frequency, start value and end value.
4141

4242
// If we multiply the output of CurrentCount by 100, we get 100,200,300,400,500,600,700,800 in that order.
4343
// These become the frequency of the oscillator.

examples/examples-maximilian/08-Counting3/08-Counting3.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ void setup() {//some inits
2323

2424
void play(double *output) {
2525

26-
CurrentCount=myCounter.phasor(1, 1, 9);//phasor can take three arguments; frequency, start value and end value.
26+
CurrentCount=myCounter.pphasorBetween(1, 1, 9);//phasor can take three arguments; frequency, start value and end value.
2727

2828
// here we use a conditional to make something happen at a specific time.
2929

examples/examples-maximilian/08-Counting4/08-Counting4.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ void setup() {//some inits
2424

2525
void play(double *output) {
2626

27-
CurrentCount=myCounter.phasor(1*((another.sawn(0.1)+1)/2), 1, 9);//phasor can take three arguments; frequency, start value and end value.
27+
CurrentCount=myCounter.phasorBetween(1*((another.sawn(0.1)+1)/2), 1, 9);//phasor can take three arguments; frequency, start value and end value.
2828

2929
if (CurrentCount<5) {//simple if statement
3030

examples/examples-maximilian/09-Envelopes/09-Envelopes.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ void play(double *output) {
4242
//notice that we feed in a value of 1. to create an envelope shape we can apply later.
4343
myCurrentVolume=myEnvelope.adsr(1.,myEnvelope.trigger);
4444

45-
CurrentCount=myCounter.phasor(1, 1, 9);//phasor can take three arguments; frequency, start value and end value.
45+
CurrentCount=myCounter.phasorBetween(1, 1, 9);//phasor can take three arguments; frequency, start value and end value.
4646

4747
// You'll notice that these 'if' statements don't require curly braces "{}".
4848
// This is because there is only one outcome if the statement is true.

examples/examples-maximilian/10-Filters/10-Filters.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ void play(double *output) {
3939

4040
myCurrentVolume=myEnvelope.adsr(1.,myEnvelope.trigger);
4141

42-
CurrentCount=myCounter.phasor(1, 1, 9);//phasor can take three arguments; frequency, start value and end value.
42+
CurrentCount=myCounter.phasorBetween(1.0, 1.0, 9.0);//phasor can take three arguments; frequency, start value and end value.
4343

4444
// You'll notice that these 'if' statements don't require curly braces "{}".
4545
// This is because there is only one outcome if the statement is true.

examples/examples-maximilian/20-FFT/20-FFT.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ void setup() {
3131
void play(double *output) {
3232

3333

34-
float myOut=mySine.sinewave(myPhasor.phasor(0.2,100,5000));
34+
float myOut=mySine.sinewave(myPhasor.phasorBetween(0.2,100,5000));
3535
//output[0] is the left output. output[1] is the right output
3636

3737
if (myFFT.process(myOut)) {

tests/build-examples.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ function compile_example {
2828
done
2929
}
3030

31+
compile_example "esp32:esp32:esp32" "../examples/examples-maximilian/*"
3132
compile_example "esp32:esp32:esp32" "../examples/examples-basic-api/base*"
3233
compile_example "esp32:esp32:esp32" "../examples/examples-player/player*"
3334
compile_example "esp32:esp32:esp32" "../examples/examples-webserver/str*"

0 commit comments

Comments
 (0)