File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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);
You can’t perform that action at this time.
0 commit comments