great work.
Unfortunately something seems to be not calculated right. In the following snippet LilyPond draws a quarter note instread of the eights and complains about a failing bar check.
\version "2.20.0"
\include "LilyPond-midiswing/beatalign.ly"
\include "LilyPond-midiswing/swing.ly"
\score {
\keepWithTag #'midi
<<
\context Staff = "lied" {
\time 4/4
\key g \major
\sw \relative c'' {
r2 b8 b4. |
}
}
>>
\midi{}
\layout{} % show what's going on with the MIDI code
}
GNU LilyPond 2.20.0
Processing `swingbug1.ly'
Parsing...
Interpreting music...
swingbug1.ly:12:19: warning: barcheck failed at: 1/24
r2 b8 b4.
|
Interpreting music...
swingbug1.ly:12:19: warning: barcheck failed at: 1/24
r2 b8 b4.
|
Preprocessing graphical objects...
MIDI output to `swingbug1.midi'...
Finding the ideal number of pages...
Fitting music on 1 page...
Drawing systems...
Layout output to `/tmp/lilypond-jD72t7'...
Converting to `swingbug1.pdf'...
Deleting `/tmp/lilypond-jD72t7'...
Success: compilation successfully completed