Skip to content

Commit ce77854

Browse files
authored
Fix comment
1 parent 6b2a492 commit ce77854

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/util.h

+4-4
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,10 @@ float linear_envelope(float a, float d, float s, float r, float seconds, float s
7979
}
8080
}
8181

82+
// there's apparently not widespread agreement on which frequency midi notes
83+
// represent. What we have below is "scientific pitch notation". Ableton, maxmsp
84+
// and garageband use C3, which is shifted an octave lower.
85+
// https://en.wikipedia.org/wiki/Scientific_pitch_notation#See_also
8286
static const float note_frequency_lookup_table[] = {
8387
16.351597831287414,
8488
17.323914436054505,
@@ -178,10 +182,6 @@ static const float note_frequency_lookup_table[] = {
178182
3951.066410048992
179183
};
180184

181-
// there's apparently not widespread agreement on which frequency midi notes
182-
// represent. What we have below is "scientific pitch notation". Ableton, maxmsp
183-
// and garageband use C3, which is shifted an octave lower.
184-
// https://en.wikipedia.org/wiki/Scientific_pitch_notation#See_also
185185
const float TWELFTH_ROOT_OF_TWO = 1.0594630943592953;
186186
const unsigned int base_number = 57;
187187
const unsigned int base_freq = 440;

0 commit comments

Comments
 (0)