Skip to content

Commit

Permalink
Fix comment
Browse files Browse the repository at this point in the history
  • Loading branch information
pje authored Aug 14, 2024
1 parent 6b2a492 commit ce77854
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/util.h
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,10 @@ float linear_envelope(float a, float d, float s, float r, float seconds, float s
}
}

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

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

0 comments on commit ce77854

Please sign in to comment.