Re: "\includepdf" in LilyPond

2017-12-19 Thread Urs Liska

Hi Knut,


Am 19.12.2017 um 01:22 schrieb Knut Petersen:

Am 18.12.2017 um 21:50 schrieb k...@aspodata.se:

Urs:
...

OTOH: is it possible to have LilyPond trigger an external program
*after* the PDF has been created? I recall getting an answer for a hook
that works at the very end of the engraving process (this should allow
me to write out data into a log file that has only been generated during
the after-line-breaking stage). Is there such a hook to execute after
the PDF has been written?

Something like this should be possible:

$ PATH=~/your_wrappers:$PATH
$ cat ~/your_wrappers/lilypond
#!/bin/sh

/usr/bin/lilypond "$@"
echo Finished, do something
$ lilypond xxx
...
Finished, do something
$

Or use a Makefile, you can look at my workflow if you like:
  http://aspodata.se/git/musik/bin/
  http://aspodata.se/git/musik/include/


Much simpler . Put

#(system "program parameters ...") 

after a book, at the very end of the file or wherever you want to 
execute an external program.


Thanks, this is exactly what I need. I wouldn't have thought it is so 
simple.
With that I can trigger any post-processing script from within the 
LilyPond document :-)


Best
Urs



Knut


___
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


mkvideo, sync to recorded audio

2017-12-19 Thread Christian Alpen

Hi,

once again I have a question concerning generating video with 
mkvideo-lily-diff:


I want to synchronize the video to a manually recorded audio track with 
rubato and tempo variations.
Somewhere I read about how to generate an extra file containing these 
tempo informations (using extra software
to create scores from contemporary and not yet notated music) and how to 
use it to extract these information for

mkvideo generating the video.

The problem is: After googling a lot around I cannot find this guide again.
So I'm looking for help on how this is done or, if anyone knows or 
remembers, a link to this guide.


Can anyone help me with this?

Thanks a lot,

Christian


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


Re: mkvideo, sync to recorded audio

2017-12-19 Thread Ben

On 12/19/2017 7:47 AM, Christian Alpen wrote:

Hi,

once again I have a question concerning generating video with 
mkvideo-lily-diff:


I want to synchronize the video to a manually recorded audio track 
with rubato and tempo variations.
Somewhere I read about how to generate an extra file containing these 
tempo informations (using extra software
to create scores from contemporary and not yet notated music) and how 
to use it to extract these information for

mkvideo generating the video.

The problem is: After googling a lot around I cannot find this guide 
again.
So I'm looking for help on how this is done or, if anyone knows or 
remembers, a link to this guide.


Can anyone help me with this?

Thanks a lot,

Christian



Hi Christian,

Do these 2 links help you?

http://lilypond.1069038.n5.nabble.com/Video-generation-bash-script-keeps-sync-in-spite-of-tempo-changes-td194245.html

http://lilypond.1069038.n5.nabble.com/Video-generation-on-linux-systems-Note-and-rests-change-color-td204566.html

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


Re: accedentals

2017-12-19 Thread Vivyan
Thanks very much, yes it was because of the uk setting, i didn't recognise
there was that difference from the instructions I've been reading



--
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


Staves not in sync?

2017-12-19 Thread Vivyan
Gymnopedie_no.ly
  

I'm not sure how to get my staves to line up alongside one another?

Thanks



--
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: Staves not in sync?

2017-12-19 Thread Ben


On 12/19/2017 5:36 PM, Vivyan wrote:

Gymnopedie_no.ly


I'm not sure how to get my staves to line up alongside one another?

Thanks




Staves?
You only have one staff actually explicitly defined in your file, and 
you're not using the <<  >> construct which would then produce 
simultaneous staves :)


That's all you need.


/
//score {//
//    \new Staff {//
//    \time 3/4//
//    \clef treble//
//    \key d \major//
//    \relative

/is what you have at the moment.../
/
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: SlurUp & Down

2017-12-19 Thread Vivyan
How do I cancel double slurs once they're there.. I' can't just use slurup?
Gymnopedie_no.ly
  



--
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: SlurUp & Down

2017-12-19 Thread Urs Liska



Am 20.12.2017 um 00:25 schrieb Vivyan:

How do I cancel double slurs once they're there.. I' can't just use slurup?
Gymnopedie_no.ly



I didn't actually test your file but when you have

\set doubleSlurs = ##t

you can achieve the contrary effect with

\set doubleSlurs = ##f

HTH
Urs





--
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


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


Re: SlurUp & Down

2017-12-19 Thread Ben


On 12/19/2017 6:25 PM, Vivyan wrote:

How do I cancel double slurs once they're there.. I' can't just use slurup?
Gymnopedie_no.ly




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




Hi again,

If you're going to attach an ly file that is fine, however can I ask: in 
addition to just attaching a full score with a brief question, could you 
please at least


* either isolate a section of your input file and place it in the body 
of your message with the question;

* or tell us to look at line numbers xx-yy along with your question?

It's frustratingly time consuming to have to compile, then compile 
again, each time, with each post...the entire input file...and then try 
and scroll through the file, eyeball the appropriate location in the 
entire score file where the question may apply to, then begin to answer 
your question...thank you kindly.



As for double slurs, it's pretty straight-forward.

http://lilypond.org/doc/v2.19/Documentation/notation/expressive-marks-as-curves#slurs

\relative c' {
  \set doubleSlurs = ##t
  4(   )
}

Then use ##f when you're finished, etc.


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


retrying in and out polyphony

2017-12-19 Thread Mike Dean
Since the png pix is too big..
I am engraving a manuscript I wrote a number of years ago, and am having
problems conceptualizing temporary polyphony (2.18 manual, pages 159-160)
 Link:
https://drive.google.com/file/d/0ByAN66y33JJGOHhodExjWjQ5OExFVHJpWmhpenpoZERvQV84/view?usp=sharing

Measures 1,3,5 are chords, while measures 2,4,6 has the temporary polyphony
and trying to fit what I want to do into the example is a struggle...
Mike Dean
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: retrying in and out polyphony

2017-12-19 Thread Carl Sorensen


From: Mike Dean 

Measures 1,3,5 are chords, while measures 2,4,6 has the temporary polyphony and 
trying to fit what I want to do into the example is a struggle...

I use \stemDown to put the stem down and merge it with the chord:

{
  \clef bass
  \time 3/4 
  <<  
\relative c' {
  \once \stemDown c2. |
  c4. bes8 aes bes
} \\
\relative c {
  2.(  |
  2.)
}
  >>
}


HTH,

Carl
 


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


Re: SlurUp & Down

2017-12-19 Thread SoundsFromSound
Simon Albrecht-2 wrote
> On 19.11.2017 23:44, Ben wrote:
>> The log is 100% clean, no errors in LilyPond, but Frescobaldi 
>> color-coded it as 'bad code' error'd. 
> 
> Frescobaldi syntax highlighting isn’t updated during the development 
> cycle, only for stable versions. Can be annoying at times…
> 
> Best, Simon

Oh, I see that now - yes you're right. Thank you for that little tip! I
didn't pick up on that... :)





-
composer | sound designer | asmr artist 
--
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


single Note swell

2017-12-19 Thread Vivyan

just trying this bit of code to instruct a swell for the duration of c2,
this hasn't quite work?
   c2'' { s2 s\< s\> s\! } 



--
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: single Note swell

2017-12-19 Thread Ben

On 12/19/2017 7:21 PM, Vivyan wrote:

just trying this bit of code to instruct a swell for the duration of c2,
this hasn't quite work?
c2'' { s2 s\< s\> s\! }





That code does not compile.

The octave marks go on the other-side,   -->  c''2

Also, what are you trying to do with the S's? Single note? Tied?


\relative c'
{ c''2  ~\< c\!  }


That's how you terminate a hairpin :)

Does this help?

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


Re: single Note swell

2017-12-19 Thread Vivyan
Not quite. I just thought the S's were part of the syntax

I need to score to say: c < >. How can I get it decres as well as what
you've shown me above?



--
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: single Note swell

2017-12-19 Thread Vivyan
Not quite on the score I need it to decres for the duration of the same note.
I thought the S's were part of the syntax.



--
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: single Note swell

2017-12-19 Thread Ben

On 12/19/2017 7:47 PM, Vivyan wrote:

Not quite on the score I need it to decres for the duration of the same note.
I thought the S's were part of the syntax.




Ah yes, indeed you can use spacer notes for that situation, now I 
understand.

Also, make sure you use the << >> as well.

There's a few different ways you can "stretch out" the hairpins, here is 
just one example:


\version "2.19.80"
% spacer rests needed for a cresc + decres. on the same note as below
 \relative c'
{
  \override Hairpin.minimum-length = #10
f1
<< f1 { s4 s4\< s4\> s4\! } >>

}

see attached.





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


RE: Staves not in sync?

2017-12-19 Thread Mark Stephen Mrotek
Vivyan,

When I compile, everything lines up.
The "bass" is missing some measures.

Mark

-Original Message-
From: lilypond-user
[mailto:lilypond-user-bounces+carsonmark=ca.rr@gnu.org] On Behalf Of
Vivyan
Sent: Tuesday, December 19, 2017 2:37 PM
To: lilypond-user@gnu.org
Subject: Staves not in sync?

Gymnopedie_no.ly
  

I'm not sure how to get my staves to line up alongside one another?

Thanks



--
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


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


RE: Staves not in sync?

2017-12-19 Thread SoundsFromSound
Mark Stephen Mrotek wrote
> Vivyan,
> 
> When I compile, everything lines up.
> The "bass" is missing some measures.
> 
> Mark
> 
> -Original Message-
> From: lilypond-user
> [mailto:lilypond-user-bounces+carsonmark=

> ca.rr.com@

> ] On Behalf Of
> Vivyan
> Sent: Tuesday, December 19, 2017 2:37 PM
> To: 

> lilypond-user@

> Subject: Staves not in sync?
> 
> Gymnopedie_no.ly
> ;  
> 
> I'm not sure how to get my staves to line up alongside one another?

So strange, now that I re-compiled it seems to have all the staves correct.
Bizarre. When I first downloaded it, the score only had one staff declared,
and everything else outside.

It does seem aligned now...




-
composer | sound designer | asmr artist 
--
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


Tie shape

2017-12-19 Thread Pieter Terpstra
Dear people,
Another question.
Trying to change the shape of the tie in such a way that the c note becomes 
free from the tie overlap.
The \Shape command works on the lowest tie but not on the next?
To add the \Shape command a second time makes no difference.

Here is the example:
\score {
  \relative c' {
g'16\rest 
  \shape #'((0 . 0) (0 . -1) (0 . -1) (0 . 0)) Tie
  \set tieWaitForNote = ##t
  b,~
  \shape #'((-3 . 0) (0 . -3) (0 . -3) (0 . 0)) Tie
  d~ g~ s8 c ~ s4 
  }
}

Kindly,

   Peter


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


Re: Tie shape

2017-12-19 Thread Ben

On 12/19/2017 8:26 PM, Pieter Terpstra wrote:

Dear people,
Another question.
Trying to change the shape of the tie in such a way that the c note becomes 
free from the tie overlap.
The \Shape command works on the lowest tie but not on the next?
To add the \Shape command a second time makes no difference.

Here is the example:
\score {
   \relative c' {
 g'16\rest
   \shape #'((0 . 0) (0 . -1) (0 . -1) (0 . 0)) Tie
   \set tieWaitForNote = ##t
   b,~
   \shape #'((-3 . 0) (0 . -3) (0 . -3) (0 . 0)) Tie
   d~ g~ s8 c ~ s4 
   }
}



Hi Peter,

If you can't get it to work with the shape, maybe you'd get some results 
with this tiecolumn approach? It's from a while ago, but I remembered 
it...for a rainy day :)


http://lilypond.1069038.n5.nabble.com/Shape-of-individual-ties-in-chords-td158120.html


affect-TieColumn =
#(define-music-function (parser location offsets)(list?)
#{
  \once
    \override TieColumn #'after-line-breaking =
      #(lambda (grob)
        (let* ((ties (ly:grob-array->list (ly:grob-object grob 'ties)))
               (c-ps
                 (map
                   (lambda (tie) (ly:grob-property tie 'control-points))
                   ties)))

      (define (offset-control-points coords offsets)
       (if (null? offsets)
           (car c-ps)
           (map
             (lambda (x y) (coord-translate x y))
             coords offsets)))

       (define (help offs pts new-pts)
         (if (null? offs)
             (reverse new-pts)
             (help (cdr offs) (cdr pts)
               (cons (offset-control-points (car pts) (car offs)) 
new-pts


      (for-each
         (lambda (tie cpts) (ly:grob-set-property! tie 'control-points 
cpts))

         ties
         (help offsets c-ps '()
#})

%% crazy values taken, to show it works
{
  2 ~
  \affect-TieColumn #'( ((0 . -4)  (2 . 3) (4 . 5) (6 . 7));; bottom
                        ((-1 . 0) (0 . 0) (0 . 0) (0 . 0)) ;; middle
                        ((-5 . 3) (0 . 0) (0 . 0) (0 . 0)) ;; top
                                          )
  q
}
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Tie shape

2017-12-19 Thread Andrew Bernard
Hi Pieter,

Apparently ties, although they look almost identical to slurs, use a
different type of machinery internally to produce their shape, and the
\shape functions only partially work. I do not know why the code is
different, but I suppose lilypond 'just grew' and that's how it is. Most
people end up having to use TieColumn techniques in this case.

Others more learned  than I in lilypond internals will no doubt be able to
explain this better.

Ties are not really very perfect in lilypond, and there was an effort to
fix them up, but I understand that project came to end end due to time and
resource matters on the part of the developer.

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


Re: retrying in and out polyphony

2017-12-19 Thread Mike Dean
So far , it has helped!
In this construct, though, do I need to put the meter change in each part
of this system (4/4 in measure 6, 3/4 in measure 7)
(English accidentals used)
<<
\relative c' {
 \once \stemDown c2. | c4. bf8 af bf |
 \once \stemDown c2. | c4. bf8 af bf |
 \once \stemDown c2. |
}
\\
\relative c {
  2.\pp (| 2.)-> \mp \> |
  2.\pp (| 2.)-> \mp \> |
  2.\pp
}
  >>
Next two measures
\time 4/4
c4 c8 bf af gf
---
1

\time 3/4
< e g! c >2 \> < d! f b! >4 | < e g c >4. < f a >8 /mp  

Mike Dean

On Tue, Dec 19, 2017 at 7:03 PM, Carl Sorensen  wrote:

>
>
> From: Mike Dean 
>
> Measures 1,3,5 are chords, while measures 2,4,6 has the temporary
> polyphony and trying to fit what I want to do into the example is a
> struggle...
>
> I use \stemDown to put the stem down and merge it with the chord:
>
> {
>   \clef bass
>   \time 3/4
>   <<
> \relative c' {
>   \once \stemDown c2. |
>   c4. bes8 aes bes
> } \\
> \relative c {
>   2.(  |
>   2.)
> }
>   >>
> }
>
>
> HTH,
>
> Carl
>
>
>
>
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Tie shape

2017-12-19 Thread Pieter Terpstra
Ben wrote:

> If you can't get it to work with the shape, maybe you'd get some results
> with this tiecolumn approach? It's from a while ago, but I remembered
> it...for a rainy day :)
> 
Interesting answer, thank you so much Ben!

Peter


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


Re: Tie shape

2017-12-19 Thread Pieter Terpstra
Andrew Bernard wrote:

> Ties are not really very perfect in lilypond, and there was an effort to
> fix them up, but I understand that project came to end end due to time and
> resource matters on the part of the developer.
> 
Thank you so much for your answer Andrew, maybe a bugfix in the future?

Will now use Tie.column...

Have a great evening.

Peter


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


Re: retrying in and out polyphony

2017-12-19 Thread Mike Dean
In this multi-voice context, I'm not sure where to put the hairpin
decrescendo to not generate a warning

Mike Dean

On Tue, Dec 19, 2017 at 11:36 PM, Mike Dean  wrote:

> So far , it has helped!
> In this construct, though, do I need to put the meter change in each part
> of this system (4/4 in measure 6, 3/4 in measure 7)
> (English accidentals used)
> <<
> \relative c' {
>  \once \stemDown c2. | c4. bf8 af bf |
>  \once \stemDown c2. | c4. bf8 af bf |
>  \once \stemDown c2. |
> }
> \\
> \relative c {
>   2.\pp (| 2.)-> \mp \> |
>   2.\pp (| 2.)-> \mp \> |
>   2.\pp
> }
>   >>
> Next two measures
> \time 4/4
> c4 c8 bf af gf
> ---
> 1
>
> \time 3/4
> < e g! c >2 \> < d! f b! >4 | < e g c >4. < f a >8 /mp  
>
> Mike Dean
>
> On Tue, Dec 19, 2017 at 7:03 PM, Carl Sorensen  wrote:
>
>>
>>
>> From: Mike Dean 
>>
>> Measures 1,3,5 are chords, while measures 2,4,6 has the temporary
>> polyphony and trying to fit what I want to do into the example is a
>> struggle...
>>
>> I use \stemDown to put the stem down and merge it with the chord:
>>
>> {
>>   \clef bass
>>   \time 3/4
>>   <<
>> \relative c' {
>>   \once \stemDown c2. |
>>   c4. bes8 aes bes
>> } \\
>> \relative c {
>>   2.(  |
>>   2.)
>> }
>>   >>
>> }
>>
>>
>> HTH,
>>
>> Carl
>>
>>
>>
>>
>
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user