Re: slides-in-tablature.ly snippets: string numbers of hided notes are visible

2012-09-01 Thread Marc Hohl

Am 01.09.2012 22:22, schrieb David Kastrup:

pls  writes:


There must have been a change in default with regards to the
visibility of string numbers between 2.15.20 and the current
version. In 2.15.20 it was still possible to add string numbers to
notes (e.g. c'4\4) without them showing up in the score.

But they showed up when writing , so this was more a convenient
bug than anything else.


This was very handy in order to automatically specify the appropriate
fret on the right string in tablature.  One could decide whether to
output individual string numbers via 4 or not to engrave them
via c'4\4.

And what would you do when _wanting_ a chord with more than a single
note but no string numbers?

IIRC, one could have been written
< c' e' g' >\3\2\1
The fret numbers were placed accordingly in the tab staff, but no
string numbers showed up in normal staves ...

This does not necessarily mean that this is desired behavior ;-)



Now it seems that this behavior can only be achieved by constantly
overriding the string number stencil...

Not that bad:

n=#(define-event-function (parser location e) (ly:event?)
   #{ \tweak #'stencil ##f $e #})

{ c'\4 c'\n\4 }


Hey, that's clever!

Regards,

Marc

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


Re: slides-in-tablature.ly snippets: string numbers of hided notes are visible

2012-09-01 Thread pls

Am 01.09.2012 um 22:22 schrieb David Kastrup:

> pls  writes:
> 
>> There must have been a change in default with regards to the
>> visibility of string numbers between 2.15.20 and the current
>> version. In 2.15.20 it was still possible to add string numbers to
>> notes (e.g. c'4\4) without them showing up in the score.
> 
> But they showed up when writing , so this was more a convenient
> bug than anything else.
> 
>> This was very handy in order to automatically specify the appropriate
>> fret on the right string in tablature.  One could decide whether to
>> output individual string numbers via 4 or not to engrave them
>> via c'4\4.
> 
> And what would you do when _wanting_ a chord with more than a single
> note but no string numbers?
I used to use \5\4\3. Quite a convenient bug, indeed! ;)
> 
>> Now it seems that this behavior can only be achieved by constantly
>> overriding the string number stencil...
> 
> Not that bad:
> 
> n=#(define-event-function (parser location e) (ly:event?)
>  #{ \tweak #'stencil ##f $e #})
> 
> { c'\4 c'\n\4 }
> 
> -- 
> David Kastrup
> 
> 
> ___
> lilypond-devel mailing list
> lilypond-devel@gnu.org
> https://lists.gnu.org/mailman/listinfo/lilypond-devel


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


Re: slides-in-tablature.ly snippets: string numbers of hided notes are visible

2012-09-01 Thread Marc Hohl

Am 01.09.2012 22:02, schrieb pls:

There must have been a change in default with regards to the visibility of string 
numbers between 2.15.20 and the current version. In 2.15.20 it was still possible to 
add string numbers to notes (e.g. c'4\4) without them showing up in the score. This 
was very handy in order to automatically specify the appropriate fret on the right 
string in tablature.  One could decide whether to output individual string numbers 
via 4 or not to engrave them via c'4\4. Now it seems that this behavior 
can only be achieved by constantly overriding the string number stencil...

I found this:

http://lists.gnu.org/archive/html/lilypond-devel/2012-04/msg00373.html

So it must have been in 2.15.38, due to

SHA1 ID: 84cad110c3bbaeca8e5144dba7f8756b89100396

Let rhythmic-engraver make its articulation-or-event decision based on 
current listeners


This removes the dependency of the rhythmic engraver on a static list
of unlistened event classes and thus is part of work on issue 2449.

As one effect, string numbers on isolated notes in Voice contexts are
now typeset by default since the string numbers have no listener in
Voice contexts even though they would have one in TabVoice.

Regards,

Marc



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


Re: slides-in-tablature.ly snippets: string numbers of hided notes are visible

2012-09-01 Thread David Kastrup
pls  writes:

> There must have been a change in default with regards to the
> visibility of string numbers between 2.15.20 and the current
> version. In 2.15.20 it was still possible to add string numbers to
> notes (e.g. c'4\4) without them showing up in the score.

But they showed up when writing , so this was more a convenient
bug than anything else.

> This was very handy in order to automatically specify the appropriate
> fret on the right string in tablature.  One could decide whether to
> output individual string numbers via 4 or not to engrave them
> via c'4\4.

And what would you do when _wanting_ a chord with more than a single
note but no string numbers?

> Now it seems that this behavior can only be achieved by constantly
> overriding the string number stencil...

Not that bad:

n=#(define-event-function (parser location e) (ly:event?)
  #{ \tweak #'stencil ##f $e #})

{ c'\4 c'\n\4 }

-- 
David Kastrup


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


Re: slides-in-tablature.ly snippets: string numbers of hided notes are visible

2012-09-01 Thread pls
There must have been a change in default with regards to the visibility of 
string numbers between 2.15.20 and the current version. In 2.15.20 it was still 
possible to add string numbers to notes (e.g. c'4\4) without them showing up in 
the score. This was very handy in order to automatically specify the 
appropriate fret on the right string in tablature.  One could decide whether to 
output individual string numbers via 4 or not to engrave them via c'4\4. 
Now it seems that this behavior can only be achieved by constantly overriding 
the string number stencil...
Am 01.09.2012 um 17:40 schrieb Federico Bruni:

> I've just realized that in this snippet the hidden notes, used to make the 
> grace slides, have a string number which is printed (and it shouldn't).
> I think that we should just remove /3 from the notes in the grace blocks (see 
> file attached).
> 
> All the examples in the doc using Staff + TabStaff show the string numbers. I 
> don't know if it's desirable, but removing all the string numbers in this 
> example putting this in a \layout block wouldn't be consistent with the rest 
> of the doc:
> 
> \context {
>  \Staff
>  \override StringNumber #'stencil = ##f
> }
> 
> Can a LSR editor fix it?
> Thanks
> -- 
> Federico
> ___
> lilypond-devel mailing list
> lilypond-devel@gnu.org
> https://lists.gnu.org/mailman/listinfo/lilypond-devel


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


slides-in-tablature.ly snippets: string numbers of hided notes are visible

2012-09-01 Thread Federico Bruni
I've just realized that in this snippet the hidden notes, used to make 
the grace slides, have a string number which is printed (and it shouldn't).
I think that we should just remove /3 from the notes in the grace blocks 
(see file attached).


All the examples in the doc using Staff + TabStaff show the string 
numbers. I don't know if it's desirable, but removing all the string 
numbers in this example putting this in a \layout block wouldn't be 
consistent with the rest of the doc:


\context {
  \Staff
  \override StringNumber #'stencil = ##f
}

Can a LSR editor fix it?
Thanks
--
Federico
%% DO NOT EDIT this file manually; it is automatically
%% generated from LSR http://lsr.dsi.unimi.it
%% Make any changes in LSR itself, or in Documentation/snippets/new/ ,
%% and then run scripts/auxiliar/makelsr.py
%%
%% This file is in the public domain.
\version "2.16.0"

\header {
  lsrtags = "fretted-strings"

  texidoc = "
Slides can be typeset in both @code{Staff} and @code{TabStaff}
contexts:

"
  doctitle = "Slides in tablature"
} % begin verbatim

slides = {
  c'8\3(\glissando d'8\3)
  c'8\3\glissando d'8\3
  \hideNotes
  \grace { g16\glissando }
  \unHideNotes
  c'4\3
  \afterGrace d'4\3\glissando {
  \stemDown \hideNotes
  g16 }
  \unHideNotes
}

\score {
  <<
\new Staff { \clef "treble_8" \slides }
\new TabStaff { \slides }
  >>
  \layout {
\context {
  \Score
  \override Glissando #'minimum-length = #4
  \override Glissando #'springs-and-rods =
  #ly:spanner::set-spacing-rods
  \override Glissando #'thickness = #2
}
  }
}
___
lilypond-devel mailing list
lilypond-devel@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-devel