%% Generated by lilypond-book.py %% Options: [linewidth=160\mm,alt=[image of music],printfilename,indent=0\mm,texidoc] #(set! toplevel-score-handler ly:parser-print-score) #(set! toplevel-music-handler (lambda (p m) (ly:parser-print-score p (ly:music-scorify m p)))) #(ly:set-option (quote no-point-and-click)) #(define version-seen? #t) % **************************************************************** % Start cut-&-pastable-section % **************************************************************** \paper { #(define dump-extents #t) linewidth = 160\mm indent = 0\mm } \layout { } % **************************************************************** % ly snippet: % **************************************************************** \renameinput "music-creation.ly" \version "2.6.0" % possible rename to scheme- something. -gp \header { texidoc = "@cindex Scheme Music Creation You can engrave music using just Scheme expressions. Although those expressions reflect the inner mechanism of LilyPond, they are rather clumsy to use, so avoid them, if possible. " } #(define (make-note-req p d) (make-music 'NoteEvent 'duration d 'pitch p)) #(define (make-note elts) (make-music 'EventChord 'elements elts)) #(define (seq-music-list elts) (make-music 'SequentialMusic 'elements elts)) fooMusic = #(seq-music-list (list (make-note (list (make-note-req (ly:make-pitch 1 0 0) (ly:make-duration 2 0)))) (make-note (list (make-note-req (ly:make-pitch 1 1 0) (ly:make-duration 2 0)))))) \score { \fooMusic \layout { raggedright = ##t } } % **************************************************************** % end ly snippet % ****************************************************************