mirror of
https://github.com/sshlien/abcmidi.git
synced 2026-04-19 08:13:42 +00:00
2020.10.07
This commit is contained in:
7
store.c
7
store.c
@@ -1787,6 +1787,11 @@ void event_linebreak()
|
||||
addfeature(LINENUM, lineno, 0, 0);
|
||||
}
|
||||
|
||||
/* a score linebreak character has been encountered */
|
||||
void event_score_linebreak(char ch)
|
||||
{
|
||||
}
|
||||
|
||||
void event_startmusicline()
|
||||
/* starting to parse line of abc music */
|
||||
{
|
||||
@@ -1903,7 +1908,7 @@ double x, h3;
|
||||
int n;
|
||||
float w;
|
||||
/* h3 (1901.955) is the 3rd harmonic (fifth+octave) represented in cents */
|
||||
h3 = 1200.0 * log2 (3.0);
|
||||
h3 = 1200.0 * log (3.0)/log(2.0); /* 1200 * log2(3.0) */
|
||||
x = h3 - octave_size; /* fifth reduced by the tempered octave */
|
||||
n = (int) (0.5 + x * ndiv / octave_size); /* fifth in integer steps */
|
||||
w = n * octave_size / ndiv; /* fifth quantized according to temperament */
|
||||
|
||||
Reference in New Issue
Block a user