• Willkommen im Forum „Archiviertes Lilypond Forum (2017)“.
 

Dies ist das Archiv des alten Forums (bis März 2017). Das aktuelle Forum ist unter lilypondforum.de zu finden.
This is the archive of the old forum (until March 2017). You can find the current forum at lilypondforum.de.

Hauptmenü

Abkürzungen selbst definieren

Begonnen von Sinthoras, Freitag, 4. März 2016, 15:15

Vorheriges Thema - Nächstes Thema

Sinthoras

Hallo zusammen,

in den Tutorials ist mir dieses Beispiel für selbst definierte Schlagzeugnoten aufgefallen:

#(define mydrums '((hiwoodblock default #t  3)
                   (lowoodblock default #t -2)))

woodstaff = {
  % This defines a staff with only two lines.
  % It also defines the positions of the two lines.
  \override Staff.StaffSymbol.line-positions = #'(-2 3)

  % This is necessary; if not entered, the barline would be too short!
  \override Staff.BarLine.bar-extent = #'(-1.5 . 1.5)
}

\new DrumStaff {
  \set DrumStaff.drumStyleTable = #(alist->hash-table mydrums)

  % with this you load your new drum style table
  \woodstaff

  \drummode {
    \time 2/4
    wbl8 wbl16 wbl wbh8-> wbl |
    wbl8 wbl16 wbh-> ~ wbh wbl16 r8 |
  }


Meine Frage ist, ob ich Abkürzungen wie wbl und wbh selbst definieren kann, oder ob es nur einige vordefinierte gibt.

fugenkomponist

In der Datei ly/drumpitch-init.ly ist eine Liste namens drumPitchNames definiert, die alle verfügbaren Abkürzungen enthält. Die könntest du ergänzen:

drumPitchNames =
#(cons '(uiae . hiwoodblock) drumPitchNames)

uiae ist dann ein weiterer Name für hiwoodblock (wbh geht weiterhin).

Sinthoras