lilypond-user
[Top][All Lists]
Advanced

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

Automatic cross-staff chords - testing help


From: Davide Bonetti
Subject: Automatic cross-staff chords - testing help
Date: Thu, 7 Jan 2021 13:08:18 +0100
User-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.6.0

Hi,

Great work.

I've done some testing and found some bugs. Below the code I've tested, attached the PDF with the result (on second page, first page are your examples).

\autoSplitChord doesn't works with curly braces, it returns blank output (like a blank space in the score), so it's not possible to work with:
- chordmode
- more than one chord a time
- moltiple voices

Also, \autoSplitChord doesn't works with single notes, it returns blank space.

It accepts variables, but the result is the same.

Pippo = <c e g c' e'>1
PippoDue = \chordmode {c1:/g}
PippoTre = c1
PippoQuattro = {<c e g>}

\new PianoStaff
\with { \consists #Span_stem_engraver }
<<
  \new Staff = "up"
  {
    \key c\major
    %chord with stem up
    \autoSplitChord #UP <f a a' f'>2         %works
    %chord without stem
    \autoSplitChord <g c' e'>4            %works
    %chord with stem down
    \autoSplitChord #DOWN <g c' e'>        %works
    %chord, whole note
    \autoSplitChord <c g e' c''>1        %works
    %chordmode
    \autoSplitChord \chordmode {c:/g}         %blank output
    %chord entered in curly braces
    \autoSplitChord {<c g e' c''>}         %blank output
    %more than one chord, in curly braces
    \autoSplitChord {<c e g> <d     f a>}  %blank output
    %single note
    \autoSplitChord c                 %blank output
    %single note in a chord
    \autoSplitChord <c'>            %works
    %chord entered in polyphonic style
    \autoSplitChord <<c\\e'\\g''\\g,>>        %works
    %polyphonic style, different durations
    \autoSplitChord <<c1\\e'2\\g''\\g,>>    %warning & strange output
    %polyphonic style, with some curly braces
    \autoSplitChord <<c1 \\ {e2 f}\\d'1>>    %notes in curly braces are not printed
    %polyphonic style, with curly braces
    \autoSplitChord <<
      {c4 d e f}
      \\
      {c' d' e' f'}
    >>                        %blank output
    %chord in a variable
    \autoSplitChord \Pippo            %works
    %chord in a variable with chordmode
    \autoSplitChord \PippoDue            %blank output
    %single note in a variable
    \autoSplitChord \PippoTre            %blank output
    %chord in curly braces in a variable
    \autoSplitChord \PippoQuattro        %blank output
  }
  \new Staff = "down"
  {
    \key c\major
    \clef bass
    s1
  }
>>

Thank you for the work.

Cheers

Davide



--
Questa e-mail è stata controllata per individuare virus con Avast antivirus.
https://www.avast.com/antivirus

Attachment: autoSplitChord test.ly
Description: Text Data

Attachment: autoSplitChord test.pdf
Description: Adobe PDF document


reply via email to

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