Skip to content

Commit 560dd87

Browse files
author
mars
committed
fixed typos
1 parent fac572c commit 560dd87

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

LibSource/FloatArray.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ class FloatArray {
120120
void negate(FloatArray& destination);
121121

122122
/**
123-
* Copy and negate the array.
123+
* Negate the array.
124124
* Sets each element in the array to its opposite.
125125
*/
126126
void negate();
@@ -147,7 +147,7 @@ class FloatArray {
147147

148148
/**
149149
* Mean of the array.
150-
* Gets the mean of the values in the array.
150+
* Gets the mean (or average) of the values in the array.
151151
*/
152152
float getMean();
153153

LibSource/VoltsPerOctave.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,18 +22,18 @@ class VoltsPerOctave {
2222
tune = octaves;
2323
}
2424
float getFrequency(float sample){
25-
return voltsToHerz(sampleToVolts(sample)+tune);
25+
return voltsToHertz(sampleToVolts(sample)+tune);
2626
}
2727
float sampleToVolts(float sample){
2828
return (sample-offset) * multiplier;
2929
}
30-
float voltsToHerz(float volts){
30+
float voltsToHertz(float volts){
3131
return 440.f * fastpow2f(volts);
3232
}
3333
float voltsToSample(float volts){
3434
return volts / multiplier + offset;
3535
}
36-
float herzToVolts(float hertz){
36+
float hertzToVolts(float hertz){
3737
return log2f(hertz/440.0f);
3838
}
3939
void getFrequency(FloatArray samples, FloatArray output);

0 commit comments

Comments
 (0)