De : "address@hidden" <address@hidden>
À :
address@hidden
Envoyé le : Mercredi 22 août 2012 6h41
Objet : lilypond-user Digest, Vol 117, Issue 79
Send lilypond-user mailing list submissions to
address@hiddenTo subscribe or unsubscribe via the World Wide Web, visit
https://lists.gnu.org/mailman/listinfo/lilypond-useror, via email, send a message with subject or body 'help' to
address@hiddenYou can reach the person managing the list at
address@hiddenWhen replying, please edit your Subject line so it is more specific
than "Re: Contents of lilypond-user digest..."
Today's Topics:
1. Re:guide finger (pabuhr)
2. Programming errors if closing beaming brace omitted (Nick Payne)
3. Re:guide finger (David Nalesnik)
4. Unwanted notation appearing on TabStaff after glissando
(Ben Eichler)
5. Re:Unwanted notation appearing on TabStaff after glissando
(Nathan)
6. subito dynamic after hairpin (Curt Siffert)
----------------------------------------------------------------------
Message: 1
Date: Tue, 21 Aug 2012 14:58:48 -0700
From: pabuhr <
address@hidden>
To: David Nalesnik <
address@hidden>
Cc:
address@hiddenSubject: Re: guide finger
Message-ID: <address@hidden>
I suppose you're thinking of ly:stencil-rotate.
Brilliant!
Now let me see if I can reward your patience by showing you I have learned
something.
The rotation needs to be along the right centre (center) so the character
appears to rotate in the middle of the finger number, which I figured out.
Also, I put in some documentation. And I generalize one step further by
allowing the ornamentation character to be passed as an argument. However, I
don't know how to write "gsc" (see below) to pass in a character or unicode
to
"gx". So I still need help.
Also, does scheme have optional positional parameters and/or named parameters
to possibly allow more generalization, such as the padding size or putting the
ornamentation before or after the finger symbol? (Yea, I'm probably getting
carried away here. ;-)
==============================================================================
\version "2.14.2"
#(define (gx slope character fingering)
;; Purpose
;; add ornamentation character before fingering symbol
;; Parameters
;; slope : angle of rotation around right centre
;; character : ornamentation character before fingering
;; fingering : fingering designation for note
;; Examples
;; (gx 0 #x2013 fingering)
;; unicode #x2011 <-> #x2015 are different length "-" punctuation
(let ((music (make-music 'FingeringEvent))
(finger (ly:music-property fingering 'digit))
(guide-char character))
(set! (ly:music-property music 'tweaks)
(acons 'stencil
(lambda (grob)
(ly:stencil-combine-at-edge
(ly:stencil-rotate (grob-interpret-markup grob (markup #:char guide-char))
slope 1 0) ;; rotate "slope" around right centre
X 1 ;; combine stencils along X-axis on right
(grob-interpret-markup grob (number->string finger))
0.2)) ;; add padding to move guide slightly left from finger number
(ly:music-property music 'tweaks)))
music))
% guide-neutral
gn = #(define-music-function (parser location fingering) (ly:music?)
(gx 0 #x2013 fingering))
% guide-down
gd = #(define-music-function (parser location fingering) (ly:music?)
(gx 30 #x2013 fingering))
% guide-up
gu = #(define-music-function (parser location fingering) (ly:music?)
(gx -30 #x2013 fingering))
% guide slope
gs = #(define-music-function (parser location slope fingering) (number? ly:music?)
(gx slope #x2013 fingering))
% guide slope character
gsc = #(define-music-function (parser location slope character fingering) (number? char? ly:music?)
(gx slope
character fingering))
\relative c' {
\override Fingering #'font-size = #-2
\override Fingering #'color = #red
\set fingeringOrientations = #'(left)
<c-\gn-1>4
c4^\gn^2
c4-\gn-3
c4_\gn_4
\set fingeringOrientations = #'(right)
<c-\gn-3>4
r4
<c-\gu-1>4
r4
c4^\gu^2
c4-\gd-3
c4_\gd_4
r4
<c-\gs #-15 -1>4
r4
c4^\gs #15 ^2
c4-\gs #45 -3
c4_\gs #-45 _4
% these don't work
% r4
% <c-\gsc #-15 ##x2011 -1>4
% r4
% c4^\gsc #15 ##x2012 ^2
% c4-\gsc #45 ##x2013 -3
% c4_\gsc #-4 ##x2014 _4
% r4
% <c-\gsc #-15 '+' -1>4
% r4
% c4^\gsc #15 '+' ^2
% c4-\gsc #45 '+' -3
% c4_\gsc #-4 '+'
_4
}
------------------------------
Message: 2
Date: Wed, 22 Aug 2012 08:59:28 +1000
From: Nick Payne <
address@hidden>
To: "
address@hidden" <
address@hidden>
Subject: Programming errors if closing beaming brace omitted
Message-ID: <
address@hidden>
Content-Type: text/plain; charset="iso-8859-1"; Format="flowed"
Not sure if this indicates an error in Lilypond, but if I forget the
terminating brace when using manual beaming, then the log contains
several "programming error" lines
and the output contains noteheads
without stems. Here I've commented out the closing brace:
\version "2.15.43"
\relative c'' {
a8[ \grace { g16[ a] } g8 g c%]
}
and the log contains:
===========================================
Interpreting music...
/home/nick/lilypond/examples/test.ly:4:10: warning: unterminated beam
a8
[ \grace { g16[ a] } g8 g c%]
Preprocessing graphical objects...
programming error: Grob direction requested while calculation in progress.
continuing, cross fingers
programming error: Grob direction requested while calculation in progress.
continuing, cross fingers
programming error: Grob direction requested while calculation in progress.
continuing, cross fingers
programming error: Grob direction requested while calculation in progress.
continuing, cross fingers
Finding the ideal number of
pages...
Fitting music on 1 page...
Drawing systems...
programming error: stem::length called but will not be used for beamed stem.
continuing, cross fingers
programming error: stem::length called but will not be used for beamed stem.
continuing, cross fingers
programming error: stem::length called but will not be used for beamed stem.
continuing, cross fingers
programming error: stem::length called but will not be used for beamed stem.
continuing, cross fingers
Layout output to `test.ps'...
Converting to `./test.pdf'...
Success: compilation successfully completed
===========================================
-------------- next part --------------
A non-text attachment was scrubbed...
Name: test.png
Type: image/png
Size: 1444 bytes
Desc: not available
URL: <
http://lists.gnu.org/archive/html/lilypond-user/attachments/20120822/5a8841e4/attachment.png>
------------------------------
Message: 3
Date: Tue, 21 Aug 2012 20:45:08 -0500
From: David Nalesnik <
address@hidden>
To: pabuhr <
address@hidden>
Cc:
address@hiddenSubject: Re: guide finger
Message-ID:
<CANn-nXnP1UmqFhz-xtrQs0c+
address@hidden>
Content-Type: text/plain; charset=UTF-8
Hi pabuhr,
On Tue, Aug 21, 2012 at 4:58 PM, pabuhr <
address@hidden> wrote:
> I suppose you're thinking of ly:stencil-rotate.
>
> Brilliant!
>
> Now let me see if I can reward your patience by showing you I have learned
> something.
:)
>
> The rotation needs to be along the right centre (center) so the character
> appears to rotate in the middle of the finger number, which I figured out.
> Also, I put in some documentation. And I generalize one step further by
> allowing the ornamentation character to be passed as an argument. However, I
> don't know how to write "gsc" (see below) to pass in a character or unicode to
> "gx". So I still need help.
That was a puzzler :) Turns out, the markup command \char takes an
integer (seems obvious in retrospect...). You can see its definition
in the file
`define-markup-commands.scm'. So you just need to change
the type predicate in gsc:
% guide slope character
gsc = #(define-music-function (parser location slope character
fingering) (number? integer? ly:music?)
(gx slope character fingering))
In order to pass the '+' character with \gsc you have to convert it to
an integer:
c4^\gsc #15 #(char->integer #\+) ^2
>
> Also, does scheme have optional positional parameters and/or named parameters
> to possibly allow more generalization, such as the padding size or putting the
> ornamentation before or after the finger symbol? (Yea, I'm probably getting
> carried away here. ;-)
Well, you could easily pass the direction in (and whatever else) by
adding another argument. You could use conditionals within the
function--do this if the direction is -1, etc. (You might also be
able
to use the direction as a multiplier.) If you decide exactly
what extras you want with the function, I'll be glad to help!
Best,
David
------------------------------
Message: 4
Date: Wed, 22 Aug 2012 14:26:49 +1200
From: Ben Eichler <
address@hidden>
To:
address@hiddenSubject: Unwanted notation appearing on TabStaff after glissando
Message-ID:
<CAPniCf0hfWq_cgz2J=Y=-0tTizY5s1mUaP89EE+aEXa=
address@hidden>
Content-Type: text/plain; charset="iso-8859-1"
Hi everyone,
I have a song I'm tabbing out using a normal staff and a TabStaff which has
a glissando appearing in it. The glissando
looks great, but on the TabStaff
every note after it has some sort of weird dot or line over the top of it.
This is what my code for the glissando currently looks like:
\hideNotes \grace { dis32\5\glissando } \unHideNotes fis16\5 ...
My StaffGroup is very simple:
\new StaffGroup <<
\new Staff {
\clef "G_8"
\symbols
}
\new TabStaff {
\clef "moderntab"
\symbols
}
>>
I couldn't work out the name of the dots and lines, so I didn't know what
to search for. Can somebody help me fix this?
-Ben
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <
http://lists.gnu.org/archive/html/lilypond-user/attachments/20120822/772fe679/attachment.html>
------------------------------
Message: 5
Date: Tue, 21
Aug 2012 21:28:14 -0700
From: Nathan <
address@hidden>
To: Ben Eichler <
address@hidden>
Cc:
address@hiddenSubject: Re: Unwanted notation appearing on TabStaff after glissando
Message-ID:
<CAKrxt4wjNQZaZUWYttdHiit0k5iCjHpyfUa=
address@hidden>
Content-Type: text/plain; charset=UTF-8
On Tue, Aug 21, 2012 at 7:26 PM, Ben Eichler <
address@hidden> wrote:
> Hi everyone,
>
>
> I have a song I'm tabbing
out using a normal staff and a TabStaff which has
> a glissando appearing in it. The glissando looks great, but on the TabStaff
> every note after it has some sort of weird dot or line over the top of it.
> This is what my code for the glissando currently looks like:
>
> \hideNotes \grace { dis32\5\glissando } \unHideNotes fis16\5 ...
>
> My StaffGroup is very simple:
>
> \new StaffGroup <<
> \new Staff {
> \clef "G_8"
> \symbols
> }
> \new TabStaff {
> \clef "moderntab"
> \symbols
> }
>>>
>
> I couldn't work out the name of the dots and lines, so I didn't know what to
> search for. Can somebody help me fix this?
>
>
> -Ben
>
> _______________________________________________
> lilypond-user mailing list
>
address@hidden>
https://lists.gnu.org/mailman/listinfo/lilypond-user>
I have worked very little with tablature, but it looks like \hideNotes
and \unHideNotes are causing the problem. The weirdness goes away if I
remove them. Fixing the problem is just a matter of removing these
commands from the tablature staff without removing them from the
normal one.
Tags are probably the most efficient way to do this.
%%%
symbols = {
% ...
\tag #'normal \hideNotes \grace { dis32\5\glissando } \tag #'normal
\unHideNotes fis16\5
% ...
}
\new StaffGroup <<
\keepWithTag #'normal \new Staff {
\clef "G_8"
\symbols
}
\removeWithTag
#'normal \new TabStaff {
\clef "moderntab"
\symbols
}
>>
%%%
Hope this helps,
Nathan
------------------------------
Message: 6
Date: Tue, 21 Aug 2012 21:41:15 -0700
From: Curt Siffert <
address@hidden>
To:
address@hiddenSubject: subito dynamic after hairpin
Message-ID: <
address@hidden>
Content-Type: text/plain; charset="us-ascii"
Hi, I am trying to make a decrescendo end in a subito dynamic for the next note. Not sure how to make it
align. I found lots of examples online on how to shift over subito mf, but in my case they make the decrescendo too small. I'm not actually sure I'm going for the right solution here because I'm not 100% sure what would be the best way to notate this. Any suggestions? Three tries appended below.
Thanks :)
Curt
\relative c'' {
\time 3/4
d2.\mf\> |
a2-\markup{ \italic \tiny subito } d8\!\mf( e) |
R2.
d2.\mf\> |
a2 d8\!-\markup{ \italic \tiny subito } \mf( e) |
R2.
\textLengthOn
d2.\mf\> |
a2 d8\!-\markup{ \italic \tiny subito \dynamic mf}( e) |
}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <
http://lists.gnu.org/archive/html/lilypond-user/attachments/20120821/0efa0dd8/attachment.html>
------------------------------
_______________________________________________
lilypond-user mailing list
address@hiddenhttps://lists.gnu.org/mailman/listinfo/lilypond-userEnd of lilypond-user Digest, Vol 117, Issue 79
**********************************************