lilypond-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Arpeggios across notes in different voices


From: Dirck Nagy
Subject: Re: Arpeggios across notes in different voices
Date: Tue, 31 Aug 2021 02:52:34 +0000

Thank you, Harm!  I understand it now!

I appreciate your patience!  I'm an experienced score writer, but very much a novice using markup language!

My problem was i did not use \consists "Span_arpeggio_engraver"  in the right context. (i did not use the \with and parenthesis correctly)

FYI, I was also confused by NR 1.3.3  because i do not create voices using { } \\ { } and had trouble figuring out where to place the \once \set StaffGroup.connectArpeggios = ##t

Thanks again!  Proßt zum wohl!
dirck

From: Thomas Morley <thomasmorley65@gmail.com>
Sent: Monday, August 30, 2021 4:00 PM
To: Dirck Nagy <dnagy@uwlax.edu>
Cc: Jacques Menu <imj-muzhic@bluewin.ch>; lilypond-user@gnu.org <lilypond-user@gnu.org>
Subject: Re: Arpeggios across notes in different voices
 
Am Mo., 30. Aug. 2021 um 15:52 Uhr schrieb Dirck Nagy <dnagy@uwlax.edu>:
>
> Hi Jacques
>
> Your example works, but when i try the same syntax in my example, it still doesnt work.
>
> I can't figure it out.  Here is my code.
>
> Can anyone see the problem? Please let me know!
>
> Thanks for your trouble!
>
> dirck
>
> \version "2.20.0"
>
> \header {
>
>   title = "arpeggio example #2"
>
>   % Remove default LilyPond tagline
>   tagline = ##f
> }
>
> global = {
>   \key c \major
>   \numericTimeSignature
>   \time 4/4
>
> }
>
> VoiceOne = \relative c' {
>   \global
>   % Music follows here.
>     \once \set StaffGroup.connectArpeggios = ##t
> <a'>2 \arpeggio
> }
>
> VoiceTwo = \relative c' {
>   \global
>    \stemDown
>   % Music follows here.
>   <c, e g >2 \arpeggio
> }
>
> VoiceThree = \relative c' {
>   \global
>   % Music follows here.
>
> }
>
> VoiceFour = \relative c' {
>   \global
>   % Music follows here.
>
> }
>
> \score {
>   \new Staff \with {
>     midiInstrument = "acoustic guitar (nylon)"
>   } { \clef "treble_8" << \VoiceOne \\ \VoiceTwo \\ \VoiceThree \\ \VoiceFour >> }
>   \layout { }
>
> }
> ________________________________
> From: Jacques Menu <imj-muzhic@bluewin.ch>
> Sent: Monday, August 30, 2021 12:46 AM
> To: Dirck Nagy <dnagy@uwlax.edu>
> Cc: Jacques Menu <imj-muzhic@bluewin.ch>; Mark Stephen Mrotek <carsonmark@ca.rr.com>; lilypond-user@gnu.org <lilypond-user@gnu.org>
> Subject: Re: Arpeggios across notes in different voices
>
> Hello Dirck,
>
> See taffGroup.connectArpeggios in the attached files.
>
> JM
>
>
>
> Le 30 août 2021 à 06:11, Dirck Nagy <dnagy@uwlax.edu> a écrit :
>
> Maybe that was a bad example, sorry.
>
> Here is another one:  I'm trying to get the arpeggio line to span from the low "c" to the highest "a", which is in a separate voice:
>
> <image.png>
> Here is the code for this example; could someone correct my example to show how it is done?
>
> Thanks so much!
>
> dirck
>
> \version "2.20.0"
>
> \header {
>
>   title = "arpeggio example #2"
>
>   % Remove default LilyPond tagline
>   tagline = ##f
> }
> #(define RH rightHandFinger)
> global = {
>   \key c \major
>   \numericTimeSignature
>   \time 4/4
>   %tempo padding
>   \override Score.MetronomeMark.padding = #5
>   \tempo "tempo"
>   %pickup measure
>   %\partial 4
> }
>
> VoiceOne = \relative c' {
>   \global
>   % Music follows here.
> a'2
> }
>
> VoiceTwo = \relative c' {
>   \global
>    \stemDown
>   % Music follows here.
>   <c, e g >2 \arpeggio
> }
>
> VoiceThree = \relative c' {
>   \global
>   % Music follows here.
>
> }
>
> VoiceFour = \relative c' {
>   \global
>   % Music follows here.
>
> }
>
> \score {
>   \new Staff \with {
>     midiInstrument = "acoustic guitar (nylon)"
>   } { \clef "treble_8" << \VoiceOne \\ \VoiceTwo \\ \VoiceThree \\ \VoiceFour >> }
>   \layout { }
>
> }
> \paper {
> system-system-spacing.basic-distance =  20
> markup-markup-spacing.basic-distance =  8
> markup-system-spacing.basic-distance =  36
> last-bottom-spacing.basic-distance =  24
> top-system-spacing.basic-distance =  1
> top-system-spacing.basic-distance =  24
>
>        }
>
> ________________________________
> From: Mark Stephen Mrotek <carsonmark@ca.rr.com>
> Sent: Sunday, August 29, 2021 10:34 PM
> To: Dirck Nagy <dnagy@uwlax.edu>; lilypond-user@gnu.org <lilypond-user@gnu.org>
> Subject: RE: Arpeggios across notes in different voices
>
> Dirck I copied and pasted the code in the body of your e-mail.
> Was there a different MWE or attached file?
>
>
>
> Mark
>
> From: Dirck Nagy [mailto:dnagy@uwlax.edu]
> Sent: Sunday, August 29, 2021 4:27 PM
> To: Mark Stephen Mrotek <carsonmark@ca.rr.com>; lilypond-user@gnu.org
> Subject: Re: Arpeggios across notes in different voices
>
>
>
> Hi Mark
>
>
>
> Thanks for the reply, but I think you might have viewed the wrong file?
>
>
>
> The LilyPond file i submitted should look like this:  only one chord.
>
>
>
> <image001.png>
> ________________________________
> From: Mark Stephen Mrotek <carsonmark@ca.rr.com>
> Sent: Sunday, August 29, 2021 5:20 PM
> To: Dirck Nagy <dnagy@uwlax.edu>; lilypond-user@gnu.org <lilypond-user@gnu.org>
> Subject: RE: Arpeggios across notes in different voices
>
>
>
> Dirck,
>
>
>
> The two chords are of different duration.
> \consists "Span_arpeggio_engraver" is not needed.
>
>
>
> Mark
>
> From: lilypond-user [mailto:lilypond-user-bounces+carsonmark=ca.rr.com@gnu.org] On Behalf Of Dirck Nagy
> Sent: Sunday, August 29, 2021 1:32 PM
> To: lilypond-user@gnu.org
> Subject: Arpeggios across notes in different voices
>
>
>
> Hello all
>
>
>
> I am trying to extend an arpeggio line to cover the entire chord in the example below.
>
>
>
> I have tried using this:
>
> {
>
>   \consists "Span_arpeggio_engraver"
>
> }
>
> and this:
>
>  \set Staff.connectArpeggios = ##t
>
>   <<
>
>     { <e' g>4\arpeggio <d f> <d f>2 }
>
>     \\
>
>     { <d, f>2\arpeggio <g b>2 }
>
>   >>
>
> as given in Reference 1.3.3, but I cannot make it work.
>
>
>
> I understand the work-around for this example would be to notate all notes in a single voice, but i have other situations where this can not be done.
>
>
>
> If anyone has time, could someone add the proper sequence & syntax to my example, please?  I think i could figure it out from there.
>
> Thank you all so much!
>
>
>
> Dirck
>
>
>
> Here is the code:
>
>
>
> \version "2.20.0"
>
>
>
> \header {
>
>
>
>   title = "arpeggio example"
>
>
>
>   % Remove default LilyPond tagline
>   tagline = ##f
> }
> #(define RH rightHandFinger)
> global = {
>   \key c \major
>   \numericTimeSignature
>   \time 4/4
>   %tempo padding
>   \override Score.MetronomeMark.padding = #5
>   \tempo "tempo"
>   %pickup measure
>   %\partial 4
> }
>
>
>
> VoiceOne = \relative c' {
>   \global
>   % Music follows here.
>  e1
> }
>
>
>
> VoiceTwo = \relative c' {
>   \global
>    \stemDown
>   % Music follows here.
>   <c, e g c>1 \arpeggio
> }
>
>
>
> VoiceThree = \relative c' {
>   \global
>   % Music follows here.
>
>
>
> }
>
>
>
> VoiceFour = \relative c' {
>   \global
>   % Music follows here.
>
>
>
> }
>
>
>
> \score {
>   \new Staff \with {
>     midiInstrument = "acoustic guitar (nylon)"
>   } { \clef "treble_8" << \VoiceOne \\ \VoiceTwo \\ \VoiceThree \\ \VoiceFour >> }
>   \layout { }
>
>
>
> }
> \paper {
> system-system-spacing.basic-distance =  20
> markup-markup-spacing.basic-distance =  8
> markup-system-spacing.basic-distance =  36
> last-bottom-spacing.basic-distance =  24
> top-system-spacing.basic-distance =  1
> top-system-spacing.basic-distance =  24
>
>
>
>        }
>
>

I've no clue what this thread is about, it's all in NR
http://lilypond.org/doc/v2.22/Documentation/notation/expressive-marks-as-lines#arpeggio

- Consist the engraver to the correct context (here: Staff)
- call connectArpeggios with correct context (here: \set
Staff.connectArpeggios = ##t)
- mark all relevant/notes/chords with \arpeggio


global = {
  \key c \major
  \numericTimeSignature
  \time 4/4

}

VoiceOne = \relative c' {
  \global
  % Music follows here.
    \once \set Staff.connectArpeggios = ##t
<a'>2 \arpeggio
}

VoiceTwo = \relative c' {
  \global
   \stemDown
  % Music follows here.
  <c, e g >2 \arpeggio
}

VoiceThree = \relative c' {
  \global
  % Music follows here.

}

VoiceFour = \relative c' {
  \global
  % Music follows here.

}

\score {
  \new Staff \with {
    \consists "Span_arpeggio_engraver"
    midiInstrument = "acoustic guitar (nylon)"
  } { \clef "treble_8" << \VoiceOne \\ \VoiceTwo \\ \VoiceThree \\
\VoiceFour >> }
  \layout { }
}

Done,
  Harm

reply via email to

[Prev in Thread] Current Thread [Next in Thread]