Custom note heads

2017-12-16 Thread Helge Kruse
Hello,

I've been asked to write some scores with custom note heads. These heads
are designed for beginners. I know that the Emmentaler font contains
some special heads but I don't know how to add new shapes.

I found this question at Stackoverflow
https://stackoverflow.com/questions/47341754/lilypond-custom-global-note-heads.
But this doesn't work, even if I add a file g.eps I get the error

Preprocessing graphical objects...C:/Program Files
(x86)/LilyPond-2.19-65/usr/share/lilypond/current/scm/stencil.scm:987:26:
In procedure list-ref in expression (list-ref bbox 2):
C:/Program Files
(x86)/LilyPond-2.19-65/usr/share/lilypond/current/scm/stencil.scm:987:26:
Wrong type argument in position 1: #f

How can I define my own custom note heads? I don't prefer EPS in this
field, can be any graphic file other format.

Or these other way round: At
http://lilypond.org/doc/v2.18/Documentation/notation/note-heads is a
Ez_numbers_engraver. Can this be modified to do the work?

Best regards
Helge

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


Re: Custom note heads

2017-12-16 Thread Andrew Bernard
Hi Helge,

What sort of shapes do you want? Can you supply an illustration? [A MGE -
minimal graphic example!]

You can use graphic files, or you can write Scheme to generate custom
postscript paths. The latter can be very complex, but is of course very
powerful. or you can use path construction commands for the stencil of the
notehead.

There are quite a few examples on LSR of how to make different shape
noteheads. You may find id 891 to be the simplest, avoiding postscript
(which has some disadvantages in relation to SVG output if you need that).

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


Re: Custom note heads

2017-12-17 Thread Thomas Morley
2017-12-17 9:42 GMT+01:00 Helge Kruse :
> Hi Andrew,
>
> Am 17.12.2017 um 00:55 schrieb Andrew Bernard:
>> Hi Helge,
>>
>> What sort of shapes do you want? Can you supply an illustration? [A MGE -
>> minimal graphic example!]
> I am not sure that this is as minimal as possible. But the intended
> heads and an example is attached at this mail.
>
>> You can use graphic files, or you can write Scheme to generate custom
>> postscript paths. The latter can be very complex, but is of course very
>> powerful. or you can use path construction commands for the stencil of the
>> notehead.
> Since the actual graphics look like drawings it should be possible to
> use coded drawing commands. This would have the benefit of better
> scalability.
>
>> There are quite a few examples on LSR of how to make different shape
>> noteheads. You may find id 891 to be the simplest, avoiding postscript
>> (which has some disadvantages in relation to SVG output if you need that).
> Yea, there are some examples. Will start experimenting with it.
>
> Best regards
> Helge


Some time ago Torsten (original author of the lily-jazz-font) created
"circus"-note-heads.
https://archiv.lilypondforum.de/index.php/topic,1432.msg7908.html#msg7908

Looks pretty much like what you want.

Cheers,
  Harm

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


Re: Custom note heads

2017-12-17 Thread Helge Kruse
Am 17.12.2017 um 11:06 schrieb Thomas Morley:
> Some time ago Torsten (original author of the lily-jazz-font) created
> "circus"-note-heads.
> https://archiv.lilypondforum.de/index.php/topic,1432.msg7908.html#msg7908
> 
That is exactly the approach that is currently used for that boy who's
learning to play keyboard. I think I can use the font and the approach
shown in the German Lilypond forum.

> Looks pretty much like what you want.
What I wish is that the boy will get scores looking like standard ASAP.
But currently he wants a Christmas song and can't read standard notes yet.

Thanks to both of you. Andrew's hint to the LSR was great and I will
experiment to learn a bit more about postscript and scheme.

Best regards
Helge

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


Re: Custom note heads

2017-12-17 Thread Gianmaria Lari
Does exist any english resource about the circus-note-heads? A minimum code
example?

Thank you, g.

On 17 December 2017 at 11:06, Thomas Morley 
wrote:

> 2017-12-17 9:42 GMT+01:00 Helge Kruse :
> > Hi Andrew,
> >
> > Am 17.12.2017 um 00:55 schrieb Andrew Bernard:
> >> Hi Helge,
> >>
> >> What sort of shapes do you want? Can you supply an illustration? [A MGE
> -
> >> minimal graphic example!]
> > I am not sure that this is as minimal as possible. But the intended
> > heads and an example is attached at this mail.
> >
> >> You can use graphic files, or you can write Scheme to generate custom
> >> postscript paths. The latter can be very complex, but is of course very
> >> powerful. or you can use path construction commands for the stencil of
> the
> >> notehead.
> > Since the actual graphics look like drawings it should be possible to
> > use coded drawing commands. This would have the benefit of better
> > scalability.
> >
> >> There are quite a few examples on LSR of how to make different shape
> >> noteheads. You may find id 891 to be the simplest, avoiding postscript
> >> (which has some disadvantages in relation to SVG output if you need
> that).
> > Yea, there are some examples. Will start experimenting with it.
> >
> > Best regards
> > Helge
>
>
> Some time ago Torsten (original author of the lily-jazz-font) created
> "circus"-note-heads.
> https://archiv.lilypondforum.de/index.php/topic,1432.msg7908.html#msg7908
>
> Looks pretty much like what you want.
>
> Cheers,
>   Harm
>
> ___
> 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: Custom note heads

2017-12-18 Thread Thomas Morley
2017-12-17 23:51 GMT+01:00 Gianmaria Lari :
> Does exist any english resource about the circus-note-heads? A minimum code
> example?
>
> Thank you, g.
>

Attached to this post
>> https://archiv.lilypondforum.de/index.php/topic,1432.msg7908.html#msg7908
you'll find the font.
A code-example is attached as well.

It's 2.16-code, convert-ly may be useful.
I just tested it successfully with 2.19.65, after changing:
markup-system-spacing #'basic-distance
->
markup-system-spacing.basic-distance

and

"a4" 'landscape
->
"a4 landscape"

Cheers,
  Harm

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


Re: Custom note heads

2017-12-18 Thread Gianmaria Lari
On 18 December 2017 at 10:49, Thomas Morley 
wrote:

> 2017-12-17 23:51 GMT+01:00 Gianmaria Lari :
> > Does exist any english resource about the circus-note-heads? A minimum
> code
> > example?
> >
> > Thank you, g.
> >
>
> Attached to this post
> >> https://archiv.lilypondforum.de/index.php/topic,1432.
> msg7908.html#msg7908
> [...]


Thank you Harm for your fix, it works!

Just in case other lilypond beginner want to try it, here it is the
detailed instruction to get the circus note heads example on *windows 10*.

1 Download CircusNoteheads.otf font attached to this mail
2 Install the font: locate the file, right click on it and select "install"
from the context menu
3 Download HappyBirthday-CircusNotehead.ly code attached to this email

Then compile the lilypond file etc. etc.
I also attached the resulting pdf.

Best regards, g.


CircusNoteheads.otf
Description: application/vnd.oasis.opendocument.formula-template
\version "2.19.80"

#(set-global-staff-size 35)
#(set-default-paper-size "a4 landscape")

\header { 
  title = \markup \sans "Happy Birthday" 
  subtitle = \markup \sans "für Oma" 
  tagline = ##f
}

\paper {
  top-margin = 15 \mm
  bottom-margin = 30 \mm
  markup-system-spacing.basic-distance = 12\mm 
  ragged-last-bottom = ##f
}


makeUnpurePureContainer =
#(ly:make-unpure-pure-container
  ly:grob::stencil-height
  (lambda (grob start end) (ly:grob::stencil-height grob)))  

#(define (new-markup-stencil mrkp)
   (lambda (grob)
 (grob-interpret-markup grob mrkp)))

newClef =
#(define-music-function (parser location mrkp)(markup?)
   #{
 \override Staff.Clef #'Y-extent = \makeUnpurePureContainer
 \override Staff.Clef #'X-extent = #'(-0.5 . 7)
 \override Staff.Clef #'stencil =
 #(lambda (grob)
(new-markup-stencil mrkp))
   #})

rechts = \markup \lower #0.9 \fontsize #8 "R"
links = \markup \lower #3.3 \fontsize #8 "L"


#(define (circus-notehead grob)
   "stencil: circus noteheads"
   (let* ((pitch (ly:event-property (event-cause grob) 'pitch))
  (pitch-index (ly:pitch-notename pitch))
  (pitch-octave (ly:pitch-octave pitch))
  (charnum (+ #xe190 0 (- pitch-index 3) (* (+ pitch-octave 1) 7
 (if (and (>= charnum #xe190) (<= charnum #xe198))
 (begin (set! (ly:grob-property grob 'stem-attachment) '(1.0 . 0.1))
   (grob-interpret-markup grob
 (markup #:fontsize 3 #:override '(font-name . "CircusNoteheads") #:char charnum)))
 (ly:note-head::print grob


\layout {
  indent = 0
  \context {
\Score
\remove "Bar_number_engraver"
proportionalNotationDuration = #(ly:make-moment 1 4)
  }
  \context {
\PianoStaff
\override BarLine #'break-visibility = ##(#t #f #f)
  }  
  \context {
\Staff
\remove "Time_signature_engraver"
\override NoteHead #'stencil = #circus-notehead  
\override NoteHead #'Y-extent = \makeUnpurePureContainer
\override StaffSymbol #'thickness = #0.7
\override StaffSymbol #'staff-space = #1.25
\override StaffSymbol #'ledger-line-thickness = #'(2 . 0)
\override Stem #'thickness = #2
  }
}



\score {
  \new PianoStaff <<
\new Staff
\relative c' {
  \newClef \rechts \clef treble
  s4 s s2 s c s1 s4 s s2 s d c1  
  s4 s g'2 e c8*2 c s2 s f8*2 f e2 c d c1 \bar "|."
}
\new Staff 
\relative c' {
  \newClef \links \clef bass
  g8*2 g a2 g s b1 g8*2 g a2 g s s1
  g8*2 g s2 s s4 s b2 a c8*2 c g2 s b s1 
}
  >>
  \layout {}
  \midi {}
}


HappyBirthday-CircusNotehead.pdf
Description: Adobe PDF document
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


defining custom note heads

2008-05-23 Thread Brian Kidd
is there a way to define or import custom note heads? i'm interested  
in using specific symbols to indicate rhythmic notation in hand  
drumming. a picture of the symbols that i'd like to use for note  
heads is attached. sadly this image wasn't created in lilypond, but i  
figure it ought to be possible.


thanks,
-brian

<>___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user


Re: defining custom note heads

2018-07-27 Thread rodrigo
I was searching how to do the same thing and found this thread.

I know this is an old post, but following the example of Lilypond
documentation for using numbers instead of note names, I created the
following snippet to show custom note names:

#(define Note_name_engraver_pt
   (make-engraver
(acknowledgers
 ((note-head-interface engraver grob source-engraver)
  (let* ((context (ly:translator-context engraver))
(note-names 
  (vector '"dó" '"ré" '"mi" '"fá" '"sol" '"lá" '"si")))
(ly:grob-set-property! grob 'note-names note-names))



Since I am not a programmer , certainly there is a better way to do that,
but at least it works for me. Kept here for reference
Eric Knapp wrote
> Thank you, Neil. That is a very good point and I'm now switching to
> standard \markup usage. An thanks to everyone who chimed in here. I
> have been trying to develop a way to notate for my instrument, the
> Chapman Stick, for a long time. I really made a big leap today.
> 
> -Eric
> 
> On Mon, Jul 7, 2008 at 3:06 PM, Neil Puttock <

> n.puttock@

> > wrote:
>> Hi Eric,
>>
>> 2008/7/7 Eric Knapp <

> eknapp@

> >:
>>> I have one more piece of the puzzle to solve. How do you translate
>>> this markup command into scheme?
>>>
>>>  \draw-line #'(4 . 4)
>>
>> #:draw-line '(4 . 4) or #:draw-line (cons 4 4)
>>
>>> Some of the markup commands call for pairs of numbers. I can't find
>>> any docs for how the pairs are coded in scheme.
>>
>> '(4 . 4) is a Scheme pair; the hash sign tells LilyPond's parser that
>> there's some Scheme code coming up.
>>
>> There's a short tutorial here,
>> http://lilypond.org/doc/v2.11/Documentation/user/lilypond-learning/Scheme-tutorial#Scheme-tutorial,
>> which explains how Scheme data types are used in LilyPond.
>>
>> BTW, it's an unnecessary complication to use Scheme markup syntax for
>> simple 'text overrides; you'll find it much easier if you stick to
>> LilyPond's standard \markup usage.
>>
>> For example:
>>
>> headXinD = {
>>  \once \override NoteHead  #'stencil = #ly:text-interface::print
>>  \once \override NoteHead #'text = \markup {
>>\combine
>>  \halign #-0.7 \draw-circle #0.85 #0.2 ##f
>>  \musicglyph #"noteheads.s2cross"
>>  }
>> }
>>
>> Regards,
>> Neil
>>
> 
> 
> ___
> lilypond-user mailing list

> lilypond-user@

> http://lists.gnu.org/mailman/listinfo/lilypond-user





--
Sent from: http://lilypond.1069038.n5.nabble.com/User-f3.html

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


Re: defining custom note heads

2008-06-03 Thread v!ictor [EMAIL PROTECTED]
Hello Brian,

There are two things you need to do to create arbitrary noteheads from
within lilypond:
1. change the NoteHead stencil to the text interface:
\once \override NoteHead  #'stencil = #ly:text-interface::print
2. define the text attribute of the NoteHead. you can put any markup
command you want. The easiest thing to do is to simply call a
musicglyph, as in the example below. With musicglyph you can use any
of the feta font glyphs:
http://lilypond.org/doc/v2.11/Documentation/user/lilypond/The-Feta-font#The-Feta-font

But you can also draw lines, circles, etc. basically anything you can
do in a markup. See
http://lilypond.org/doc/v2.11/Documentation/user/lilypond/Text-markup-commands#Text-markup-commands


% START %
\version "2.11.45"

headCircle   = {\once \override NoteHead  #'stencil = #ly:text-interface::print
   \once \override NoteHead #'text = #(markup
#:musicglyph "scripts.flageolet" ) }
headPlus= {\once \override NoteHead  #'stencil =
#ly:text-interface::print
   \once \override NoteHead #'text = #(markup #:musicglyph
"scripts.stopped")}

{
   \headCircle
   c'4
   \headPlus
   d'4
   % normal
   e'4
}
% END %

You can also import eps files...
headEPS   = \once \override NoteHead #'text = #(markup #:epsfile 2 1.3
"image_dir/image.eps")

 but this is not very efficient as the resulting PDF may grow very
large. Also, compilation takes long, don't know why.

hope this is useful,

Victor.


On 5/23/08, Brian Kidd <[EMAIL PROTECTED]> wrote:
> is there a way to define or import custom note heads? i'm interested
> in using specific symbols to indicate rhythmic notation in hand
> drumming. a picture of the symbols that i'd like to use for note
> heads is attached. sadly this image wasn't created in lilypond, but i
> figure it ought to be possible.
>
> thanks,
> -brian
>
>


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


Re: defining custom note heads

2008-06-03 Thread Valentin Villenave
2008/6/3 v!ictor [EMAIL PROTECTED] <[EMAIL PROTECTED]>:

> There are two things you need to do to create arbitrary noteheads from
> within lilypond:

Thanks Victor (nice to see you again :-)

I have added your example to the LSR:
http://lsr.dsi.unimi.it/LSR/Item?id=475

Your workaround with the tuplets (on the other thread) is really nice,
feel free to add it to the LSR if you want (I'd have done it myself
but I'm still looking for a way to make your implementation easier to
use).

Cheers,
Valentin


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


Re: defining custom note heads

2008-06-03 Thread v!ctor [EMAIL PROTECTED]
Hello Valentin,


> Thanks Victor (nice to see you again :-)

you too!

>
> I have added your example to the LSR:
> http://lsr.dsi.unimi.it/LSR/Item?id=475

excellent!

>
> Your workaround with the tuplets (on the other thread) is really nice,
> feel free to add it to the LSR if you want (I'd have done it myself
> but I'm still looking for a way to make your implementation easier to
> use).

Yes. I think defining a method is the way to go. I'll try to make one,
but if you come up with a good solution please post it in the tuplet
thread.

thanks,

Victor


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


Re: defining custom note heads

2008-07-07 Thread Eric Knapp
Hello,

I'm trying to get the second option below to work. This is one where
you use markup commands to create the notehead. I can't get the syntax
right, could you also provide an example of that?

Thanks,

-Eric

On Tue, Jun 3, 2008 at 10:20 AM, v!ictor [EMAIL PROTECTED] <[EMAIL PROTECTED]> 
wrote:
> Hello Brian,
>
> There are two things you need to do to create arbitrary noteheads from
> within lilypond:
> 1. change the NoteHead stencil to the text interface:
> \once \override NoteHead  #'stencil = #ly:text-interface::print
> 2. define the text attribute of the NoteHead. you can put any markup
> command you want. The easiest thing to do is to simply call a
> musicglyph, as in the example below. With musicglyph you can use any
> of the feta font glyphs:
> http://lilypond.org/doc/v2.11/Documentation/user/lilypond/The-Feta-font#The-Feta-font
>
> But you can also draw lines, circles, etc. basically anything you can
> do in a markup. See
> http://lilypond.org/doc/v2.11/Documentation/user/lilypond/Text-markup-commands#Text-markup-commands
>


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


Re: defining custom note heads

2008-07-07 Thread James E. Bailey




On Tue, Jun 3, 2008 at 10:20 AM, v!ictor [EMAIL PROTECTED] <[EMAIL PROTECTED]>  
wrote:

Hello Brian,

There are two things you need to do to create arbitrary noteheads  
from

within lilypond:
1. change the NoteHead stencil to the text interface:
\once \override NoteHead  #'stencil = #ly:text-interface::print
2. define the text attribute of the NoteHead. you can put any markup
command you want. The easiest thing to do is to simply call a
musicglyph, as in the example below. With musicglyph you can use any
of the feta font glyphs:
http://lilypond.org/doc/v2.11/Documentation/user/lilypond/The-Feta-font#The-Feta-font

But you can also draw lines, circles, etc. basically anything you can
do in a markup. See
http://lilypond.org/doc/v2.11/Documentation/user/lilypond/Text-markup-commands#Text-markup-commands



Am 07.07.2008 um 18:04 schrieb Eric Knapp:

Hello,

I'm trying to get the second option below to work. This is one where
you use markup commands to create the notehead. I can't get the syntax
right, could you also provide an example of that?

Thanks,

-Eric



They work in tandem, not independantly, first, you change the NoteHead  
stencil to the text interface, (see previous code), then you define  
the musicglyph that you want to use as a notehead.

See http://lsr.dsi.unimi.it/LSR/Item?id=475

(and just as I finish complaining that I can never find anything on  
the lsr…)___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user


Re: defining custom note heads

2008-07-07 Thread Eric Knapp
I have it working when you define glyphs, like this:

headCircle  = {\once \override NoteHead  #'stencil = #ly:text-interface::print
  \once \override NoteHead #'text = #(markup #:musicglyph
"scripts.flageolet" ) }

What I can't get to work is what Victor mentioned but didn't give and
example for. Here's what he said,

 "But you can also draw lines, circles, etc. basically anything you can
do in a markup. See
http://lilypond.org/doc/v2.11/Documentation/user/lilypond/Text-markup-commands#Text-markup-commands";

I can't figure out the exact syntax for when you use markup and not a
glyph. I would love an example like the one above with markup.

Thanks,

-Eric

On Mon, Jul 7, 2008 at 12:09 PM, James E. Bailey <[EMAIL PROTECTED]> wrote:
>
>
> On Tue, Jun 3, 2008 at 10:20 AM, v!ictor [EMAIL PROTECTED] <[EMAIL 
> PROTECTED]> wrote:
>
> Hello Brian,
>
> There are two things you need to do to create arbitrary noteheads from
>
> within lilypond:
>
> 1. change the NoteHead stencil to the text interface:
>
> \once \override NoteHead  #'stencil = #ly:text-interface::print
>
> 2. define the text attribute of the NoteHead. you can put any markup
>
> command you want. The easiest thing to do is to simply call a
>
> musicglyph, as in the example below. With musicglyph you can use any
>
> of the feta font glyphs:
>
> http://lilypond.org/doc/v2.11/Documentation/user/lilypond/The-Feta-font#The-Feta-font
>
> But you can also draw lines, circles, etc. basically anything you can
>
> do in a markup. See
>
> http://lilypond.org/doc/v2.11/Documentation/user/lilypond/Text-markup-commands#Text-markup-commands
>
>
> Am 07.07.2008 um 18:04 schrieb Eric Knapp:
>
> Hello,
>
> I'm trying to get the second option below to work. This is one where
> you use markup commands to create the notehead. I can't get the syntax
> right, could you also provide an example of that?
>
> Thanks,
>
> -Eric
>
>
> They work in tandem, not independantly, first, you change the NoteHead
> stencil to the text interface, (see previous code), then you define the
> musicglyph that you want to use as a notehead.
> See http://lsr.dsi.unimi.it/LSR/Item?id=475
> (and just as I finish complaining that I can never find anything on the
> lsr…)


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


Re: defining custom note heads

2008-07-07 Thread James E. Bailey


On Mon, Jul 7, 2008 at 12:09 PM, James E. Bailey  
<[EMAIL PROTECTED]> wrote:



On Tue, Jun 3, 2008 at 10:20 AM, v!ictor [EMAIL PROTECTED] <[EMAIL PROTECTED]>  
wrote:


Hello Brian,

There are two things you need to do to create arbitrary noteheads  
from


within lilypond:

1. change the NoteHead stencil to the text interface:

\once \override NoteHead  #'stencil = #ly:text-interface::print

2. define the text attribute of the NoteHead. you can put any markup

command you want. The easiest thing to do is to simply call a

musicglyph, as in the example below. With musicglyph you can use any

of the feta font glyphs:

http://lilypond.org/doc/v2.11/Documentation/user/lilypond/The-Feta-font#The-Feta-font

But you can also draw lines, circles, etc. basically anything you can

do in a markup. See

http://lilypond.org/doc/v2.11/Documentation/user/lilypond/Text-markup-commands#Text-markup-commands


Am 07.07.2008 um 18:04 schrieb Eric Knapp:

Hello,

I'm trying to get the second option below to work. This is one where
you use markup commands to create the notehead. I can't get the  
syntax

right, could you also provide an example of that?

Thanks,

-Eric


They work in tandem, not independantly, first, you change the  
NoteHead
stencil to the text interface, (see previous code), then you define  
the

musicglyph that you want to use as a notehead.
See http://lsr.dsi.unimi.it/LSR/Item?id=475
(and just as I finish complaining that I can never find anything on  
the

lsr…)




Am 07.07.2008 um 19:46 schrieb Eric Knapp:

I have it working when you define glyphs, like this:

headCircle  = {\once \override NoteHead  #'stencil = #ly:text- 
interface::print

 \once \override NoteHead #'text = #(markup #:musicglyph
"scripts.flageolet" ) }

What I can't get to work is what Victor mentioned but didn't give and
example for. Here's what he said,

"But you can also draw lines, circles, etc. basically anything you can
do in a markup. See
http://lilypond.org/doc/v2.11/Documentation/user/lilypond/Text-markup-commands#Text-markup-commands 
"


I can't figure out the exact syntax for when you use markup and not a
glyph. I would love an example like the one above with markup.

Thanks,

-Eric


You have it working correctly. when you have #(markup #: whatever  
markup) that's just the scheme way of calling a markup.


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


Re: defining custom note heads

2008-07-07 Thread V!ctor Adán
Hello Eric,

here are a few more examples.
The first (headCircle) is the one I had given before. It just  calls
musicgryph inside a markup.
The second (headTriW) just draws a triangle. Notice how you can set the size
with the fontsize command.
The third (headXinD) combines (with the combine directive) a drawn circle
(draw-circle) with a mysicglyph.

Notice how "halign" and "lower" are used to move things around.

Hope these help,

Victor.

%%% START 
\version "2.11.50"

headCircle = {\once \override NoteHead  #'stencil =
#ly:text-interface::print
  \once \override NoteHead #'text = #(markup #:musicglyph
"scripts.flageolet" ) }
headTriW = {\once \override NoteHead  #'stencil = #ly:text-interface::print
\once \override NoteHead #'text = #(markup  #:lower .5
#:fontsize -3 #:triangle #t) }
headXinD = { \once \override NoteHead  #'stencil = #ly:text-interface::print
\once \override NoteHead #'text = #(markup  #:combine #:halign
-0.7 #:draw-circle 0.85 0.2 #f #:musicglyph "noteheads.s2cross") }


\score{
   {
  \relative c'
  {\headCircle c4.  %%% just use musicglyph
  \headTriW d   %%% just draw
  \headXinD e   %%% combine drawing with musicglyph
  f   %%% normal notehead
  }
   }
}
%%% END 


On Mon, Jul 7, 2008 at 1:46 PM, Eric Knapp <[EMAIL PROTECTED]> wrote:

> I have it working when you define glyphs, like this:
>
> headCircle  = {\once \override NoteHead  #'stencil =
> #ly:text-interface::print
>  \once \override NoteHead #'text = #(markup #:musicglyph
> "scripts.flageolet" ) }
>
> What I can't get to work is what Victor mentioned but didn't give and
> example for. Here's what he said,
>
>  "But you can also draw lines, circles, etc. basically anything you can
> do in a markup. See
>
> http://lilypond.org/doc/v2.11/Documentation/user/lilypond/Text-markup-commands#Text-markup-commands
> "
>
> I can't figure out the exact syntax for when you use markup and not a
> glyph. I would love an example like the one above with markup.
>
> Thanks,
>
> -Eric
>
> On Mon, Jul 7, 2008 at 12:09 PM, James E. Bailey <[EMAIL PROTECTED]>
> wrote:
> >
> >
> > On Tue, Jun 3, 2008 at 10:20 AM, v!ictor [EMAIL PROTECTED] <[EMAIL 
> > PROTECTED]> wrote:
> >
> > Hello Brian,
> >
> > There are two things you need to do to create arbitrary noteheads from
> >
> > within lilypond:
> >
> > 1. change the NoteHead stencil to the text interface:
> >
> > \once \override NoteHead  #'stencil = #ly:text-interface::print
> >
> > 2. define the text attribute of the NoteHead. you can put any markup
> >
> > command you want. The easiest thing to do is to simply call a
> >
> > musicglyph, as in the example below. With musicglyph you can use any
> >
> > of the feta font glyphs:
> >
> >
> http://lilypond.org/doc/v2.11/Documentation/user/lilypond/The-Feta-font#The-Feta-font
> >
> > But you can also draw lines, circles, etc. basically anything you can
> >
> > do in a markup. See
> >
> >
> http://lilypond.org/doc/v2.11/Documentation/user/lilypond/Text-markup-commands#Text-markup-commands
> >
> >
> > Am 07.07.2008 um 18:04 schrieb Eric Knapp:
> >
> > Hello,
> >
> > I'm trying to get the second option below to work. This is one where
> > you use markup commands to create the notehead. I can't get the syntax
> > right, could you also provide an example of that?
> >
> > Thanks,
> >
> > -Eric
> >
> >
> > They work in tandem, not independantly, first, you change the NoteHead
> > stencil to the text interface, (see previous code), then you define the
> > musicglyph that you want to use as a notehead.
> > See http://lsr.dsi.unimi.it/LSR/Item?id=475
> > (and just as I finish complaining that I can never find anything on the
> > lsr…)
>
>
> ___
> lilypond-user mailing list
> lilypond-user@gnu.org
> http://lists.gnu.org/mailman/listinfo/lilypond-user
>
___
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user


Re: defining custom note heads

2008-07-07 Thread Eric Knapp
Thanks, Victor!  I see the correct syntax now and I have it working.
This is really great, I've been trying to do this for a long time.

-Eric

On Mon, Jul 7, 2008 at 1:23 PM, V!ctor Adán <[EMAIL PROTECTED]> wrote:
> Hello Eric,
>
> here are a few more examples.
> The first (headCircle) is the one I had given before. It just  calls
> musicgryph inside a markup.
> The second (headTriW) just draws a triangle. Notice how you can set the size
> with the fontsize command.
> The third (headXinD) combines (with the combine directive) a drawn circle
> (draw-circle) with a mysicglyph.
>
> Notice how "halign" and "lower" are used to move things around.
>
> Hope these help,
>
> Victor.
>
> %%% START 
> \version "2.11.50"
>
> headCircle = {\once \override NoteHead  #'stencil =
> #ly:text-interface::print
>   \once \override NoteHead #'text = #(markup #:musicglyph
> "scripts.flageolet" ) }
> headTriW = {\once \override NoteHead  #'stencil = #ly:text-interface::print
> \once \override NoteHead #'text = #(markup  #:lower .5
> #:fontsize -3 #:triangle #t) }
> headXinD = { \once \override NoteHead  #'stencil = #ly:text-interface::print
> \once \override NoteHead #'text = #(markup  #:combine #:halign
> -0.7 #:draw-circle 0.85 0.2 #f #:musicglyph "noteheads.s2cross") }
>
>
> \score{
>{
>   \relative c'
>   {\headCircle c4.  %%% just use musicglyph
>   \headTriW d   %%% just draw
>   \headXinD e   %%% combine drawing with musicglyph
>   f   %%% normal notehead
>   }
>}
> }
> %%% END 
>
>
> On Mon, Jul 7, 2008 at 1:46 PM, Eric Knapp <[EMAIL PROTECTED]> wrote:
>>
>> I have it working when you define glyphs, like this:
>>
>> headCircle  = {\once \override NoteHead  #'stencil =
>> #ly:text-interface::print
>>  \once \override NoteHead #'text = #(markup #:musicglyph
>> "scripts.flageolet" ) }
>>
>> What I can't get to work is what Victor mentioned but didn't give and
>> example for. Here's what he said,
>>
>>  "But you can also draw lines, circles, etc. basically anything you can
>> do in a markup. See
>>
>> http://lilypond.org/doc/v2.11/Documentation/user/lilypond/Text-markup-commands#Text-markup-commands";
>>
>> I can't figure out the exact syntax for when you use markup and not a
>> glyph. I would love an example like the one above with markup.
>>
>> Thanks,
>>
>> -Eric
>>
>> On Mon, Jul 7, 2008 at 12:09 PM, James E. Bailey <[EMAIL PROTECTED]>
>> wrote:
>> >
>> >
>> > On Tue, Jun 3, 2008 at 10:20 AM, v!ictor [EMAIL PROTECTED] <[EMAIL 
>> > PROTECTED]> wrote:
>> >
>> > Hello Brian,
>> >
>> > There are two things you need to do to create arbitrary noteheads from
>> >
>> > within lilypond:
>> >
>> > 1. change the NoteHead stencil to the text interface:
>> >
>> > \once \override NoteHead  #'stencil = #ly:text-interface::print
>> >
>> > 2. define the text attribute of the NoteHead. you can put any markup
>> >
>> > command you want. The easiest thing to do is to simply call a
>> >
>> > musicglyph, as in the example below. With musicglyph you can use any
>> >
>> > of the feta font glyphs:
>> >
>> >
>> > http://lilypond.org/doc/v2.11/Documentation/user/lilypond/The-Feta-font#The-Feta-font
>> >
>> > But you can also draw lines, circles, etc. basically anything you can
>> >
>> > do in a markup. See
>> >
>> >
>> > http://lilypond.org/doc/v2.11/Documentation/user/lilypond/Text-markup-commands#Text-markup-commands
>> >
>> >
>> > Am 07.07.2008 um 18:04 schrieb Eric Knapp:
>> >
>> > Hello,
>> >
>> > I'm trying to get the second option below to work. This is one where
>> > you use markup commands to create the notehead. I can't get the syntax
>> > right, could you also provide an example of that?
>> >
>> > Thanks,
>> >
>> > -Eric
>> >
>> >
>> > They work in tandem, not independantly, first, you change the NoteHead
>> > stencil to the text interface, (see previous code), then you define the
>> > musicglyph that you want to use as a notehead.
>> > See http://lsr.dsi.unimi.it/LSR/Item?id=475
>> > (and just as I finish complaining that I can never find anything on the
>> > lsr…)
>>
>>
>> ___
>> lilypond-user mailing list
>> lilypond-user@gnu.org
>> http://lists.gnu.org/mailman/listinfo/lilypond-user
>
>


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


Re: defining custom note heads

2008-07-07 Thread Eric Knapp
I have one more piece of the puzzle to solve. How do you translate
this markup command into scheme?

  \draw-line #'(4 . 4)

Some of the markup commands call for pairs of numbers. I can't find
any docs for how the pairs are coded in scheme.

Thanks,

-Eric

On Mon, Jul 7, 2008 at 1:31 PM, Eric Knapp <[EMAIL PROTECTED]> wrote:
> Thanks, Victor!  I see the correct syntax now and I have it working.
> This is really great, I've been trying to do this for a long time.
>
> -Eric
>
> On Mon, Jul 7, 2008 at 1:23 PM, V!ctor Adán <[EMAIL PROTECTED]> wrote:
>> Hello Eric,
>>
>> here are a few more examples.
>> The first (headCircle) is the one I had given before. It just  calls
>> musicgryph inside a markup.
>> The second (headTriW) just draws a triangle. Notice how you can set the size
>> with the fontsize command.
>> The third (headXinD) combines (with the combine directive) a drawn circle
>> (draw-circle) with a mysicglyph.
>>
>> Notice how "halign" and "lower" are used to move things around.
>>
>> Hope these help,
>>
>> Victor.
>>
>> %%% START 
>> \version "2.11.50"
>>
>> headCircle = {\once \override NoteHead  #'stencil =
>> #ly:text-interface::print
>>   \once \override NoteHead #'text = #(markup #:musicglyph
>> "scripts.flageolet" ) }
>> headTriW = {\once \override NoteHead  #'stencil = #ly:text-interface::print
>> \once \override NoteHead #'text = #(markup  #:lower .5
>> #:fontsize -3 #:triangle #t) }
>> headXinD = { \once \override NoteHead  #'stencil = #ly:text-interface::print
>> \once \override NoteHead #'text = #(markup  #:combine #:halign
>> -0.7 #:draw-circle 0.85 0.2 #f #:musicglyph "noteheads.s2cross") }
>>
>>
>> \score{
>>{
>>   \relative c'
>>   {\headCircle c4.  %%% just use musicglyph
>>   \headTriW d   %%% just draw
>>   \headXinD e   %%% combine drawing with musicglyph
>>   f   %%% normal notehead
>>   }
>>}
>> }
>> %%% END 
>>
>>
>> On Mon, Jul 7, 2008 at 1:46 PM, Eric Knapp <[EMAIL PROTECTED]> wrote:
>>>
>>> I have it working when you define glyphs, like this:
>>>
>>> headCircle  = {\once \override NoteHead  #'stencil =
>>> #ly:text-interface::print
>>>  \once \override NoteHead #'text = #(markup #:musicglyph
>>> "scripts.flageolet" ) }
>>>
>>> What I can't get to work is what Victor mentioned but didn't give and
>>> example for. Here's what he said,
>>>
>>>  "But you can also draw lines, circles, etc. basically anything you can
>>> do in a markup. See
>>>
>>> http://lilypond.org/doc/v2.11/Documentation/user/lilypond/Text-markup-commands#Text-markup-commands";
>>>
>>> I can't figure out the exact syntax for when you use markup and not a
>>> glyph. I would love an example like the one above with markup.
>>>
>>> Thanks,
>>>
>>> -Eric
>>>
>>> On Mon, Jul 7, 2008 at 12:09 PM, James E. Bailey <[EMAIL PROTECTED]>
>>> wrote:
>>> >
>>> >
>>> > On Tue, Jun 3, 2008 at 10:20 AM, v!ictor [EMAIL PROTECTED] <[EMAIL 
>>> > PROTECTED]> wrote:
>>> >
>>> > Hello Brian,
>>> >
>>> > There are two things you need to do to create arbitrary noteheads from
>>> >
>>> > within lilypond:
>>> >
>>> > 1. change the NoteHead stencil to the text interface:
>>> >
>>> > \once \override NoteHead  #'stencil = #ly:text-interface::print
>>> >
>>> > 2. define the text attribute of the NoteHead. you can put any markup
>>> >
>>> > command you want. The easiest thing to do is to simply call a
>>> >
>>> > musicglyph, as in the example below. With musicglyph you can use any
>>> >
>>> > of the feta font glyphs:
>>> >
>>> >
>>> > http://lilypond.org/doc/v2.11/Documentation/user/lilypond/The-Feta-font#The-Feta-font
>>> >
>>> > But you can also draw lines, circles, etc. basically anything you can
>>> >
>>> > do in a markup. See
>>> >
>>> >
>>> > http://lilypond.org/doc/v2.11/Documentation/user/lilypond/Text-markup-commands#Text-markup-commands
>>> >
>>> >
>>> > Am 07.07.2008 um 18:04 schrieb Eric Knapp:
>>> >
>>> > Hello,
>>> >
>>> > I'm trying to get the second option below to work. This is one where
>>> > you use markup commands to create the notehead. I can't get the syntax
>>> > right, could you also provide an example of that?
>>> >
>>> > Thanks,
>>> >
>>> > -Eric
>>> >
>>> >
>>> > They work in tandem, not independantly, first, you change the NoteHead
>>> > stencil to the text interface, (see previous code), then you define the
>>> > musicglyph that you want to use as a notehead.
>>> > See http://lsr.dsi.unimi.it/LSR/Item?id=475
>>> > (and just as I finish complaining that I can never find anything on the
>>> > lsr…)
>>>
>>>
>>> ___
>>> lilypond-user mailing list
>>> lilypond-user@gnu.org
>>> http://lists.gnu.org/mailman/listinfo/lilypond-user
>>
>>
>


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


Re: defining custom note heads

2008-07-07 Thread Neil Puttock
Hi Eric,

2008/7/7 Eric Knapp <[EMAIL PROTECTED]>:
> I have one more piece of the puzzle to solve. How do you translate
> this markup command into scheme?
>
>  \draw-line #'(4 . 4)

#:draw-line '(4 . 4) or #:draw-line (cons 4 4)

> Some of the markup commands call for pairs of numbers. I can't find
> any docs for how the pairs are coded in scheme.

'(4 . 4) is a Scheme pair; the hash sign tells LilyPond's parser that
there's some Scheme code coming up.

There's a short tutorial here,
http://lilypond.org/doc/v2.11/Documentation/user/lilypond-learning/Scheme-tutorial#Scheme-tutorial,
which explains how Scheme data types are used in LilyPond.

BTW, it's an unnecessary complication to use Scheme markup syntax for
simple 'text overrides; you'll find it much easier if you stick to
LilyPond's standard \markup usage.

For example:

headXinD = {
  \once \override NoteHead  #'stencil = #ly:text-interface::print
  \once \override NoteHead #'text = \markup {
\combine
  \halign #-0.7 \draw-circle #0.85 #0.2 ##f
  \musicglyph #"noteheads.s2cross"
  }
}

Regards,
Neil


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


Re: defining custom note heads

2008-07-07 Thread Eric Knapp
Thank you, Neil. That is a very good point and I'm now switching to
standard \markup usage. An thanks to everyone who chimed in here. I
have been trying to develop a way to notate for my instrument, the
Chapman Stick, for a long time. I really made a big leap today.

-Eric

On Mon, Jul 7, 2008 at 3:06 PM, Neil Puttock <[EMAIL PROTECTED]> wrote:
> Hi Eric,
>
> 2008/7/7 Eric Knapp <[EMAIL PROTECTED]>:
>> I have one more piece of the puzzle to solve. How do you translate
>> this markup command into scheme?
>>
>>  \draw-line #'(4 . 4)
>
> #:draw-line '(4 . 4) or #:draw-line (cons 4 4)
>
>> Some of the markup commands call for pairs of numbers. I can't find
>> any docs for how the pairs are coded in scheme.
>
> '(4 . 4) is a Scheme pair; the hash sign tells LilyPond's parser that
> there's some Scheme code coming up.
>
> There's a short tutorial here,
> http://lilypond.org/doc/v2.11/Documentation/user/lilypond-learning/Scheme-tutorial#Scheme-tutorial,
> which explains how Scheme data types are used in LilyPond.
>
> BTW, it's an unnecessary complication to use Scheme markup syntax for
> simple 'text overrides; you'll find it much easier if you stick to
> LilyPond's standard \markup usage.
>
> For example:
>
> headXinD = {
>  \once \override NoteHead  #'stencil = #ly:text-interface::print
>  \once \override NoteHead #'text = \markup {
>\combine
>  \halign #-0.7 \draw-circle #0.85 #0.2 ##f
>  \musicglyph #"noteheads.s2cross"
>  }
> }
>
> Regards,
> Neil
>


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


Custom note heads in multi-staff documents

2011-09-20 Thread m...@apollinemike.com
Hey all,

I'm working on a piece that uses a fair bit of spoken text.

The best solution I've found so far to typeset X amount of spoken text in 
measure Y is :

\version "2.14.0"

textnote =
#(define-music-function (parser location music marky) (ly:music? markup?)
#{
  \once \override NoteHead #'stencil = #ly:text-interface::print
  \once \override NoteHead #'text = $marky
  $music
#})

#(define-markup-command (hD layout props) () (interpret-markup layout props 
(markup #:hspace 5)))

\new Staff {
  \textnote b'1 \markup { \hD \hD Attention \hD K-Mart \hD shoppers. }
  \textnote b'1 \markup { \hD \hD Today's \hD Blue \hD Light }
  \textnote b'1 \markup { special \hD can \hD be \hD found \hD in }
  \textnote b'1 \markup { asile \hD seven. \hD \hD }
  \textnote b'1 \markup { Asile \hD seven, \hD K-Mart \hD shoppers. }
}


So far so good.  However, as soon as a second staff is added, the spacing goes 
out of whack.

\version "2.14.0"

textnote =
#(define-music-function (parser location music marky) (ly:music? markup?)
#{
  \once \override NoteHead #'stencil = #ly:text-interface::print
  \once \override NoteHead #'text = $marky
  $music
#})

#(define-markup-command (hD layout props) () (interpret-markup layout props 
(markup #:hspace 5)))

<<
\new Staff {
\repeat unfold 40 a8
}
\new Staff {
  \textnote b'1 \markup { \hD \hD Attention \hD K-Mart \hD shoppers. }
  \textnote b'1 \markup { \hD \hD Today's \hD Blue \hD Light }
  \textnote b'1 \markup { special \hD can \hD be \hD found \hD in }
  \textnote b'1 \markup { asile \hD seven. \hD \hD }
  \textnote b'1 \markup { Asile \hD seven, \hD K-Mart \hD shoppers. }
}
>>

I'm not sure how to get the spacing of the first example while keeping the 
multi-staffitude of the second example.  For the geeks on the list, 
ly:text-interface::print is registered as a pure print callback, so it should 
get fed just fine into the horizontal spacing engine in both examples.

Does anyone have any suggestions as to:

(1) A better way to do this; and/or
(2) If there is no better way, how to fix the horizontal spacing problem above?

Cheers,
MS


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


Re: Custom note heads in multi-staff documents

2011-09-20 Thread Trevor Daniels



Tuesday, September 20, 2011 8:31 PM


I'm working on a piece that uses a fair bit of spoken text.

Does anyone have any suggestions as to:

(1) A better way to do this; and/or
(2) If there is no better way, how to fix the horizontal spacing 
problem above?


Mike, this might be an a more promising approach:

<<
 \new Staff {
   \repeat unfold 20 \skip 4
 }
 \new Lyrics
   \with {
 \override VerticalAxisGroup
   #'nonstaff-relatedstaff-spacing = #'((padding . -3))
   }
 \lyricmode {
   \skip 4 Attention4 K-Mart4 shoppers.4
   \skip 4 Today's4 Blue4 Light4
   special1*1/5 can1*1/5 be1*1/5 found1*1/5 in1*1/5
   aisle4 seven.4 \skip 2
   Aisle4 seven,4 K-Mart4 shoppers.4
 }
 \new Staff {
   \repeat unfold 40 a'8
 }




But being able to space a spoken phrase evenly between
two end points would be a welcome enhancement.

Trevor



-
No virus found in this message.
Checked by AVG - www.avg.com
Version: 10.0.1410 / Virus Database: 1520/3908 - Release Date: 09/20/11


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


Re: Custom note heads in multi-staff documents

2011-09-20 Thread m...@apollinemike.com
On Sep 21, 2011, at 1:53 AM, Trevor Daniels wrote:

> 
> 
> Tuesday, September 20, 2011 8:31 PM
> 
>> I'm working on a piece that uses a fair bit of spoken text.
>> 
>> Does anyone have any suggestions as to:
>> 
>> (1) A better way to do this; and/or
>> (2) If there is no better way, how to fix the horizontal spacing problem 
>> above?
> 
> Mike, this might be an a more promising approach:
> 
> <<
> \new Staff {
>  \repeat unfold 20 \skip 4
> }
> \new Lyrics
>  \with {
>\override VerticalAxisGroup
>  #'nonstaff-relatedstaff-spacing = #'((padding . -3))
>  }
> \lyricmode {
>  \skip 4 Attention4 K-Mart4 shoppers.4
>  \skip 4 Today's4 Blue4 Light4
>  special1*1/5 can1*1/5 be1*1/5 found1*1/5 in1*1/5
>  aisle4 seven.4 \skip 2
>  Aisle4 seven,4 K-Mart4 shoppers.4
> }
> \new Staff {
>  \repeat unfold 40 a'8
> }
>>> 
> 
> But being able to space a spoken phrase evenly between
> two end points would be a welcome enhancement.
> 
> Trevor
> 

This works very well - thanks!  I agree about you with the enhancement, but I'd 
have to mull over how that'd work with horizontal spacing.

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


Re: Custom note heads in multi-staff documents

2011-10-07 Thread m...@apollinemike.com
On Sep 21, 2011, at 8:12 AM, m...@apollinemike.com wrote:

> On Sep 21, 2011, at 1:53 AM, Trevor Daniels wrote:
> 
>> 
>> 
>> Tuesday, September 20, 2011 8:31 PM
>> 
>>> I'm working on a piece that uses a fair bit of spoken text.
>>> 
>>> Does anyone have any suggestions as to:
>>> 
>>> (1) A better way to do this; and/or
>>> (2) If there is no better way, how to fix the horizontal spacing problem 
>>> above?
>> 
>> Mike, this might be an a more promising approach:
>> 
>> <<
>> \new Staff {
>> \repeat unfold 20 \skip 4
>> }
>> \new Lyrics
>> \with {
>>   \override VerticalAxisGroup
>> #'nonstaff-relatedstaff-spacing = #'((padding . -3))
>> }
>> \lyricmode {
>> \skip 4 Attention4 K-Mart4 shoppers.4
>> \skip 4 Today's4 Blue4 Light4
>> special1*1/5 can1*1/5 be1*1/5 found1*1/5 in1*1/5
>> aisle4 seven.4 \skip 2
>> Aisle4 seven,4 K-Mart4 shoppers.4
>> }
>> \new Staff {
>> \repeat unfold 40 a'8
>> }
 
>> 
>> But being able to space a spoken phrase evenly between
>> two end points would be a welcome enhancement.
>> 
>> Trevor
>> 
> 
> This works very well - thanks!  I agree about you with the enhancement, but 
> I'd have to mull over how that'd work with horizontal spacing.
> 
> Cheers,
> MS

Just a follow up: I've been using this to achieve the above effect and it works 
like a charm.

\version "2.14.0"

bar = {
  \override TextScript #'extra-spacing-width = #'(0 . 0)
  \override TextScript #'Y-offset = #0
  \override TextScript #'outside-staff-priority = ##f
  \override TextScript #'self-alignment-X = #LEFT
  \override Stem #'transparent = ##t
  \override NoteHead #'transparent = ##t
  \override NoteHead #'no-ledgers = ##t
}

<<
\new Staff \with { \override StaffSymbol #'line-count = #1 \override BarLine 
#'bar-extent = #'(-1.5 . 1.5) }
  \repeat unfold 6 \relative c' { \bar c-\markup { i } c-\markup { hope } 
c-\markup { this } c-\markup { works } }
\new Staff \with { \override StaffSymbol #'line-count = #1 \override BarLine 
#'bar-extent = #'(-1.5 . 1.5) }
  \repeat unfold 8 \relative c' { \bar c-\markup { o } c-\markup { ooo } 
c-\markup { o } }
>>

I'll throw it up on the LSR.

Cheers,
MS


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


Re: Custom note heads in multi-staff documents

2011-10-07 Thread m...@apollinemike.com
On Oct 7, 2011, at 2:04 PM, m...@apollinemike.com wrote:

> On Sep 21, 2011, at 8:12 AM, m...@apollinemike.com wrote:
> 
>> On Sep 21, 2011, at 1:53 AM, Trevor Daniels wrote:
>> 
>>> 
>>> 
>>> Tuesday, September 20, 2011 8:31 PM
>>> 
 I'm working on a piece that uses a fair bit of spoken text.
 
 Does anyone have any suggestions as to:
 
 (1) A better way to do this; and/or
 (2) If there is no better way, how to fix the horizontal spacing problem 
 above?
>>> 
>>> Mike, this might be an a more promising approach:
>>> 
>>> <<
>>> \new Staff {
>>> \repeat unfold 20 \skip 4
>>> }
>>> \new Lyrics
>>> \with {
>>>  \override VerticalAxisGroup
>>>#'nonstaff-relatedstaff-spacing = #'((padding . -3))
>>> }
>>> \lyricmode {
>>> \skip 4 Attention4 K-Mart4 shoppers.4
>>> \skip 4 Today's4 Blue4 Light4
>>> special1*1/5 can1*1/5 be1*1/5 found1*1/5 in1*1/5
>>> aisle4 seven.4 \skip 2
>>> Aisle4 seven,4 K-Mart4 shoppers.4
>>> }
>>> \new Staff {
>>> \repeat unfold 40 a'8
>>> }
> 
>>> 
>>> But being able to space a spoken phrase evenly between
>>> two end points would be a welcome enhancement.
>>> 
>>> Trevor
>>> 
>> 
>> This works very well - thanks!  I agree about you with the enhancement, but 
>> I'd have to mull over how that'd work with horizontal spacing.
>> 
>> Cheers,
>> MS
> 
> Just a follow up: I've been using this to achieve the above effect and it 
> works like a charm.
> 
> \version "2.14.0"
> 
> bar = {
>  \override TextScript #'extra-spacing-width = #'(0 . 0)
>  \override TextScript #'Y-offset = #0
>  \override TextScript #'outside-staff-priority = ##f
>  \override TextScript #'self-alignment-X = #LEFT
>  \override Stem #'transparent = ##t
>  \override NoteHead #'transparent = ##t
>  \override NoteHead #'no-ledgers = ##t
> }
> 
> <<
> \new Staff \with { \override StaffSymbol #'line-count = #1 \override BarLine 
> #'bar-extent = #'(-1.5 . 1.5) }
>  \repeat unfold 6 \relative c' { \bar c-\markup { i } c-\markup { hope } 
> c-\markup { this } c-\markup { works } }
> \new Staff \with { \override StaffSymbol #'line-count = #1 \override BarLine 
> #'bar-extent = #'(-1.5 . 1.5) }
>  \repeat unfold 8 \relative c' { \bar c-\markup { o } c-\markup { ooo } 
> c-\markup { o } }
>>> 
> 
> I'll throw it up on the LSR.
> 
And I just realized that it's moronic to use the word "bar" for a variable (I'm 
used to using foo and bar for short examples...but this is LilyPond).  Use foo 
instead :)

Cheers,
MS


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