Re: How to force script (articulation custom function) inside staff ?

2017-03-31 Thread Les Éditions Valmajour - pg

Thanks Malte!
It works well, I didn't notice before the difference in space between 
dashs and dots in different situations.
The only thing is that the size of the dot is bigger in Tenuto+Staccato 
than in Portato.

But I think it can work for me like that.
Thanks again!
Pierre

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


How to force script (articulation custom function) inside staff ?

2017-03-31 Thread Les Éditions Valmajour - pg

Dear list members,
I have to use lots of dots and dashes in a score, so I found a snippet 
 to apply an articulation 
(staccato) function to a long passage. I tried to adapt it for another 
articulation, the one I need (portato, = dot + dash)

It works well, except the positioning: it remains outside the Staff.
I would like to get the same positioning behavior than the default 
articulation (inside the staff)


I found a beginning of solution, but now the dots and dashes don't avoid 
collisions with the staff lines. (cf attached .ly). And I kinda feel 
that \override is not the clean trick.


Do anyone know how I can achieve this?
Thank you!
Best,
/Pierre
\version "2.18.2"

#(define (make-script x)
   (make-music 'ArticulationEvent
 'articulation-type x))

#(define (add-script m x)
   (case (ly:music-property m 'name)
 ((NoteEvent) (set! (ly:music-property m 'articulations)
(append (ly:music-property m 'articulations)
  (list (make-script x
   m)
 ((EventChord)(set! (ly:music-property m 'elements)
(append (ly:music-property m 'elements)
  (list (make-script x
   m)
 (else #f)))

#(define (add-staccato m)
   (add-script m "staccato"))

addStacc = #(define-music-function (parser location music)
  (ly:music?)
  (map-some-music add-staccato music))

%%% 

#(define (make-script x)
   (make-music 'ArticulationEvent
 'articulation-type x))

#(define (add-script m x)
   (case (ly:music-property m 'name)
 ((NoteEvent) (set! (ly:music-property m 'articulations)
(append (ly:music-property m 'articulations)
  (list (make-script x
   m)
 ((EventChord)(set! (ly:music-property m 'elements)
(append (ly:music-property m 'elements)
  (list (make-script x
   m)
 (else #f)))

#(define (add-portato m)
   (add-script m "portato"))

addPortato = #(define-music-function (parser location music)
(ly:music?)
(map-some-music add-portato music))


\paper {
  indent = #30
}

\score {
  <<
\new Staff \with { instrumentName = "defaut" } \relative c'' { g8-.-- a-.-- b-.-- c-.--\downbow d-.-- c-.-- b-.-- a-.--\upbow }
\new Staff \with { instrumentName = "+ \addStacc" } \relative c' { \addStacc { g'8 a b c\downbow d c b a\upbow } }
\new Staff \with { instrumentName = "+ \addPortato" } \relative c' { \addPortato { g'8 a b c\downbow d c b a\upbow } }  
\new Staff \with { instrumentName = "+ \addP + \ov." } \relative c' { \override Staff.Script.padding = #0
  \override Staff.Script.toward-stem-shift = ##t
  \override Staff.Script.quantize-position = ##t
  \addPortato { g'8 a b c\downbow d c b a\upbow }
}
  >>
}___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Different spacings indifferent staves

2017-02-22 Thread Les Éditions Valmajour - pg

Hi Andrew

Thanks for your interest! Yes, I'd like to go further in this. The thing 
is that the solo and piano part are not necessarily corresponding in 
terms of rhythm; the solo starts to play alone some random rhythms on 
the written notes, and after a few seconds the piano starts, with the 
arpeggio, but there is no notion of precise tempo or vertical 
correspondence of rhythms between the 2 instruments.


That's why I'd like have the solo notes at an equal distance to each 
other and the piano arpeggio randomly placed on the staves, but of 
course I can't place it "really" randomly, so lily tries to make 
everything look right, when I just need the opposite :-)


If there is another way to write this ijn Lilypond, I'm very interested!

Pierre


Le 22/02/2017 à 11:21, Andrew Bernard a écrit :

Hello Pierre,

Did you want to pursue this? I did not see any good answer on the list 
but I may have missed it. With all due respect and no criticism 
intended whatsoever, there are a lot of things wrong or strange about 
this score. The different staff sizes may be an issue, and I am 
confused about your use of 7/4 and so on. Is this not a simple case of 
two 32's against 16's? Also, the repeat barlines mess up spacing, as 
they have to be accounted for, and the choice of accidental style also 
gets in the way. If this piece is really as simple as two 32 against 
16's, then proportional spacing can be made to work pretty well.


Let me know if this is worth working on and I will help you out. I 
took some time on it tonight but I need your guidance as to the actual 
musical structure. Do let me know - I am happy to help.


As a side note, I use proportional notation in all my complex work, 
but it is never quite right. Somehow lilypond has a hard time doing 
what we intuitively feel should be simple, even, horizontal spacing. I 
do not fully understand the reasons for this, but there must be some 
deep and difficult underlying layout engine problems that can't be 
solved. Nevertheless, you can get pretty close a lot of the time.



Andrew





On 13 February 2017 at 20:57, Les Éditions Valmajour - pg 
<p...@editions-valmajour.fr <mailto:p...@editions-valmajour.fr>> wrote:


Hello co-listers,

does anyone know if there a way to apply different horizontal
spacings to different staves, whithin the same bar?

In the attached example, the stemless notes are 16ths. I would
like the stemless notes to be strictly evenly spaced, regardless
to what is written in the piano part. I have the feeling that it
can be easily set, but I can't figure out how.

Thank you all!

Pierre


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




--

Facebook : 
https://www.facebook.com/pages/Les-%C3%89ditions-Valmajour/1158579907502169

Notre site internet : http://editions-valmajour.fr

Notre blog : http://blog.editions-valmajour.fr

À bientôt!

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


Re: Different spacings indifferent staves

2017-02-22 Thread Les Éditions Valmajour - pg

Hi Alexander!

The Naudot was engraved with MuseScore, not Lilypond. Only the three 
pieces at the top of the list are done with Lily (the Concertino is not 
ready yet). I read some time ago about that problem, because I wanted to 
do the same for the Chédeville (multiple short pieces sometimes 
connected), but I couldn't find out, at least with my average knowledge 
of the Lilypond possibilities.


Cheers,

Pierre


Le 22/02/2017 à 00:17, Alexander Kobel a écrit :

Hi Pierre,

sorry to hear - I hoped that this might give you the desired result. 
I'm out of other ideas for that problem, unfortunately.


On a different note:  I just had a quick look at your webpage, and 
stumbled across the Dixième Œuvre by Naudot.  In the preview, the 
first page shows something I never managed to typeset with Lily: the 
"suspended" system with the "D.C. al fine" mark.  Am I correct that 
this piece is engraved using Lily, too?  Would you mind sharing how 
you managed to interrupt the system there and, in particular, how you 
could get a new SystemStartBracket for the rest of the line?



Cheers,
Alexander


On 2017-02-21 20:25, Les Éditions Valmajour - pg wrote:

Hi Alexander,

First of all, my apologies for replying so late, I was away from home
without my computer to test.

I tried a few things with the SpacingSpanner, but none works in the
direction I want. I tried your solution, it doesn't work either. I may
have placed the commands in the wrong place, but I don't think so.

Thanks!

Pierre


Le 13/02/2017 à 16:53, Alexander Kobel a écrit :

Hi Pierre,

On 2017-02-13 10:57, Les Éditions Valmajour - pg wrote:

Hello co-listers,

does anyone know if there a way to apply different horizontal
spacings to different staves, whithin the same bar?

In the attached example, the stemless notes are 16ths. I would like
the stemless notes to be strictly evenly spaced, [...]

How about using \override Score.SpacingSpanner.strict-note-spacing =
##t (see Notation reference, sec. 4.5.5)?
You might want to add a \newSpacingSection between b-. and c-. (so
before the first note after \bar "|."), in case you want to
acknowledge the barline in the spacing.


HTH,
Alexander




--

Facebook : 
https://www.facebook.com/pages/Les-%C3%89ditions-Valmajour/1158579907502169

Notre site internet : http://editions-valmajour.fr

Notre blog : http://blog.editions-valmajour.fr

À bientôt!


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


Re: Different spacings indifferent staves

2017-02-21 Thread Les Éditions Valmajour - pg

Hi Alexander,

First of all, my apologies for replying so late, I was away from home 
without my computer to test.


I tried a few things with the SpacingSpanner, but none works in the 
direction I want. I tried your solution, it doesn't work either. I may 
have placed the commands in the wrong place, but I don't think so.


Thanks!

Pierre


Le 13/02/2017 à 16:53, Alexander Kobel a écrit :

Hi Pierre,

On 2017-02-13 10:57, Les Éditions Valmajour - pg wrote:

Hello co-listers,

does anyone know if there a way to apply different horizontal spacings to 
different staves, whithin the same bar?

In the attached example, the stemless notes are 16ths. I would like the 
stemless notes to be strictly evenly spaced, [...]

How about using \override Score.SpacingSpanner.strict-note-spacing = ##t (see 
Notation reference, sec. 4.5.5)?
You might want to add a \newSpacingSection between b-. and c-. (so before the first note 
after \bar "|."), in case you want to acknowledge the barline in the spacing.


HTH,
Alexander


--

Facebook : 
https://www.facebook.com/pages/Les-%C3%89ditions-Valmajour/1158579907502169

Notre site internet : http://editions-valmajour.fr

Notre blog : http://blog.editions-valmajour.fr

À bientôt!


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


Different spacings indifferent staves

2017-02-13 Thread Les Éditions Valmajour - pg

Hello co-listers,

does anyone know if there a way to apply different horizontal spacings 
to different staves, whithin the same bar?


In the attached example, the stemless notes are 16ths. I would like the 
stemless notes to be strictly evenly spaced, regardless to what is 
written in the piano part. I have the feeling that it can be easily set, 
but I can't figure out how.


Thank you all!

Pierre

\version "2.18.2"

galoubet = \relative c'' {
  \override Staff.Beam.stencil = ##f
  \override Staff.Stem.stencil = ##f
  \override Staff.Flag.stencil = ##f
  %\override Staff.SpacingSpanner.uniform-stretching = ##t
  %\set Score.proportionalNotationDuration = #(ly:make-moment 1/64)
  \set Staff.whichBar = ".|:" g16-. 
  \unset Staff.whichBar a-. cis-. fis,-. bes-. f-. b-. g-. bes-. fis-. b-. a-. f-. cis'-. b-. fis-. a-. bes-. g-. f-. cis'-. g-. b-. bes-. fis-. cis'-. a-. f-. \once \set Staff.whichBar = ":..:" 
  c'-.-\markup \italic "simile" bes-. des-. d-. e-. b-. c-. b-. e-. cis-. d-. bes-. b-. d-. c-. es-. e-. cis-. bes-. \once \set Staff.whichBar = ":..:"
}

global = {
  \set Staff.markFormatter = #format-mark-box-letters
  \omit Staff.TimeSignature
  \tweak X-offset #3 \tempo Calme
  \time 7/4
  s1. s4 \bar "!" \break
  \time 19/16
  s1 s8. \bar "!" \break
  \time 9/8
  s4.*3
}

pianoMD = \relative c''{
}

pianoMG = \relative c'' {
  s2 s8 \once \set PianoStaff.whichBar = ".|:" 
  %\shape #'((0 . -2) (-1 . 2) (1.5 . 2.5) (0 . -2)) Slur
  fis32[ _(  b d \change Staff = "MD" \ottava #1 fis gis b e b gis fis \ottava #0 \change Staff = "MG" d b]) \once \set PianoStaff.whichBar = ":|."  s2. 
  \once \set PianoStaff.whichBar = ".|:" cis,32[(-\markup \italic "simile" g' b! \change Staff = "MD" e fis g bes g fis e \change Staff = "MG" b! g]) \once \set PianoStaff.whichBar = ":|." s8 s2 s8.
}

galoubettbPartMouvementJ = \new PianoStaff \with {
  fontSize = #-4
  \override StaffSymbol #'staff-space = #(magstep -4)
  \accidentalStyle neo-modern
}
<<
  \new Staff \with {
\remove "Bar_number_engraver"
  }
  <<
\galoubet
\global
  >>
  \new Dynamics = "galoubetDYN" {
%\galoubetDYN
  }  
>>

pianoPartMouvementJ = \new PianoStaff \with {
  %instrumentName = \markup { \override #'(font-name . "Sanford") "Piano" }
  extraNatural = ##f
  \accidentalStyle neo-modern
}
<<
  \set PianoStaff.connectArpeggios = ##t
  \new Staff = "MD" {
<<
  \global
  \pianoMD
>>
  }
  \new Dynamics = "pianoDYN" {
%\pianoDYN
  }
  \new Staff = "MG" \with {
\remove "Metronome_mark_engraver"
\remove "Mark_engraver"
\remove "Bar_number_engraver"
  }
  <<
\global 
\pianoMG
  >>
  \new Dynamics = "pianoPED" {
%\pianoPED
  }  
>>

\score {
  <<
\keepWithTag solofullscore
\removeWithTag pnofullscore
\removeWithTag solopartsep
\galoubettbPartMouvementJ
  
\keepWithTag pnofullscore
\removeWithTag solofullscore
\removeWithTag solopartsep
\pianoPartMouvementJ
  >> 
}___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: Precise markup position

2015-05-07 Thread Les Éditions Valmajour - pg

It does the trick perfectly! Thank you so much!!
Cheers,
Pierre

Le 07/05/2015 11:09, Robin Bannister a écrit :

Stephen MacNeil wrote:

the overlay on the lsr will do this


That would be Absolute positioning of markup elements
http://lsr.di.unimi.it/LSR/Item?id=628


Then to position millimetre-wise, you need something like

%%

#(define-markup-command (mm-translate layout props mm-offset arg)
  (number-pair? markup?)
  (let ((o-s (ly:output-def-lookup layout 'output-scale)))
(ly:stencil-translate (interpret-markup layout props arg)
  (cons (/ (car mm-offset) o-s) (/ (cdr mm-offset) o-s)

%%


Cheers,
Robin




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


Re: Precise markup position

2015-05-06 Thread Les Éditions Valmajour -pg
Thanks Robin, 
It will be a big step ahead! 
So it seems that so far, the only  way to place different markups on a page is 
to have them in a pile.
For example, is it possible to:
1 organize some markups in this pile
2 place one other markup aligned on the bottom margin

at the same time?

Envoyé par Type Mail



Sur 6 mai 2015 à 21:13, à 21:13, Robin Bannister r...@dataway.ch a écrit:
Pierre G. wrote:

 I wonder if there is a way to position precisely a text markup


One way to insert vertical millimetres is
http://lists.gnu.org/archive/html/lilypond-user/2010-04/msg00035.html

This may not be the current method, but it still works e.g.
   \markup \mm-feed #27
 in order to create some vertical space
 (see line 34, for the space beetween composer and title 1).


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


Precise markup position

2015-05-06 Thread Les Éditions Valmajour - pg

Dear list,

I wonder if there is a way to position precisely a text markup (X/Y 
coordinates for example?), to avoid using the empiric


\markup { \vspace #x \null }, in order to create some vertical space 
(see line 34, for the space beetween composer and title 1).


Thank you !

Pierre


\version 2.18.2

#(set! paper-alist (cons '(valmajour22 . (cons (* 222 mm) (* 302 mm))) paper-alist))
#(set-default-paper-size valmajour22)

\paper {
  #(define fonts
 (make-pango-font-tree Playfair Display
   Nimbus Sans
   Luxi Mono
   (/ staff-height pt 20)))
  
  #(define (part-first-page layout props arg)
 (if (= (chain-assoc-get 'page:page-number props -1)
(ly:output-def-lookup layout 'first-page-number))
 (interpret-markup layout props arg)
 empty-stencil))
  
  #(define (part-not-first-page layout props arg)
 (if (not (= (chain-assoc-get 'page:page-number props -1)
 (ly:output-def-lookup layout 'first-page-number)))
 (interpret-markup layout props arg)
 empty-stencil))
  
}

\bookpart {
  \markup { \center-column {
\line { \abs-fontsize #24 Composer }
\line { \null }
}
  }
  
  \markup { \vspace #5 \null }
  
  \markup { 
\fill-line { 
  \center-column {
\line { \abs-fontsize #48 Title 1 }
\line { \vspace #2 \null }
\line { \abs-fontsize #30 Title 2 }
\line { \null }
}
}
  }
  
  \markup \null  
  
  \markup { 
\fill-line { 
  \center-column {
\line { \abs-fontsize #26 Subtitle 1 }
\line { \null }
\line { \abs-fontsize #14 Subtitle 2 }
  }
}
  }
  
  \markup \null

  \markup {
\fill-line {
  
  \right-column {
\line { \abs-fontsize #20 Volume 1 }
\line { \null }
\line { \italic \abs-fontsize #10 A }
\line { \italic \abs-fontsize #10 B }
\line { \italic \abs-fontsize #10 C }
  }
}
  }
  
  \markup \null
  

  \header {
tagline = ##f
  }
  \paper {
top-margin = 33\mm
left-margin = 13\mm
right-margin = 13\mm
bottom-margin = 8\cm
print-page-number = ##f
  }
}
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Fwd: Re: Problem RemoveEmptyStaves

2015-04-23 Thread Les Éditions Valmajour - pg




 Message transféré 
Sujet : Re: Problem RemoveEmptyStaves
Date :  Thu, 23 Apr 2015 17:05:00 +0200
De :Les Éditions Valmajour - pg p...@editions-valmajour.fr
Pour :  tisimst tisimst.lilyp...@gmail.com



Hello, thanks for your answer, I actually just found out a few minutes ago :

I added a \StaffGroup context with a

\denies \PianoStaff

Works perfectly.
Thanks a lot!
Pierre

Le 23/04/2015 17:01, tisimst a écrit :
This is curious, but it can be taken care of. If the solo part is 
*always* visible, then you can do:


\new Dynamics \with { \override VerticalAxisGroup.remove-empty = ##f }
{ ... }

in _just_ the solo staff. This, of course, will not be effective if 
there are times when it is appropriate for it to vanish.


- Abraham

On Thu, Apr 23, 2015 at 7:52 AM, Les Editions Valmajour [via Lilypond] 
[hidden email] /user/SendEmail.jtp?type=nodenode=175167i=0 wrote:


Hello,
Hello everyone,
I have a contextproblem; in the attached file, I need to have the
dynamics(placed in a context Dynamics) in all parts.
But when I use \ RemoveEmptyStaves in the context \PianoStaff,
dynamics disappear from the solo part.
I do not see what it comes from. Does anyone have an idea?

___
lilypond-user mailing list
[hidden email] http:///user/SendEmail.jtp?type=nodenode=175155i=0
https://lists.gnu.org/mailman/listinfo/lilypond-user

*testEmptyStaves.ly* (765 bytes) Download Attachment

http://lilypond.1069038.n5.nabble.com/attachment/175155/0/testEmptyStaves.ly



If you reply to this email, your message will be added to the
discussion below:

http://lilypond.1069038.n5.nabble.com/Problem-RemoveEmptyStaves-tp175155.html

To start a new topic under User, email [hidden email]
/user/SendEmail.jtp?type=nodenode=175167i=1
To unsubscribe from Lilypond, click here.
NAML

http://lilypond.1069038.n5.nabble.com/template/NamlServlet.jtp?macro=macro_viewerid=instant_html%21nabble%3Aemail.namlbase=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespacebreadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml





View this message in context: Re: Problem RemoveEmptyStaves 
http://lilypond.1069038.n5.nabble.com/Problem-RemoveEmptyStaves-tp175155p175167.html
Sent from the User mailing list archive 
http://lilypond.1069038.n5.nabble.com/User-f3.html at Nabble.com.



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




\version 2.18.2

\score {  
  
\new StaffGroup

  \new Staff = 1
  {\repeat unfold 20 {c4 d e f}}
  \new Dynamics
  {\repeat unfold 20 { s4\p s s s }}
  \new DrumStaff = 2
  {\repeat unfold 20 { R1} }

  
\new PianoStaff

  \new Staff = P1
  {\repeat unfold 8 {c4 d e f} R1*12}
  \new Dynamics
  {\repeat unfold 8 {s4\p r r r } R1*12}
  \new Staff = P2
  {\repeat unfold 20 {R1}}

  
  
  \layout {
\context {
  \Score
  %\RemoveEmptyStaves
}
\context {
  \StaffGroup
  \denies PianoStaff
}
\context {
  \PianoStaff
  \RemoveEmptyStaves  
}

\context {
  \DrumStaff
  \RemoveEmptyStaves
}
  }
}
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Problem RemoveEmptyStaves

2015-04-23 Thread Les Éditions Valmajour - pg

Hello,
Hello everyone,
I have a contextproblem; in the attached file, I need to have the 
dynamics(placed in a context Dynamics) in all parts.
But when I use \ RemoveEmptyStaves in the context \PianoStaff, 
dynamics disappear from the solo part.

I do not see what it comes from. Does anyone have an idea?
\version 2.18.2

\score {  
  
\new StaffGroup

  \new Staff = 1
  {\repeat unfold 20 {c4 d e f}}
  \new Dynamics
  {\repeat unfold 20 { c4\p r r r }}
  \new DrumStaff = 2
  {\repeat unfold 20 { R1} }

  
\new PianoStaff

  \new Staff = P1
  {\repeat unfold 8 {c4 d e f} R1*12}
  \new Dynamics
  {\repeat unfold 8 {c4\p r r r } R1*12}
  \new Staff = P2
  {\repeat unfold 20 {R1}}

  
  
  \layout {
\context {
  \Score
  %\RemoveEmptyStaves
}
\context {
  \PianoStaff
  %\RemoveEmptyStaves
}
\context {
  \Dynamics
}
\context {
  \DrumStaff
  \RemoveEmptyStaves
}
  }
}___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user