H. S. Teoh | 26 Jul 00:51 2016

Generating music expressions from within \applyContext?

Hi,

I have a Scheme function that returns a music expression. Unfortunately,
the expression returned depends on the properties of the context it's
evaluated in. I.e., based on the current setting of
Staff.dynamicAbsoluteVolumeFunction it will return a different number of
events in the music expression.

Is this possible?

The background of this is that I'm writing a Scheme function that
generates single-note crescendos by emitting a series of \set
Staff.midiExpression = ... events. Currently I've written a Scheme
function that's able to generate these events; however, it requires me
to specify numerical starting / ending values for midiExpression. I'd
like to be able to specify dynamics instead of numerical values, and
have the Scheme function automatically look up the numerical values
based on the current volume function defined for the Staff.

However, so far I haven't been able to figure out how to read the Staff
properties except using \applyContext with a lambda, and AFAICT it's not
possible to return a music expression from this lambda?

Or is there another (hopefully simpler?) way to achieve what I want?

--T
Steven Weber | 25 Jul 22:45 2016
Picon

Making a multi measure rest shorter

I’ve found lots of various ways to make a multi measure rest longer, but I’d like to make one shorter.  I’m trying to typeset a piece with a cadenza, and the standard \cadenzaOn and Off have some issues I haven’t figured out how to work around yet (specifically, bar lines in the cadenza keep showing up in the parts, and I just want the standard single measure of rest), so I thought I’d do it manually.  Everything looks great in the score, but when I do a part, I get a gigantic MMR.  I tried modifying the X-extent of the MMR, but that only seems to affect the “cadenza” text applied to the bar.

 

Any clever ways of persuading LilyPond to make a MMR bar shorter instead of longer?

 

Thanks!

 

--Steven

Attachment (example.ly): application/octet-stream, 689 bytes
_______________________________________________
lilypond-user mailing list
lilypond-user <at> gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user
David Wright | 25 Jul 21:01 2016
Picon

Setting beams with new \time 4/4 command

I like being able to type   \time 2,2,2,2 8/8
but is there a way to specify the same beaming pattern
as briefly when it's really 4/4, so I don't get groups
of four quavers?

Cheers,
David.
Mario Moles | 25 Jul 20:35 2016
X-Face
Picon

OT: Barrios - Una limosna

https://www.youtube.com/watch?v=20LtiaBra7M
--

oiram/bin/selom

Da ognuno secondo le proprie capacità ad ognuno secondo i propri bisogni.

MIB-kernellinux-tester

http://mariomoles.altervista.org/

Linux

MIB Lilypond Frescobaldi Rosegarden

_______________________________________________
lilypond-user mailing list
lilypond-user <at> gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user
Urs Liska | 25 Jul 16:44 2016
Gravatar

Retrieving 'tweaks from a grob

Hi all,

in the ScholarLY package we're attaching a (newly defined) property
'input-annotation to a grob, either through an implicit \once \override
or a \tweak, depending on the invocation syntax:

The attached file
    annotate.ly
shows both ways, first the override, then the tweak. Today I finally
realized that the "tweaked" ones are not processed properly, that is,
while they are attached to the grob they aren't retrieved in the later
engraver processing.

The output of \displayMusic (attachment display-music) shows the
different ways the annotations are attached to the grobs:

The first one provides an explicit override, and so 'input-annotation is
a property of the following note. This can be retrieved with
ly:grob-property (which works in
https://github.com/openlilylib/scholarly/blob/master/annotate/engraver.ily#L66).

The second one is the result of an implicit \tweak where it is fond in
the 'tweaks property of the music expression.

So, my question is: if I'm iterating over the grobs in an engraver's
acknowledger (as per the link above), how can I first determine if the
grob('s music) has a 'tweaks property and second retrieve that property?
I have been able to retrieve the thing through selecting from a
ly:grob-alist-chain, but that seems cumbersome and error-prone. There
must be an easier way. However, ly:music-property which should be the
way to go here doesn't seem possible because I (think I) can't reference
the "music" argument here.

OMG, I have the impression this request is completely uncomprehensible ...

Best
Urs
Attachment (annotate.ly): text/x-lilypond, 341 bytes
(make-music
  'SequentialMusic
  'elements
  (list (make-music
          'SequentialMusic
          'elements
          (list (make-music
                  'NoteEvent
                  'tweaks
                  (list (list 'input-annotation
                              (list (quote input-file-name) "document.ly")
                              (cons (quote context-id) "tmpBD7bwR")
                              (cons 'location
                                    #<location /tmp/frescobaldi-qBazyK/tmpBD7bwR/document.ly:6:3>)
                              (cons (quote type) (quote critical-remark))
                              (cons (quote message) "Test")))
                  'duration
                  (ly:make-duration 2)
                  'pitch
                  (ly:make-pitch 0 0))
                (make-music
                  'NoteEvent
                  'pitch
                  (ly:make-pitch 0 1)
                  'duration
                  (ly:make-duration 2))))))

(make-music
  'SequentialMusic
  'elements
  (list (make-music
          'SequentialMusic
          'elements
          (list (make-music
                  'ContextSpeccedMusic
                  'context-type
                  'Bottom
                  'element
                  (make-music
                    'OverrideProperty
                    'once
                    #t
                    'pop-first
                    #t
                    'grob-value
                    (list (list (quote input-file-name) "document.ly")
                          (cons (quote context-id) "tmpBD7bwR")
                          (cons 'location
                                #<location /tmp/frescobaldi-qBazyK/tmpBD7bwR/document.ly:6:3>)
                          (cons (quote type) (quote critical-remark))
                          (cons (quote message) "Test"))
                    'grob-property-path
                    (list (quote input-annotation))
                    'symbol
                    'NoteHead))
                (make-music
                  'NoteEvent
                  'duration
                  (ly:make-duration 2)
                  'pitch
                  (ly:make-pitch 0 0))))
        (make-music
          'NoteEvent
          'pitch
          (ly:make-pitch 0 1)
          'duration
          (ly:make-duration 2))))
_______________________________________________
lilypond-user mailing list
lilypond-user <at> gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user
Malte Meyn | 25 Jul 11:35 2016
Picon

tuplets in compound meter

Hi list,

I’m setting Sriabin’s “Vers la flamme” in LilyPond. This piece in 9/8 
contains tuplets where 5 quarter notes replace 9 eights, or 4 and a half 
quarters. But of course I cannot write \tuplet 5/4½ or \tuplet 5/(9/2). 
\tuplet 10/9 won’t help because it prints the numerator 10.

I could do something like
   \tuplet 5/9 \scaleDurations 1/2 { r4 ... }
or
   \tuplet 5/9 { r4*1/2 ... }
but wouldn’t it be nice to have a version of tuplet that works better 
with compound meter? \tuplet 5/4½ is a special example but \tuplet 2/1½ 
is more common (it is often written as \tuplet 2/3 but I’ve seen already 
some editions that follow what Peter calls the “mathematical rule” at 
http://lilypondblog.org/2014/09/how-to-write-readable-tuplets/ strictly).

I don’t have an idea for a good syntax here, any suggestions?

Malte

_______________________________________________
lilypond-user mailing list
lilypond-user <at> gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user
Federico Bruni | 25 Jul 08:59 2016

lilypond-book: warning: cannot detect textwidth from LaTeX

Hi folks

I've searched the archives but couldn't find an answer to this problem.

I have a file.lytex file which contains these lines:

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\documentclass[a4paper]{article}
\usepackage[utf8]{inputenc}

\begin{document}

\lilypondfile[noindent,line-width=15\cm]{23.10.63.ly}

\end{document}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

I compile it with the below command. What's wrong with it?
I set the width of the lilypond file, while the document width is 
already set by \documentclass. What else is missing?

Thanks
Federico

$ make
lilypond-book --include=/home/fede/Documenti/spartiti/ly --output=out 
file.lytex;
lilypond-book (GNU LilyPond) 2.19.45
Reading file.lytex...
Running `latex' on file `/tmp/tmphleGw3.tex' to detect default page 
settings.

lilypond-book: warning: Unable to auto-detect default settings:
latex: /home/fede/.local/lilypond/usr/lib/libz.so.1: no version 
information available (required by /lib64/libpng16.so.16)
latex: /home/fede/.local/lilypond/usr/lib/libjpeg.so.62: no version 
information available (required by /lib64/libpoppler.so.58)
latex: /home/fede/.local/lilypond/usr/lib/libtiff.so.5: no version 
information available (required by /lib64/libpoppler.so.58)
latex: /home/fede/.local/lilypond/usr/lib/libstdc++.so.6: version 
`CXXABI_1.3.9' not found (required by /lib64/libpoppler.so.58)

lilypond-book: warning: cannot detect textwidth from LaTeX
Dissecting...
lilypond-book: error: file not found: 23.10.63.ly

Traceback (most recent call last):
  File "/home/fede/.local/lilypond/usr/bin/lilypond-book", line 789, in 
?
    main ()
  File "/home/fede/.local/lilypond/usr/bin/lilypond-book", line 772, in 
main
    chunks = do_file (files[0])
  File "/home/fede/.local/lilypond/usr/bin/lilypond-book", line 611, in 
do_file
    chunks = find_toplevel_snippets (source, global_options.formatter)
  File "/home/fede/.local/lilypond/usr/bin/lilypond-book", line 362, in 
find_toplevel_snippets
    snip = klass (type, m, formatter, line_number, global_options)
  File 
"/home/fede/.local/lilypond/usr/share/lilypond/current/python/book_snippets.py", 
line 825, in __init__
    global_options.include_path, global_options.original_dir)).read ()
  File 
"/home/fede/.local/lilypond/usr/share/lilypond/current/python/book_base.py", 
line 27, in find_file
    exit (1)
TypeError: 'str' object is not callable
Makefile:20: recipe for target 'file.pdf' failed
make: *** [file.pdf] Error 1
erik | 25 Jul 01:24 2016
Picon

bis

Hi List,

Does Lilypond have a built-in way of making "bis" repeats? I.e. a horizontal bracket over one or a few measures with the word "bis", indicating that the section is to be played twice.

Regards
Erik

_______________________________________________
lilypond-user mailing list
lilypond-user <at> gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user
Alberto Simões | 24 Jul 16:37 2016
Picon

Adding space between staves and Dynamics

Hi

How can I add a little more space between the Dynamics and the lower staff upper lyrics? (see attach).

The group can be resumed as:

  \new ChoirStaff <<
      \new Staff = "staffu" <<
        \new Voice = "melA" \upA
        \new Voice = "melB" \upB
      >>
    \new Lyrics   \with { alignAboveContext = "staffu" } {\lyricsto melA \text}
    \new Lyrics  {\lyricsto melB \text }

    \new Dynamics{  ... }

      \new Staff = "staffd" <<
        \new Voice = "melC" \lowA
        \new Voice = "melD" \lowB
      >>
      \new Lyrics   \with { alignAboveContext = "staffd" }  {\lyricsto melC \text}
      \new Lyrics {\lyricsto melD \textD             }
  >>

Thanks
ambs
_______________________________________________
lilypond-user mailing list
lilypond-user <at> gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user
Dr. Raphael D. Thöne | 24 Jul 11:25 2016

Question concerning my code

> I’m not top posting


Hi,

as a newbie, I probably do something very „simple“ wrong but my code works until the lower voice in the left hand. Then I receive the following error message:

Starting lilypond 2.18.2 [Tylam-Susato-c-1500-c-1564-Pavane.ly]...
Processing `/var/folders/6q/lvl_dtbx73b7605lwv57cd440000gn/T/frescobaldi-irqWsH/tmpIuPrL5/Tylam-Susato-c-1500-c-1564-Pavane.ly'
Parsing...

\layout {}
}

fatal error: failed files: "/var/folders/6q/lvl_dtbx73b7605lwv57cd440000gn/T/frescobaldi-irqWsH/tmpIuPrL5/Tylam-Susato-c-1500-c-1564-Pavane.ly"
Exited with return code 1.


What is wrong in my code? Curly Braces wrong set?
Thanks,
Raphael.

\version "2.18.2"


\header{

  title = "Pavane"

  subtitle = ""
  composer = "Tylman Susato"
  enteredby = "RT"
  }
  
 \score {

% Relatives C'' für rechte Hand
\relative c''

% Erzeugen einer Staff Group
  \new StaffGroup <<
 % neues System
  \new Staff <<
    % Oberstimme
    \new voice = "first"
      {
         \voiceOne
          \clef treble
          \time 2/2
          c2. b4   % m1
          a c2 b8 a   % m2
          b4. a8 b c b a  % m3
          b2. b4  % m4
          a4. g8 a b a4~ % m5
          a c b a  % m6
          gis4. fis8 gis a gis fis % m7
          gis2. a8 b % m8
          c2. b4 % m9
          a4 c2 b8 a  % m10
          b4. a8 b c b a % m11
          b c d c b4 a % m12
          gis8 a b gis a4 fis4 % m13
          gis8 e a4~a8 gis16 fis a8 [gis] % m14
          a2. a4  % m15
          a2 a2 % m16
}

     % Oberstimme
      \new Voice = "second"
      {
        \voiceTwo
         e2. d4 % m1
         c d e fis % m2
         g1~ % m3
         g2. g4 % m4
         e1 % m5
         f4 e g d % m6
         e1~ % m7
         e~ % m8
         e2. d4 % m9
         c d e fis % m10
         g1~ % m11
         g2~g8 f e d  % m12
         e2 a, % m13
         e'4 d e2 % m14
         cis2. cis4 % m15
         cis2 cis % m16
      }
  >>

% Relatives c für linke Hand
\relative c
\new Staff <<


\new Voice = "first"
{
\clef bass  
\voiceOne
a2. b4 % m1
c a c2 % m2
d4. c8 d e d c % m3
d2. d4 % m4
c4. b8 c d c b  % m5
c2 d4 a  % m6
b4. a8 b c b a % m7
b2. e4 % m8
a,2. b4 % m9
c4 a4 c2 % m10
d4. c8 d e d4~ % m11
d2. c4 % m12
b4 e c d  % m13
b a b2 % m14
\oneVoice
a2. a4 % m15
a2 a % m16
}

\new Voice = "second"
{
\voiceTwo
  
}
>>




\layout {}
 \midi {
 \tempo 2 = 60
 }
_______________________________________________
lilypond-user mailing list
lilypond-user <at> gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user
Dr. Raphael D. Thöne | 24 Jul 11:23 2016

Question as well

I’m not top posting


Hi,

as a newbie, I probably do something very „simple“ wrong but my code works until the lower voice in the left hand. Then I receive the following error message:

Starting lilypond 2.18.2 [Tylam-Susato-c-1500-c-1564-Pavane.ly]...
Processing `/var/folders/6q/lvl_dtbx73b7605lwv57cd440000gn/T/frescobaldi-irqWsH/tmpIuPrL5/Tylam-Susato-c-1500-c-1564-Pavane.ly'
Parsing...

\layout {}
}

fatal error: failed files: "/var/folders/6q/lvl_dtbx73b7605lwv57cd440000gn/T/frescobaldi-irqWsH/tmpIuPrL5/Tylam-Susato-c-1500-c-1564-Pavane.ly"
Exited with return code 1.


What is wrong in my code? Curly Braces wrong set?
Thanks,
Raphael.

\version "2.18.2"


\header{

  title = "Pavane"

  subtitle = ""
  composer = "Tylman Susato"
  enteredby = "RT"
  }
  
 \score {

% Relatives C'' für rechte Hand
\relative c''

% Erzeugen einer Staff Group
  \new StaffGroup <<
 % neues System
  \new Staff <<
    % Oberstimme
    \new voice = "first"
      {
         \voiceOne
          \clef treble
          \time 2/2
          c2. b4 % m1
          a c2 b8 a % m2
          b4. a8 b c b a % m3
          b2. b4 % m4
          a4. g8 a b a4~ % m5
          a c b a % m6
          gis4. fis8 gis a gis fis % m7
          gis2. a8 b % m8
          c2. b4 % m9
          a4 c2 b8 a % m10
          b4. a8 b c b a % m11
          b c d c b4 a % m12
          gis8 a b gis a4 fis4 % m13
          gis8 e a4~a8 gis16 fis a8 [gis] % m14
          a2. a4 % m15
          a2 a2 % m16
}

     % Oberstimme
      \new Voice = "second"
      {
        \voiceTwo
         e2. d4 % m1
         c d e fis % m2
         g1~ % m3
         g2. g4 % m4
         e1 % m5
         f4 e g d % m6
         e1~ % m7
         e~ % m8
         e2. d4 % m9
         c d e fis % m10
         g1~ % m11
         g2~g8 f e d % m12
         e2 a, % m13
         e'4 d e2 % m14
         cis2. cis4 % m15
         cis2 cis % m16
      }
  >>

% Relatives c für linke Hand
\relative c
\new Staff <<


\new Voice = "first"
{
\clef bass  
\voiceOne
a2. b4 % m1
c a c2 % m2
d4. c8 d e d c % m3
d2. d4 % m4
c4. b8 c d c b % m5
c2 d4 a % m6
b4. a8 b c b a % m7
b2. e4 % m8
a,2. b4 % m9
c4 a4 c2 % m10
d4. c8 d e d4~ % m11
d2. c4 % m12
b4 e c d % m13
b a b2 % m14
\oneVoice
a2. a4 % m15
a2 a % m16
}

\new Voice = "second"
{
\voiceTwo
  
}
>>




\layout {}
 \midi {
 \tempo 2 = 60
 }
 

_______________________________________________
lilypond-user mailing list
lilypond-user <at> gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user

Gmane