hydrogen 1.1.1
Lilypond.cpp File Reference

Functions

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

Variables

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

Function Documentation

◆ writeDuration()

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

◆ 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.

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"

◆ 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)