54 lines
961 B
PHP
54 lines
961 B
PHP
|
<?php
|
||
|
|
||
|
const MAX_FRACTION = 8;
|
||
|
const PERCUSSION_REST = "r";
|
||
|
const PERCUSSION_CLAP = "hc";
|
||
|
const PERCUSSION_BEAT = "ss";
|
||
|
const PERCUSSION_BEAT_ACCENT = "sn";
|
||
|
const OUTPUT_FOLDER = "./tmp/";
|
||
|
const LILYPOND_FORMAT = '\\version "2.20.0"
|
||
|
\\header {
|
||
|
tagline = ""
|
||
|
}
|
||
|
|
||
|
main_source = \\drummode {
|
||
|
\\numericTimeSignature
|
||
|
\\time %1$s
|
||
|
\\tempo %2$s
|
||
|
%3$s
|
||
|
}
|
||
|
main_padded = \\drummode {
|
||
|
%4$s | \\main_source | %4$s
|
||
|
}
|
||
|
main = \\drummode {
|
||
|
\\main_source
|
||
|
}
|
||
|
beat = \\drummode {
|
||
|
\\numericTimeSignature
|
||
|
\\time %1$s
|
||
|
\\tempo %2$s
|
||
|
%5$s
|
||
|
}
|
||
|
\\score {
|
||
|
\\new DrumStaff <<
|
||
|
\\new DrumVoice { \\voiceOne \\main_padded }
|
||
|
\\new DrumVoice { \\voiceTwo \\beat }
|
||
|
>>
|
||
|
\\midi {
|
||
|
\\tempo %2$s
|
||
|
}
|
||
|
}
|
||
|
\\score {
|
||
|
\\new DrumStaff \with {
|
||
|
drumStyleTable = #percussion-style
|
||
|
\override StaffSymbol.line-count = #1
|
||
|
} <<
|
||
|
\\new DrumVoice { \\voiceOne \\main }
|
||
|
>>
|
||
|
\\layout { }
|
||
|
}
|
||
|
\\paper {
|
||
|
}';
|
||
|
|
||
|
?>
|