Re: Possible bug? Commenting out section causes EOF

2013-11-25 Thread David Kastrup
ryanmichaelmcclure  writes:

> I am working on a multi-part piece. I have all of my parts in one .ly file.
> So, when I want to work on just one, I comment out all other parts using %{
> %}  However, when I go to engrave, I get an error that reads 
>
> /home/ryanmcclure/Compositions/Transcriptions/Holst, Gustav/First Suite In
> E-Flat/Parts.ly:813:69: error: EOF found inside a comment
>   instrument = \markup{ \center-column{ \line {"BASS DRUM, CYMBALS,"
> } \line

Please _always_ remember to state the version of LilyPond you are having
problems with.  I see that this question answered itself already, but
it's actually impossible to pinpoint stuff if you don't give the version
number.  For example, there have been about 4 or 5 different commits
regarding EOF behavior since version 2.16.0 alone.

-- 
David Kastrup


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


Re: The ultimate slur shaping function.

2013-11-25 Thread Janek Warchoł
2013/11/25 Ryan McClure :
> I like what I see!!! :) If there's one thing that I spend the most time on,
> it's modifying slurs, especially on Schenker graphs. However, there's one
> question I have. You mentioned that using \shape would apply to all
> following slurs.

To be precise, only when you use "override-like" syntax \shape can
affect multiple slurs (see p.6 of pdf).

> Is it possible to use \once \shape?

Of course.

Actually, probably the most convenient way to use \shape is to write
it in yet another way - like a \tweak:

{
  c''1-\shapeII #'((2 . 0)) ( c'')
}

using it like this will only affect one curve.

best,
Janek

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


Re: [ANNOUNCE] Frescobaldi included in MacPorts!

2013-11-25 Thread Davide Liessi
2013/11/7 Davide Liessi :
> Dear Philippe and Hraban,
[...]
> I would like to fix the compilation of portmidi.

I'd like to report to the list that Philippe's problem was solved
removing portmidi and reinstalling it and Hraban's problem was solved
following the advice at https://trac.macports.org/ticket/41522.

Best wishes.
Davide

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


Re: Ambitus not in the beginning

2013-11-25 Thread Kai Lautenschläger

Hello again,

I have been fiddling around with the ideas and solutions I got from you and 
came up with a combination of

1. using a \new Voice with ambitus at a certain point in my score. (Thanx Janek)
2. using the \noAmbitusAtLineEnd definition by David from a post in July.
3. the new \omit function.

The score's first two systems should look like this:

1. System: 2 staves (for tenors + piano without Ambitus) --> "2" in the example 
below
2. System: 6 staves (sopranos, altos, tenors, basses + piano with an ambitus 
for each vocal voice) --> "1" in the example below

The linebreak is within a measure, letting the 2. system start with an upbeat.

As you can see in the following not so tiny example inserting the ambitus makes 
the \RemoveEmptyStaves command ineffective. I suppose that is, because there is 
a ambitus at the end of the first Staff in the 1. Voice (unvisible due to 
\noAmbitusAtLineEnd). 

Is there any way to remove the empty first line never the less?

would be thrilled about any hints…

best regards,
Kai


--8<--SNIPP--
 \version "2.17.95"

noAmbitusAtLineEnd = {
 \override AmbitusNoteHead #'before-line-breaking =
  #(lambda (grob)
(if (and (ly:item? grob) (= (ly:item-break-dir grob) -1))
(ly:grob-suicide! grob)))

 \override AmbitusLine #'before-line-breaking =
  #(lambda (grob)
(if (and (ly:item? grob) (= (ly:item-break-dir grob) -1))
(ly:grob-suicide! grob)))

 \override AmbitusAccidental #'before-line-breaking =
  #(lambda (grob)
(if (and (ly:item? grob) (= (ly:item-break-dir grob) -1))
(ly:grob-suicide! grob)))
} % end \noAmbitusAtLineEnd

#(set-global-staff-size 14)
\paper { 
  tagline = "" 
  #(set-paper-size "a7") 
} % end \paper

\score { << 
  \new Staff = "StaffOne" {
\relative { 
  \set Staff.shortInstrumentName = #'"1" 
  R1 \omit r2 \omit r4 
  \bar "||" \break a'4 b c d e 
 } % end \relative
  } % end StaffOne
  \new Staff = "StaffTwo" {
\relative { 
  \set Staff.instrumentName = #'"2" 
  \set Staff.shortInstrumentName = #'"2" a'1^"W/O ambitus in 1st staff/2nd 
system" a2. 
  \new Voice \with { \consists "Ambitus_engraver" } { a4 b c d e } 
} % end \relative
  } >> % end StaffTwo
  \layout {
\context { 
  \Score \noAmbitusAtLineEnd
} % end \context Score
\context { 
  \Staff \RemoveEmptyStaves \override VerticalAxisGroup #'remove-first = 
##t 
} % end \context Staff
  } % end \layout
} % end \score

\score { << 
  \new Staff = "StaffOne" {
\relative { 
  \set Staff.instrumentName = #'"1" 
  \set Staff.shortInstrumentName = #'"1" 
  R1^"WITH ambitus in 1st staff/2nd system" \omit r2 \omit r4 \bar "||" 
\break 
  \new Voice \with { \consists "Ambitus_engraver" } { a'4 b c d e } }  %%%  
<< here is the change
  } % end StaffOne
  \new Staff = "StaffTwo" {
\relative { 
  \set Staff.instrumentName = #'"2" 
  \set Staff.shortInstrumentName = #'"2" a'1 a2. 
  \new Voice \with { \consists "Ambitus_engraver" } { a4 b c d e } }
  } >> % end StaffTwo
  \layout {
\context { 
  \Score \noAmbitusAtLineEnd 
} % end \context Score
\context { 
  \Staff \RemoveEmptyStaves \override VerticalAxisGroup #'remove-first = 
##t 
} % end \context Staff
  } % end \layout
} % end \score
--8<--SNIPP--

> Am 24.11.2013 um 13:02 schrieb David Kastrup :
> 
>> Kai Lautenschläger  writes:
>> 
>>> Hi David,
>>> 
>>> thanks for your reply.
>>> 
>>> Am 24.11.2013 um 12:26 schrieb David Kastrup :
>>> 
 "Dr. med. Kai Lautenschläger"  writes:
 
> Dear list,
> 
> sorry to ask again and I hope this time it will not be something
> obviously explained in the manual. Is there a way to insert ambitus at
> the beginning of a staff, that is not the first staff of the score?
> 
> A piece I am doing starts of with solo voice and organ and later the
> choir sets in with the solo staff being taken over by the tenors. I
> would like to add an ambitus in each choir voice, when it first
> appears (the empty lines in the first two systems before are not
> shown).
 
 Just use an ambitus engraver in each of the tenor voices (one with an
 X-offset)?
>>> 
>>> I understand, but that not solve my problem. I would like an ambitus
>>> in the n-th system of a score instead of at the beginning. How do I go
>>> about that?
>> 
>> <<
>>  { \skip 1*n \new Voice = "tenor_I" \with { \consists "Ambitus_engraver" } 
>> ...
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: predicate pitch-or-music? - getting rid of ##{ #} ?

2013-11-25 Thread David Kastrup
Thomas Morley  writes:

> 2013/10/17 David Kastrup :
>> David Kastrup  writes:
>>
>>> Thomas Morley  writes:
>>>
 I tried to create a function which should accept a pitch _or_ music.
 So I defined a pitch-or-music? predicate:

 #(define (pitch-or-music? x)
   (or (ly:pitch? x) (ly:music? x)))

>>> it will not work.  However, the predicate does not make all that much
>>> sense since every pitch is also valid music.  If we fastforward a few
>>> months until pitch? is no longer special-cased,
>>
>> More like a year.
>>
>> Issue 3618 http://code.google.com/p/lilypond/issues/detail?id=3618>
>
> I didn't apply your patch so far, though, it sounds great.

Well, it's in 2.17.29.  One quirk less.

-- 
David Kastrup

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


Re: \book question

2013-11-25 Thread Eluze
胡海鹏 - Hu Haipeng wrote
> Hello,
>   I'm combining two movements of my orchestral suite, but just met a
> frustrating problem. When I add a \book to the whole score, the formatting
> becomes messy, and there comes lots of warnings saying can't fit music in
> page. The attached is the first movement, and if you remove the \book { },
> all will be ok. Why?

hi

first I omitted the midi part.

then I converted to the 2.17.96 which is what I have installed.

and finally I moved /#(set-global-staff-size 14.45)/ out of the \book into
the top-level context and there were no more warnings.

is there a reason why you put it inside the \book?

Eluze




--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/book-question-tp154389p154393.html
Sent from the User mailing list archive at Nabble.com.

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


Re: The ultimate slur shaping function.

2013-11-25 Thread Ed Gordijn

Hi Janek,


Please test the functions and  send me your opinions and feedback.

> Maybe I could improve them even more :-)

This is a very nice function you have made. But I get unexpected results 
when I use a rehearsal mark.


Please see the included snippet.

Greetings, Ed


ShapeSlur.pdf
Description: Adobe PDF document
\version "2.17.96"

\include "shapeII-definition.ily"

\markup {
  Default output
}

{   \clef "G"
\key f \major
\time 3/4

\relative c'' {
r4 r4 c8( c'8
  | bes8 a g f e f)

  | r4 r4 c8( c'8
  \mark \default
  | bes8 a g f e f)
}
}

\markup  {
  With shapeII: the first slur is ok but the second goes up
}

{   \clef "G"
\key f \major
\time 3/4

\relative c'' {  
  | \shapeII #'((h)(p 80 0.4)(p 25 0.15)()) Slur
r4 r4 c8( c'8
  | bes8 a g f e f)
  
  | r4 r4 c8( c'8
  \mark \default
  | bes8 a g f e f)
}
}

\layout {
  indent = 0\mm
  ragged-right = ##t
}


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


Re: The ultimate slur shaping function.

2013-11-25 Thread SoundsFromSound
Janek Warchoł wrote
> Hi,
> 
> 2013/11/25 SoundsFromSound <

> soundsfromsound@

> >:
>> Janek,
>>
>> I'm trying to test this out but I'm getting an error in my log:
>> warning: Ignoring non-music expression
>> \shapeII
>>  #'((3 . 0))
>>
>> How should I proceed, what's the fix? :)
> 
> I'm sorry, I suppose my announcement was confusing.  \shapeII isn't
> yet available in any official LilyPond release - right now it's just a
> snippet, so you have to \include the file with \shapeII definition in
> your score to be able to use it.
> 
> To clarify things: in the attachments you will find a file with
> \shapeII definition (this is what you need to include), and another
> one with \shapeII usage examples.  There are also two files with slur
> attachment function (definition and examples) - this function is
> independent from \shapeII.
> 
> hth,
> Janek
> 
> ___
> lilypond-user mailing list

> lilypond-user@

> https://lists.gnu.org/mailman/listinfo/lilypond-user
> 
> 
> shapeII-definition.ily (15K)
> ;
> shapeII-examples.ly (36K)
> ;
> slur-attach-definition.ily (7K)
> ;
> slur-attach-examples.ly (4K)
> ;

Thanks for clarifying that! 



-
composer | sound designer 
LilyPond Tutorials (for beginners) --> http://bit.ly/bcl-lilypond
--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/The-ultimate-slur-shaping-function-tp154366p154395.html
Sent from the User mailing list archive at Nabble.com.

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


LilyPond/Android

2013-11-25 Thread Michel Camiré
Is it possible to install LilyPond on Android without rooting my device ?

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


Re: LilyPond/Android

2013-11-25 Thread Federico Bruni
2013/11/25 Michel Camiré 

> Is it possible to install LilyPond on Android without rooting my device ?
>
>
>
I think it's the third time you ask the same question. Have you seen the
replies?
http://lists.gnu.org/archive/html/lilypond-user/2013-11/msg00809.html
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


formatting a text before the score

2013-11-25 Thread olicha
Hi,
In order to give the context of a short waltz I wrote for a performance of a
play by Chekhov, I am trying to insert three cues of the play before the score.
Here is my code:
\markup  { \abs-fontsize #12
  \column {
\vspace #1
\wordwrap {LIOUBOV On dirait qu'il y a de la musique quelque
part.\italic {(Elle écoute.)}
}
\wordwrap {GAÏEV C'est notre fameux orchestre juif. Tu te rappelles,
quatre violons, une flûte et une contrebasse. 
}
\wordwrap {LIOUBOV Tiens, il existe toujours! Il faudrait l'inviter, à
l'occasion organiser une petite soirée. 
}
\left-align {\line { \italic {Anton Tchekhov}}}
  }
}

two problems:
- line spacing between two lines of a wrapped line (Gaiev's cue) is bigger
than between independent lines. I cannot find how to modify that.
- I'd like to right align the author's name but writting "right" instead of
"left" just push it further to the left and it gets clipped.

Thank for any help



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


Re: formatting a text before the score

2013-11-25 Thread Ryan McClure
I'm working on the first problem still. However, give this a try for the 
name:


\markup{ \fill-line{ \line{ } \line { \italic{Anton Tchekhov


Basically, this fills an entire line. By having two lines inside the 
fill-line, it spaces one on the left and one on the right. The first one 
is empty, hence the { }. The second one, right-aligned, is the name



I'll get back to you as soon as I figure out the top part.

By the way, what version of LilyPond are you running?


-Ryan McClure



On 11/25/2013 01:21 PM, olicha wrote:

Hi,
In order to give the context of a short waltz I wrote for a performance of a
play by Chekhov, I am trying to insert three cues of the play before the score.
Here is my code:
\markup  { \abs-fontsize #12
   \column {
 \vspace #1
 \wordwrap {LIOUBOV On dirait qu'il y a de la musique quelque
part.\italic {(Elle écoute.)}
 }
 \wordwrap {GAÏEV C'est notre fameux orchestre juif. Tu te rappelles,
quatre violons, une flûte et une contrebasse.
 }
 \wordwrap {LIOUBOV Tiens, il existe toujours! Il faudrait l'inviter, à
l'occasion organiser une petite soirée.
 }
 \left-align {\line { \italic {Anton Tchekhov}}}
   }
}

two problems:
- line spacing between two lines of a wrapped line (Gaiev's cue) is bigger
than between independent lines. I cannot find how to modify that.
- I'd like to right align the author's name but writting "right" instead of
"left" just push it further to the left and it gets clipped.

Thank for any help



___
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: LilyPond/Android

2013-11-25 Thread Federico Bruni
2013/11/25 Michel Camiré 

> Actually the 2nd time . The answer was to load a Linux emulator on the
> Google store wich requires rooting my device. Rooting is not something I
> want to do currently.
>
>
Please keep the list in Cc.
It's been also suggested to use one of the lilypond web services, like
lilybin.com and similar.

Otherwise, if you don't want to root your device (why not?), buy the ubuntu
phone.
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: formatting a text before the score

2013-11-25 Thread ryanmichaelmcclure
Try this for the first part:

\markup{ 
  \abs-fontsize #12 \column { 
\vspace #1 \wordwrap {LIOUBOV On dirait qu'il y a de la musique quelque
part.\italic {(Elle écoute.)}
}
\wordwrap {GAÏEV C'est notre fameux orchestre juif. Tu te rappelles,
quatre violons, une flûte et une contrebasse. 
}
\hspace #0 
\wordwrap {LIOUBOV Tiens, il existe toujours! Il faudrait l'inviter, à
l'occasion organiser une petite soirée. 
}
  }
}

Putting \hspace #0 puts an invisible space there to keep them from
colliding. So, the final product would be:

\markup{ 
  \abs-fontsize #12 \column { 
\vspace #1 \wordwrap {LIOUBOV On dirait qu'il y a de la musique quelque
part.\italic {(Elle écoute.)}
}
\wordwrap {GAÏEV C'est notre fameux orchestre juif. Tu te rappelles,
quatre violons, une flûte et une contrebasse. 
}
\hspace #0 
\wordwrap {LIOUBOV Tiens, il existe toujours! Il faudrait l'inviter, à
l'occasion organiser une petite soirée. 
}
  }
}
\markup{ \fill-line{ \line{ } \line { \italic{Anton Tchekhov

Let us know if you need anything else! :)



-
Ryan McClure

Luna Music Engraving
www.lunamusicengraving.com
--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/formatting-a-text-before-the-score-tp154399p154402.html
Sent from the User mailing list archive at Nabble.com.

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


Re: LilyPond/Android

2013-11-25 Thread Martin Tarenskeen



On Mon, 25 Nov 2013, Federico Bruni wrote:


2013/11/25 Michel Camiré 

  Actually the 2nd time . The answer was to load a Linux emulator on the 
Google store wich requires rooting my device. Rooting is not
  something I want to do currently.


Please keep the list in Cc.
It's been also suggested to use one of the lilypond web services, like 
lilybin.com and similar.

Otherwise, if you don't want to root your device (why not?), buy the ubuntu 
phone.


The option to install and run Linux on a rooted Android device, and then 
run Lilypond on it sounds interesting in theory. But has someone actually 
tried this in real life situations? It sounds to me that this requires a 
certain amount of RAM and diskspace and a fast processor to be seriously 
usable. My low-budget Android phone won't work for sure. My Nexus 7 might 
work, maybe?


--

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


invert the colors (to print white score on black paper)

2013-11-25 Thread Federico Bruni
Is it possible in lilypond?
Or should I export to SVG and then invert the colors with Inkscape? I've
tried to play with the Negative effect of inkscape but I can't make it work
(I'm quite ignorant in vecto graphics).

Any help appreciated.
Thanks
Federico
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: invert the colors (to print white score on black paper)

2013-11-25 Thread ryanmichaelmcclure
Give this a try. I used some snippets in the LSR to apply a giant markup
black background and changed everything to white.

\version "2.17.29"

#(define (override-color-for-all-grobs color)
  (lambda (context)
   (let loop ((x all-grob-descriptions))
(if (not (null? x))
 (let ((grob-name (caar x)))
  (ly:context-pushpop-property context grob-name 'color color)
  (loop (cdr x)))

\relative c'' {
  \applyContext #(override-color-for-all-grobs (x11-color 'white))
  c4\pp\< d e f
  \grace { g16[( a g fis]) } g1\ff\!
 % place in bottom layer
 -\tweak #'layer #-1
 -\markup {
   \with-dimensions #'(0 . 0) #'(0 . 0)
   % specify color
   \with-color #(rgb-color 0 0 0)
   % specify size
   \filled-box #'(-1000 . 1000) #'(-1000 . 4000) #0
 }
}



-
Ryan McClure

Luna Music Engraving
www.lunamusicengraving.com
--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/invert-the-colors-to-print-white-score-on-black-paper-tp154404p154405.html
Sent from the User mailing list archive at Nabble.com.

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


Re: The ultimate slur shaping function.

2013-11-25 Thread Janek Warchoł
2013/11/25 Ed Gordijn :
> This is a very nice function you have made. But I get unexpected results
> when I use a rehearsal mark.
>
> Please see the included snippet.

Very interesting!  I think this is a bug in LilyPond, not my function
- i'll talk about this with other devs.
Fortunately other methods (e.g. an ordinary offset) work correctly.
Thanks for the report!

Janek

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


Re: LilyPond/Android

2013-11-25 Thread Johan Vromans
Martin Tarenskeen  writes:

> The option to install and run Linux on a rooted Android device, and
> then run Lilypond on it sounds interesting in theory. But has someone
> actually tried this in real life situations? It sounds to me that this
> requires a certain amount of RAM and diskspace and a fast processor to
> be seriously usable.

Depends on your needs. A couple of gigs (external) SDcard is cheap, and
modern phones often have 1GB of RAM or more. Processing a reasonable
6-8 page score could take a couple of minutes.

But a more interesting question is: why would one want to do this? I
carry most of my scores in PDF format on my 10.1" tablet, but I see no
added value in being able to run the .ly files through LP on the tablet.

Maybe the OP can shed some light on the backgrounds of his question?

-- Johan

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


Re: How to best do chord/melody arrangement

2013-11-25 Thread Ian Brown
Thanks for the info. I'll have a dig around in the scheme stuff.

Ian



On 25 November 2013 00:08, Kieren MacMillan
wrote:

> Hi Ian,
>
> (Please “Reply All”, so that a copy goes to the list and not just to the
> originator of a given email.)
>
> > that inprovisationOn/Off thing is pretty cool as it gives me the 'slash'
> I want.I'll go investigate that some more in the manual.
> > The problem is though that it still splits what is a single piece of
> music into 2 sections (chords and notes) and when writing it, you need to
> be careful with all the spaces in the chords section to make sure it all
> lines up. Ideally I would just like to specify the chord name in the
> improvisation section above.
>
> 1. Look for “parallelMusic” — there might be something there that can help
> you.
> 2. Perhaps a Scheme function or engraver could be written to take a single
> input and spit out what you want — that’s far beyond my abillities, so
> you’ll want to ask around (and possibly offer a bounty).
>
> Hope this helps!
> Kieren.
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Having trouble with an old snippet--what to do?

2013-11-25 Thread ryanmichaelmcclure
I'm messing with the snippet found here:

http://lilypond.1069038.n5.nabble.com/rhythm-template-function-td33662.html

I found the snippet originally on the LSR: 

http://lsr.dsi.unimi.it/LSR/Snippet?id=465

Looking on the mailing list message, it was created on 2.11.45. I tried to
update the file to 2.17.29, but it still won't work. I'm getting this error:

Parsing.../tmp/frescobaldi-p52m4v/tmpN5eMTc/document.ly:41:17: In procedure
car in expression (car p):
/tmp/frescobaldi-p52m4v/tmpN5eMTc/document.ly:41:17: Wrong type (expecting
pair): ()

I'm still learning Scheme and am not sure what's wrong. Has anyone messed
with this snippet lately?



-
Ryan McClure

Luna Music Engraving
www.lunamusicengraving.com
--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/Having-trouble-with-an-old-snippet-what-to-do-tp154411.html
Sent from the User mailing list archive at Nabble.com.

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


Re: Having trouble with an old snippet--what to do?

2013-11-25 Thread Jay Anderson
On Mon, Nov 25, 2013 at 7:18 PM, ryanmichaelmcclure
 wrote:
> I'm messing with the snippet found here:
>
> http://lilypond.1069038.n5.nabble.com/rhythm-template-function-td33662.html
>
> I found the snippet originally on the LSR:
>
> http://lsr.dsi.unimi.it/LSR/Snippet?id=465
>
> Looking on the mailing list message, it was created on 2.11.45. I tried to
> update the file to 2.17.29, but it still won't work. I'm getting this error:
>
> Parsing.../tmp/frescobaldi-p52m4v/tmpN5eMTc/document.ly:41:17: In procedure
> car in expression (car p):
> /tmp/frescobaldi-p52m4v/tmpN5eMTc/document.ly:41:17: Wrong type (expecting
> pair): ()
>
> I'm still learning Scheme and am not sure what's wrong. Has anyone messed
> with this snippet lately?

I'm not surprised it doesn't work anymore. With recent improvements in
lilypond there is a different technique that you should consider:

pattern = #(define-music-function (parser location p1 p2 p3 p4 p5)
(ly:pitch? ly:pitch? ly:pitch? ly:pitch? ly:pitch?)
#{ $p1 32 $p2 ( $p3 $p4 ) $p5 8 -! #})

...

\pattern c c' e c g  % results in => c32 c'( e c) g8-!

The same can be done with one pitch instead.

-Jay

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


Re: Having trouble with an old snippet--what to do?

2013-11-25 Thread ryanmichaelmcclure
That works excellently! Thanks Jay! It's nice to get help from the guy who
wrote the snippet. :)

Jay, did you submit that snippet to the LSR? If you did, would it be
possible to get it updated? It is a wonderful snippet and a HUGE
timesaver!!! :)



-
Ryan McClure

Luna Music Engraving
www.lunamusicengraving.com
--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/Having-trouble-with-an-old-snippet-what-to-do-tp154411p154414.html
Sent from the User mailing list archive at Nabble.com.

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


Re: lilypond and midi

2013-11-25 Thread Federico Bruni
Il 26/nov/2013 05:19 "Stephanie Mitchell"  ha
scritto:
>
> Hi all,
> How do I create midi playback using the mac version of lilypond?
> I am a blind musician and would like to check my scores using midi before
printing.
> Thanks,
> Steph
>
> Mitchell Piano Studio
> Phone: 0450354342
> Web: www.mitchellpianostudio.com

Hi Stephanie

Please read this page:
http://lilypond.org/doc/v2.16/Documentation/notation/midi-block

And come back here in case you have any problem.
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user