Re: Tablature (Pedal Steel again) - Change lines

2015-01-14 Thread Pierre Perol-Schneider
Hi Anders,

I'm thinking about putting a dedicated snippet to the LSR.
Would you be so kind to scan and send us a short piece (like 8 to 12
measures) with all usual notation (pedals, glissandi, slurs, bends, etc.) ;
I could'nt find any nice pedal steel score on the net.

Thanks in advance,
Pierre
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Tablature (Pedal Steel again) - Change lines

2015-01-13 Thread and...@andis59.se
I have one more problem with creating tablature for Pedal Steel 
Guitar. That is one of conventions. Pedal Steel Guitarist are used to 
have the tab not between the lines not (as the rest of the world) on the 
lines. See psg-tab2.png


The reason if of cause that is easier to read the letter when there 
isn't a line through them.


Is there someway of changing this in Lilypond?

// Anders
--
English isn't my first language.
So any error or strangeness is due to the translation.
Please correct my English so that I may become better.
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Tablature (Pedal Steel again) - Change lines

2015-01-13 Thread Pierre Perol-Schneider
How about :

\version 2.19.11

\header {
  title=Pedal Steel Guitar - E9th
}


PSGE-tuning = \stringTuning 
  c,,,% this tune's only to show one more string
  b, d e fis gis b e' gis' dis' fis'

Notes = \transpose c c' { e a cis'2 e'4}

psgNotes = {
  %%\set TabStaff.minimumFret = #8
  \set TabStaff.restrainOpenStrings = ##t
  %%\override StringNumber #'transparent = ##t
  
e'2\6
 \tweak TabNoteHead.stencil #(lambda (grob)
  (grob-interpret-markup grob #{ \markup\lower #.6 8A #}))
g'2\5
\tweak TabNoteHead.stencil #(lambda (grob)
  (grob-interpret-markup grob #{ \markup\lower #.6 8F #}))
c''2\4
  
  e''4\4
}

\score {
  
\new Staff { \clef G \key a \major \time 3/4 \Notes }
\new TabStaff \with
{ stringTunings = \PSGE-tuning }
{
  \psgNotes
}
  
  \layout {
\context {
  \TabVoice
  \override TabNoteHead.extra-offset = #'(0 . -.5)
  \override TabNoteHead.font-size = #-3
  \override TabNoteHead.whiteout = ##f
}
  }
}

HTH,
Pierre


2015-01-13 19:18 GMT+01:00 and...@andis59.se and...@andis59.se:

 I have one more problem with creating tablature for Pedal Steel Guitar.
 That is one of conventions. Pedal Steel Guitarist are used to have the tab
 not between the lines not (as the rest of the world) on the lines. See
 psg-tab2.png

 The reason if of cause that is easier to read the letter when there isn't
 a line through them.

 Is there someway of changing this in Lilypond?

 // Anders
 --
 English isn't my first language.
 So any error or strangeness is due to the translation.
 Please correct my English so that I may become better.

 ___
 lilypond-user mailing list
 lilypond-user@gnu.org
 https://lists.gnu.org/mailman/listinfo/lilypond-user


___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Tablature (Pedal Steel again) - Change lines

2015-01-13 Thread and...@andis59.se

On 2015-01-13 20:17, Pierre Perol-Schneider wrote:

How about :


Snip (Brilliant code!)

That will work perfectly!

Thank you very much!

// Anders

--
English isn't my first language.
So any error or strangeness is due to the translation.
Please correct my English so that I may become better.

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Tablature (Pedal Steel again) - Change lines

2015-01-13 Thread and...@andis59.se

On 2015-01-13 20:17, Pierre Perol-Schneider wrote:

How about :

\version 2.19.11

\header {
   title=Pedal Steel Guitar - E9th
}


PSGE-tuning = \stringTuning 
   c,,,% this tune's only to show one more string
   b, d e fis gis b e' gis' dis' fis'

Notes = \transpose c c' { e a cis'2 e'4}

psgNotes = {
   %%\set TabStaff.minimumFret = #8
   \set TabStaff.restrainOpenStrings = ##t
   %%\override StringNumber #'transparent = ##t
   
 e'2\6
  \tweak TabNoteHead.stencil #(lambda (grob)
   (grob-interpret-markup grob #{ \markup\lower #.6 8A #}))
 g'2\5
 \tweak TabNoteHead.stencil #(lambda (grob)
   (grob-interpret-markup grob #{ \markup\lower #.6 8F #}))
 c''2\4
   
   e''4\4
}

\score {
   
 \new Staff { \clef G \key a \major \time 3/4 \Notes }
 \new TabStaff \with
 { stringTunings = \PSGE-tuning }
 {
   \psgNotes
 }
   
   \layout {
 \context {
   \TabVoice
   \override TabNoteHead.extra-offset = #'(0 . -.5)
   \override TabNoteHead.font-size = #-3
   \override TabNoteHead.whiteout = ##f
 }
   }
}

Hello Pierre,

Is it possible to make the same effect using the \rightHandFinger method 
you showed before?

That method was the simplest so I want to use it.

I have tried with adding c,,, to the tuning and this to the layout
\layout {
\context {
  \TabVoice
  \consists New_fingering_engraver
  \override StrokeFinger.side-axis = #0
  \override StrokeFinger.X-offset = #1.1
  \override StrokeFinger.Y-offset = #-.1
  \override StrokeFinger.font-size = #-3
  \override StrokeFinger.whiteout = ##f
  \override StrokeFinger.extra-offset = #'(0 . -.5)
}
  }

But only the letters are put between the lines the tab note is on the line.

// Anders
--
English isn't my first language.
So any error or strangeness is due to the translation.
Please correct my English so that I may become better.
\version 2.19.11

%% Pedals defs:
pedA = \rightHandFinger \markup\normal-text\bold\whiteout A
pedB = \rightHandFinger \markup\normal-text\bold\whiteout B
pedC = \rightHandFinger \markup\normal-text\bold\whiteout C
pedD = \rightHandFinger \markup\normal-text\bold\whiteout D
pedE = \rightHandFinger \markup\normal-text\bold\whiteout E
pedF = \rightHandFinger \markup\normal-text\bold\whiteout F


\header {
  title=Pedal Steel Guitar - E9th
}


PSGE-tuning = \stringTuning 
c,,, 
b, d e fis gis b e' gis' dis' fis'

Notes = { e' a' cis''2 e''4}

psgNotes = {
  %%\set TabStaff.minimumFret = #8
  \set TabStaff.restrainOpenStrings = ##t
  %%\override StringNumber #'transparent = ##t
  e'2\6 g'2\5\pedA c''2\4\pedF  e''4\4
}

\score {
  
\new Staff { \clef G \key a \major \time 3/4 \Notes }
\new TabStaff \with
{ stringTunings = \PSGE-tuning }
{
  \psgNotes
}
  
  \layout {
\context {
  \TabVoice
  \consists New_fingering_engraver
  \override StrokeFinger.side-axis = #0
  \override StrokeFinger.X-offset = #1.1
  \override StrokeFinger.Y-offset = #-.1
  \override StrokeFinger.font-size = #-3
  \override StrokeFinger.whiteout = ##f
  \override StrokeFinger.extra-offset = #'(0 . -.5)
}
  }
}___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Tablature (Pedal Steel again) - Change lines

2015-01-13 Thread and...@andis59.se

On 2015-01-13 22:12, Pierre Perol-Schneider wrote:


Sure you can.
BTW, I just took a look on the web in order to see how those tablatures
look like, so I've added some options :


Snip

Wow!!

It's almost perfect!
Since you are using the same notes for the normal Staff and the TabStaff 
the normal Staff will show the wrong notes. This since the pedals 
changes the string tuning
A raises the 5 string 1 tone, 8=g', 8A=a', and F raises string 4 ½ a 
tone, c'' = cis''


If you can figure out someway to make this automagically then... !

Thank you very, very much!

// Anders


--
English isn't my first language.
So any error or strangeness is due to the translation.
Please correct my English so that I may become better.

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Tablature (Pedal Steel again) - Change lines

2015-01-13 Thread Pierre Perol-Schneider
Hi Anders,

2015-01-13 21:00 GMT+01:00 and...@andis59.se and...@andis59.se:


 Is it possible to make the same effect using the \rightHandFinger method
 you showed before?
 That method was the simplest so I want to use it.


Sure you can.
BTW, I just took a look on the web in order to see how those tablatures
look like, so I've added some options :

\version 2.19.11

pedF = \rightHandFinger \markup\normal-text\bold\fontsize #0 F
pedA = \rightHandFinger \markup\normal-text\bold\fontsize #0 A

\header {
  title=Pedal Steel Guitar - E9th
}

PSGE-tuning = \stringTuning 
  c,,,% this tune's only to show one more string
  b, d e fis gis b e' gis' dis' fis'


psgNotes = {
  %%\set TabStaff.minimumFret = #8
  \set TabStaff.restrainOpenStrings = ##t
  e'\6\pedA g'\5\pedF c''\42 e''4\4
  \repeat unfold 4 s2.
  \break
  \repeat unfold 5 s2.
  \bar |.
}

\score {
  \new StaffGroup 
\new Staff { \clef G \key a \major \time 3/4 \psgNotes }
\new TabStaff \psgNotes
  
  \layout {
\context {
  \Score
  \remove System_start_delimiter_engraver
}
\context {
  \StaffGroup
  \override SystemStartBracket.style = #'none
}
\context {
  \Staff
  \omit StringNumber
  \omit StrokeFinger
}
\context {
  \TabStaff
  stringTunings = \PSGE-tuning
  \override  Clef.stencil = #(lambda (grob)
 (grob-interpret-markup grob
   #{
 \markup
 \override #'(baseline-skip . 1.5)
 \concat {
   \hspace #-.8
   \with-dimensions #'(0 . 0) #'(0 . 0)
   \lower #7.5 \draw-line #'(0 . 15)
   \hspace #1
   \raise #6.2 \center-column \fontsize #-3  { 1 2 3 4 5 6 7 8
9 10 }
   \hspace #1
   \with-dimensions #'(0 . 0) #'(0 . 0)
   \lower #7.5 \draw-line #'(0 . 15)
 }
   #}))
}
\context {
  \TabVoice
  \override TabNoteHead.extra-offset = #'(0 . -.5)
  \override TabNoteHead.font-size = #-3
  \override TabNoteHead.whiteout = ##f
  \consists New_fingering_engraver
  \override StrokeFinger.side-axis = #0
  \override StrokeFinger.X-offset = #1.1
  \override StrokeFinger.Y-offset = #.7
  \omit StringNumber
  \omit Fingering
}
  }
}

See enclosed png.
Cheers,
Pierre
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Tablature (Pedal Steel again) - Change lines

2015-01-13 Thread and...@andis59.se

On 2015-01-13 22:50, Pierre Perol-Schneider wrote:


Hum, not easy to automate it but you can use tags :
http://lilypond.org/doc/v2.19/Documentation/notation/different-editions-from-one-source.html#using-tags


So much to learn, so little time...

Lilypond is like the Russian dolls, you never come to the end...

Thank you very much for all you help!

// Anders

--
English isn't my first language.
So any error or strangeness is due to the translation.
Please correct my English so that I may become better.

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Tablature (Pedal Steel again) - Change lines

2015-01-13 Thread Pierre Perol-Schneider
2015-01-13 22:23 GMT+01:00 and...@andis59.se and...@andis59.se:


 Since you are using the same notes for the normal Staff and the TabStaff
 the normal Staff will show the wrong notes. This since the pedals changes
 the string tuning
 A raises the 5 string 1 tone, 8=g', 8A=a', and F raises string 4 ½ a tone,
 c'' = cis''


But of course! Sorry for that.


 If you can figure out someway to make this automagically then... !


Hum, not easy to automate it but you can use tags :
http://lilypond.org/doc/v2.19/Documentation/notation/different-editions-from-one-source.html#using-tags

So here you go:

\version 2.19.11

pedF = \rightHandFinger \markup\normal-text\bold\fontsize #0 F
pedA = \rightHandFinger \markup\normal-text\bold\fontsize #0 A

\header {
  title=Pedal Steel Guitar - E9th
}

PSGE-tuning = \stringTuning 
  c,,,% this tune's only to show one more string
  b, d e fis gis b e' gis' dis' fis'


myNotes = \transpose c c' {
  %%\set TabStaff.minimumFret = #8
  \set TabStaff.restrainOpenStrings = ##t
  \tag myStaff { e a cis'2 }
  \tag myTab { e\6 g\5\pedA c'\4\pedF 2 }
  e'4\4
  \repeat unfold 4 s2.
  \break
  \repeat unfold 5 s2.
  \bar |.
}

\score {
  \new StaffGroup 
\new Staff
\keepWithTag myStaff
  { \clef G \key a \major \time 3/4 \myNotes }
\new TabStaff
  \keepWithTag myTab
  \myNotes
  
  \layout {
\context {
  \Score
  \remove System_start_delimiter_engraver
}
\context {
  \StaffGroup
  \override SystemStartBracket.style = #'none
}
\context {
  \Staff
  \omit StringNumber
}
\context {
  \TabStaff
  stringTunings = \PSGE-tuning
  \override  Clef.stencil = #(lambda (grob)
 (grob-interpret-markup grob
   #{
 \markup
 \override #'(baseline-skip . 1.5)
 \concat {
   \hspace #-.8
   \with-dimensions #'(0 . 0) #'(0 . 0)
   \lower #7.5 \draw-line #'(0 . 15)
   \hspace #1
   \raise #6.2 \center-column \fontsize #-3  { 1 2 3 4 5 6 7 8
9 10 }
   \hspace #1
   \with-dimensions #'(0 . 0) #'(0 . 0)
   \lower #7.5 \draw-line #'(0 . 15)
 }
   #}))
}
\context {
  \TabVoice
  \override TabNoteHead.extra-offset = #'(0 . -.5)
  \override TabNoteHead.font-size = #-3
  \override TabNoteHead.whiteout = ##f
  \consists New_fingering_engraver
  \override StrokeFinger.side-axis = #0
  \override StrokeFinger.X-offset = #1.1
  \override StrokeFinger.Y-offset = #-.75
  \omit StringNumber
  \omit Fingering
}
  }
}

Cheers,
Pierre

PS. beware that I missed the StrokeFinger.Y-offset setting in the previous
code.
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user