X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=Documentation%2Fsnippets%2Fscore-for-diatonic-accordion.ly;h=a638ceb7fd3be5de50a7b078cc6b826079a7cc02;hb=13da8b2;hp=be01ba6b7389a8ac4ae32bb99136862b4b95ec2e;hpb=580faff1d6167b1500228dc5c5ae073dca0ead40;p=lilypond.git diff --git a/Documentation/snippets/score-for-diatonic-accordion.ly b/Documentation/snippets/score-for-diatonic-accordion.ly index be01ba6b73..a638ceb7fd 100644 --- a/Documentation/snippets/score-for-diatonic-accordion.ly +++ b/Documentation/snippets/score-for-diatonic-accordion.ly @@ -1,10 +1,14 @@ -%% Do not edit this file; it is automatically -%% generated from LSR http://lsr.dsi.unimi.it -%% This file is in the public domain. -\version "2.13.39" +% DO NOT EDIT this file manually; it is automatically +% generated from Documentation/snippets/new +% Make any changes in Documentation/snippets/new/ +% and then run scripts/auxiliar/makelsr.py +% +% This file is in the public domain. +%% Note: this file works from version 2.16.0 +\version "2.17.6" \header { - lsrtags = "template" + lsrtags = "template, real-music, specific-notation" texidoc = " A template to write a score for a diatonic accordion. @@ -57,6 +61,7 @@ editor. doctitle = "Score for diatonic accordion" } % begin verbatim + verse = \lyricmode { Wie gross bist du! Wie gross bist du! } harmonies = \new ChordNames \chordmode { @@ -67,15 +72,15 @@ harmonies = \new ChordNames \chordmode { bes1 } -NoStem = \override Stem #'transparent = ##t -NoNoteHead = \override NoteHead #'transparent = ##t -ZeroBeam = \override Beam #'positions = #'(0 . 0) +NoStem = { \override Stem.transparent = ##t \override Flag.transparent = ##t } +NoNoteHead = \override NoteHead.transparent = ##t +ZeroBeam = \override Beam.positions = #'(0 . 0) staffTabLine = \new Staff \with { \remove "Time_signature_engraver" \remove "Clef_engraver" } { - \override Staff.StaffSymbol #'line-positions = #'(0) + \override Staff.StaffSymbol.line-positions = #'(0) % Shows one horizontal line. The vertical line (simulating a bar-line) is simulated with a gridline \set Staff.midiInstrument = #"choir aahs" \key c \major @@ -83,7 +88,7 @@ staffTabLine = \new Staff \with { { % disable the following line to see the the noteheads while writing the song \NoNoteHead - \override NoteHead #'no-ledgers = ##t + \override NoteHead.no-ledgers = ##t % The beam between 8th-notes is used to draw the push-line %How to fast write the push-lines: @@ -155,7 +160,7 @@ AccordionTab= { \dynamicUp \consists "Grid_point_engraver" gridInterval = #(ly:make-moment 4 4) % 4/4 - tact. How many beats per bar % The following line has to be adjusted O-F-T-E-N. - \override GridPoint #'Y-extent = #'(-2 . -21) + \override GridPoint.Y-extent = #'(-2 . -21) } \context { \ChoirStaff @@ -179,7 +184,7 @@ staffVoice = \new Staff = astaffvoice { staffAccordionMel = \new Staff \with { \remove "Clef_engraver" } { - #(set-accidental-style 'forget) %Set the accidentals (Vorzeichen) for each note, + \accidentalStyle forget %Set the accidentals (Vorzeichen) for each note, %do not remember them for the rest of the measure. \time 4/4 \set Staff.instrumentName="Accordion" @@ -191,13 +196,13 @@ staffAccordionMel = AltOn = #(define-music-function (parser location mag) (number?) - #{ \override Stem #'length = #$(* 7.0 mag) - \override NoteHead #'font-size = -#$(inexact->exact (* (/ 6.0 (log 2.0)) (log mag))) #}) + #{ \override Stem.length = #(* 7.0 mag) + \override NoteHead.font-size = +#(inexact->exact (* (/ 6.0 (log 2.0)) (log mag))) #}) AltOff = { - \revert Stem #'length - \revert NoteHead #'font-size + \revert Stem.length + \revert NoteHead.font-size } BassRhytm = {s4 s8 | c2 c2 | c2 s8 } @@ -207,8 +212,8 @@ staffBassRhytm = \new Staff = staffbass \with { \remove "Clef_engraver" } { % This is not a RhythmicStaff because it must be possible to append lyrics. - \override Score.GridLine #'extra-offset = #'( 13.0 . 0.0 ) % x.y - \override Staff.StaffSymbol #'line-positions = #'( 0 ) + \override Score.GridLine.extra-offset = #'( 13.0 . 0.0 ) % x.y + \override Staff.StaffSymbol.line-positions = #'( 0 ) % Shows one horizontal line. The vertical line (simulating a bar-line) is simulated by a grid % Search for 'grid' in this page to find all related functions \time 4/4 @@ -240,4 +245,3 @@ staffBassRhytm = >> } %} -