lilypond-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: notation TAB matching


From: Grammostola Rosea
Subject: Re: notation TAB matching
Date: Tue, 02 Sep 2008 11:20:20 +0200
User-agent: Mozilla-Thunderbird 2.0.0.16 (X11/20080724)

Grammostola Rosea wrote:
Hi,

I want to score an song with notation and tablature, but how do I get the matching between notation and tab right?

In this score the string is set on fret 12, but it has to be a 0...

global = {
 \key a \major
 \tempo 4=176
 \time 4/4
}

chordNames = \chordmode {
 \global

}

classicalGuitar = \relative c' {
 \global
 \transposition c
\partial 8
 \mark \markup {"Moderately fast bossa nova feel"} a\5
}

\score {
 \new StaffGroup <<
   \new ChordNames \chordNames
       \new Staff \with {
     midiInstrument = "acoustic guitar (nylon)"
   } \classicalGuitar
   \new TabStaff \with {
     midiInstrument = "acoustic guitar (nylon)"
   } \classicalGuitar
 >>
 \layout { }
 \midi { }
}


I have used tuxguitar for making a start with notation and tablature with Lilyond:

\version "2.11.53"



TrackAMusic = #(define-music-function (parser location inTab) (boolean?)
#{
  \tempo 4=120
  \clef #(if $inTab "tab" "treble_8")
  \key a \major
  \time 4/4
  \partial 8
  a,8~<a, cis'\2 a\3 >4.
<<{(a,4 a,4.)}{ <gis\3 b\2>8 <a,)\5 gis\3 b\2>8 e'4\1 \pageBreak
#})
TrackALyrics = \lyricmode {
  \set ignoreMelismata = ##t
\unset ignoreMelismata
}
TrackAStaff = \new Staff {
  \TrackAMusic ##f
}
TrackATabStaff = \new TabStaff {
  \set TabStaff.stringTunings = #'(4 -1 -5 -10 -15 -20 )
  \removeWithTag #'chords
  \removeWithTag #'texts
  \TrackAMusic ##t
}
TrackAStaffGroup = \new StaffGroup <<
  \TrackAStaff
  \TrackATabStaff
>>
\score {
  \TrackAStaffGroup
  \header {
     title = "Signe"
     composer = "Words and Music by Eric Clapton"
}
  \layout {
  \context { \Score
     \override MetronomeMark #'padding = #'5
  }
  \context { \Staff
     \override TimeSignature #'style = #'numbered
     \override StringNumber #'transparent = ##t
  }
  \context { \TabStaff
     \override TimeSignature #'style = #'numbered
     \override Stem #'transparent = ##t
     \override Beam #'transparent = ##t
  }
  \context { \StaffGroup
     \consists "Instrument_name_engraver"
  }
}
}




reply via email to

[Prev in Thread] Current Thread [Next in Thread]