hydrogen 1.2.3
Lilypond.cpp File Reference

Go to the source code of this file.

Functions

static void writeDuration (std::ofstream &stream, unsigned duration)
 
static void writeNote (std::ofstream &stream, const std::vector< int > &notes)
 Write duration in LilyPond format, from number of 1/48th of a beat.
 

Variables

static const char * sHeader
 
static const char *const sNames []
 Write group of note (may also be a rest or a single note)
 

Function Documentation

◆ writeDuration()

static void writeDuration ( std::ofstream & stream,
unsigned duration )
static

Definition at line 215 of file Lilypond.cpp.

◆ writeNote()

static void writeNote ( std::ofstream & stream,
const std::vector< int > & notes )
static

Write duration in LilyPond format, from number of 1/48th of a beat.

Definition at line 201 of file Lilypond.cpp.

Variable Documentation

◆ sHeader

const char* sHeader
static
Initial value:
=
"\\version \"2.16.2\"\n"
"\n"
"#(define gmStyle\n"
" '(\n"
" (bassdrum default #f -3) ; Kick\n"
" (lowoodblock triangle #f 0) ; Stick\n"
" (snare default #f 1) ; Snare\n"
" (maracas triangle #f -3) ; Hand Clap\n"
" (highfloortom default #f -1) ; Tom Low\n"
" (hihat cross #f 5) ; Closed HH\n"
" (lowtom default #f 2) ; Tom Mid\n"
" (pedalhihat cross #f -5) ; Pedal HH\n"
" (hightom default #f 3) ; Tom Hi\n"
" (openhihat cross \"open\" 5) ; Open HH\n"
" (cowbell triangle #f 3) ; Cowbell\n"
" (ridecymbal cross #f 4) ; Main Ride\n"
" (crashcymbal cross #f 6) ; Main Crash\n"
" (ridecymbala cross #f 4) ; Additional Ride\n"
" (crashcymbala cross #f 7) ; Additional Crash\n"
" ))\n"
"\n"

Definition at line 37 of file Lilypond.cpp.

◆ sNames

const char* const sNames[]
static
Initial value:
= { "bd", "wbl", "sn", "mar",
"sn", "tomfh", "hh", "toml",
"hhp", "tomh", "hho", "cb",
"cymr", "cymc", "cymra", "cymca" }

Write group of note (may also be a rest or a single note)

Definition at line 195 of file Lilypond.cpp.