Deutsches Lilypond Forum (Archiv)

Allgemein => Fragen zu Funktionen => Thema gestartet von: brf am Freitag, 30. Mai 2008, 16:41

Titel: Stichnoten
Beitrag von: brf am Freitag, 30. Mai 2008, 16:41
Und nochmal eine vielleicht einfache Frage:

Wie gehen Stichnoten und "Stichstaves" in ly? Bsp: Zweistimmig Flöte und Klavier. In der Klavierstimme sind die Flötennoten klein über den Pianostaves gedruckt.

Ich habe eine Stimme mit stimme = {} definiert und will sie mit

\score {
<< new staff<< \stimme>>
     new PianoStaff << new staff \lh new staff \rh >>
>>
klein über das Piano setzen.

Ein Versuch mit

<<\gross#0.5 \stimme \normal >>
und

gross = #(define-music-function (parser location mag) (number?)
       #{ \override Stem #'length = #$(* 7.0 mag)
          \override NoteHead #'font-size =
          #$(inexact->exact (* (/ 6.0 (log 2.0)) (log mag))) #})

normal = {
       \revert Stem #'length
              \revert NoteHead #'font-size
                   }

hat nicht funktioniert.
Titel: Re: Stichnoten
Beitrag von: derHindemith am Freitag, 30. Mai 2008, 17:13
http://lilypond.org/doc/v2.11/Documentation/user/lilypond/Quoting-other-voices#Quoting-other-voices (http://lilypond.org/doc/v2.11/Documentation/user/lilypond/Quoting-other-voices#Quoting-other-voices)
1.6.2.3 Stichnoten
Titel: Re: Stichnoten
Beitrag von: hansfaust am Mittwoch, 25. Juni 2008, 01:12
Versuch's mal damit ... ist nur ein schneller Hack ohne Feinheiten:

%{
Stichnoten
mit \set fontSize = #-2  die Größe der Noten einstellen
%}

\version "2.10.10"
\header
{

title = "Stichnoten"
subtitle = "Flöte und Klavier"
subsubtitle = "template"
composer = "Alfred Faust"
}


fluteMusic = \relative c'' {
\clef treble
\key g \major
\time 4/4
\set Staff.midiInstrument = "flute"
\set fontSize = #-2

g8 a b c d4 d e8 e e e d2 e8 e e e d2 c8 c c c b4 b d8 d d d g,2

\bar "|."

}
pianorhMusic = \relative c {
\clef treble
\key g \major
\time 4/4
\set Staff.midiInstrument = "acoustic grand"

\chordmode
{
r4 g4^5 r4 g4^5 r4 c'^5/e r4 g4^5 r4 c'^5/e r4 g4^5  c'^5/e c^3 g^5 g^5/d r4 d g2
}
\bar "|."
}
pianolhMusic = \relative c {
\clef bass
\key g \major
\time 4/4
\set Staff.midiInstrument = "acoustic grand"
g4 r4 g4 r4 c4 r4 g4 r4 c4 r4 g4 r4 c4 e g g d4 r4 g,2
\bar "|."
}


\score {

\new StaffGroup

<<
\new Staff \fluteMusic \set Staff.instrumentName = "Flute "

\new GrandStaff
<< 

\new Staff \pianorhMusic \set Staff.instrumentName = "Piano "
\new Staff \pianolhMusic

>>

>>

\layout {
#(define fonts (make-pango-font-tree "Cleargothic-Light" "Cleargothic-Light" "Courier New" (/ 24 22)))
indent = #10
}
\midi { }
}

MfG
hansfaust
Titel: Re: Stichnoten
Beitrag von: hansfaust am Freitag, 27. Juni 2008, 14:54
Ich hab's mal noch etwas verfeinert.
Also:
Klavier-Begleitnoten mit kleingedruckter Flötenstimme darüber

%{
Ossia staves
Stichnoten

%}

\version "2.10.10"
\header
{
title = "Ossia staves (Stichnoten)"
subtitle = "Flute and Piano"
subsubtitle = "template"
composer = "Alfred Faust"
}


fluteMusic = \relative c'' {
\clef treble
\key g \major
\time 4/4
\set Staff.midiInstrument = "flute"
\set Staff.instrumentName = "Flute "

g8 a b c d4 d e8 e e e d2 e8 e e e d2 c8 c c c b4 b d8 d d d g,2

\bar "|."

}
pianorhMusic = \relative c {
\clef treble
\key g \major
\time 4/4
\set Staff.midiInstrument = "acoustic grand"

\chordmode
{
r4 g4^5 r4 g4^5 r4 c'^5/e r4 g4^5 r4 c'^5/e r4 g4^5  c'^5/e c^3 g^5 g^5/d r4 d'^5/fis g2
}
\bar "|."
}
pianolhMusic = \relative c {
\clef bass
\key g \major
\time 4/4
\set Staff.midiInstrument = "acoustic grand"
g4 r4 g4 r4 c4 r4 g4 r4 c4 r4 g4 r4 c4 e g g d4 r4 g,2
\bar "|."
}


\score {
<<
\new Staff \with {
fontSize = #-3
\override StaffSymbol #'staff-space = #(magstep -3)
\override StaffSymbol #'thickness = # (magstep -3)
} \fluteMusic
\new PianoStaff
<<
\set PianoStaff.instrumentName = "Piano"
\new Staff \pianorhMusic
\new Staff \pianolhMusic
>>
>>
\layout {
#(define fonts (make-pango-font-tree "Cleargothic-Light" "Cleargothic-Light" "Courier New" (/ 24 22)))
indent = #10
}
\midi { }

}

Und so sollte es aussehen:
Titel: Re: Stichnoten
Beitrag von: etilli33 am Freitag, 27. Juni 2008, 20:06
Ja, sehr schön, das sind die einstellungen, die ich neulich mal für ossia-Systeme ins Handbuch eingetragen habe. Bin mittlerweile nicht mehr 100%ig davon überzeugt, denn bei guter Typographie sind die Linien von kleinen Größen proportional etwas dicker als bei größeren Schriftgrößen. Insbesondere die Abstimmung von Taktlinien und Notenlinien geht verloren, denn die Taktlinien richten sich nach der gesamten Partitur. Vielleicht reicht

\override StaffSymbol #'thickness = # (magstep -2)

auch aus. Habe noch keine logische Idee gefunden, wie man das proportional setzen könnte oder sich errechnen lassen könnte.

Gruß
Till