connectArpeggios problem

2019-09-26 Thread Jacques Menu
Hello folks,

connectArpeggios seems not to be taken into account in the example below : the 
cis half note in not included in the arpeggio.

This used to work alright in older versions of Lily with '\set 
PianoStaff.connectArpeggios = ##t', though.

Thanks for your help!

JM

—



%%%
\version "2.19.83"

Part_POne_Staff_One_Voice_One = \absolute {
  \key a \major
  \numericTimeSignature \time 2/4

  \clef "treble"
  \grace { s16  s  s } cis'''2  | % 1
  \barNumberCheck #2
}

Part_POne_Staff_One_Voice_Two = \absolute {
  \key a \major
  \numericTimeSignature \time 2/4

  \clef "treble"
  \grace { s16  s  s }
  \arpeggioNormal 4 -\arpeggio r | % 1
  \barNumberCheck #2
}

\book {
  \header {
  }

  \score {
<<

  \new PianoStaff
  \with {
instrumentName = "Piano"
connectArpeggios = ##t
  }
  <<
\new Staff = "Part_POne_Staff_One"
\with {
}
<<
  \context Voice = "Part_POne_Staff_One_Voice_One" <<
\voiceOne % out of 2 regular voices
\Part_POne_Staff_One_Voice_One
  >>
  \context Voice = "Part_POne_Staff_One_Voice_Two" <<
\voiceTwo % out of 2 regular voices
\Part_POne_Staff_One_Voice_Two
  >>
>>

  >>
>>

\layout {}
  }
}
%%%



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


How do I add balloonText to all notes with custom engraver?

2019-09-26 Thread RCJacH
I'm trying to use a custom engraver to programatically add a balloonTextItem
to every note in score.
I have done notehead coloring engraver through the help of
http://lsr.di.unimi.it/LSR/Snippet?id=572 and
http://lsr.di.unimi.it/LSR/Item?id=897, and notename display in
http://lsr.di.unimi.it/LSR/Item?id=818.

I got that the (minimum) code for defining a custom engraver is:

#(define **engraver**
   (make-engraver
(acknowledgers
 ((note-head-interface engraver grob source-engraver)
  (let* ((context (ly:translator-context engraver))
(**other local variables**))
(**code**)
)

Now the problem is that I cannot find anything related to balloonText...

For editing existing properties, one would use (ly:grob-set-property! grob
'property assignment) in **code** block; I've seen scripts adding stencils
with (ly:stencil-add) in http://lsr.di.unimi.it/LSR/Item?id=969.

I've used \displayMusic for \displayMusic { c-\balloonText #'(2 . 0) "1"}
and showed following scheme code in the console, with lines related to
balloonText in bold:

(make-music
  'SequentialMusic
  'elements
  (list (make-music
  'NoteEvent
  'articulations
  **(list (make-music
  'AnnotateOutputEvent
  'text
  "1"
  'Y-offset
  0
  'X-offset
  2))**
  'pitch
  (ly:make-pitch -1 0 0)
  'duration
  (ly:make-duration 0 0 1


Now my question is how do I fit the balloonText block into the engraver
scheme, so that it is added to each note in the staff?



--
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: transpose for baritone sax

2019-09-26 Thread Tim McNamara
Read up on \transpose which should do what you want, combined with octaves.

> On Sep 26, 2019, at 7:33 PM, Francesco Petrogalli 
>  wrote:
> 
> Hi,
> 
> I have written a part using the orchestral pitch (real note) of an
> instrument, the baritone sax (and other instruments, like trumpets,
> alto, and so on).
> 
> All the parts are rendered with the real notes, so that I can listen
> to the midi and check the music on the piano easily (I am no good at
> transposing on the fly).
> 
> Now I need to produce the parts for the single instruments with the
> correct transposition, but keeping the same pitch in the midi.
> 
> Is there already a facility to do so, say a function that I can place
> in front of a music sequence and get it transposed for saxophone? or
> do I have to come up with my own?
> 
> I understand that the correct way of doing this is first write the
> notes in the tonality of the instrument, and _then_ use \transposition
> to get the correct pitches in the midi, but I already have the notes
> in the ly file with the orchestral pitch and I would like to avoid
> rewriting the whole part.
> 
> Kind regards,
> 
> Francesco
> 
> ___
> 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


transpose for baritone sax

2019-09-26 Thread Francesco Petrogalli
Hi,

I have written a part using the orchestral pitch (real note) of an
instrument, the baritone sax (and other instruments, like trumpets,
alto, and so on).

All the parts are rendered with the real notes, so that I can listen
to the midi and check the music on the piano easily (I am no good at
transposing on the fly).

Now I need to produce the parts for the single instruments with the
correct transposition, but keeping the same pitch in the midi.

Is there already a facility to do so, say a function that I can place
in front of a music sequence and get it transposed for saxophone? or
do I have to come up with my own?

I understand that the correct way of doing this is first write the
notes in the tonality of the instrument, and _then_ use \transposition
to get the correct pitches in the midi, but I already have the notes
in the ly file with the orchestral pitch and I would like to avoid
rewriting the whole part.

Kind regards,

Francesco

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