Deutsches Lilypond Forum (Archiv)

Allgemein => Fragen zu Funktionen => Thema gestartet von: DocTaxon am Sonntag, 20. Oktober 2013, 17:25

Titel: tremolo
Beitrag von: DocTaxon am Sonntag, 20. Oktober 2013, 17:25
Hallo!

Kurze Frage: lässt sich das Tremolo bei der Violine irgendwie in der midi darstellen?

Danke sehr, DocTaxon
Titel: Re: tremolo
Beitrag von: harm6 am Sonntag, 20. Oktober 2013, 18:26
Hallo,

hilft:
http://lilypond.org/doc/v2.17/Documentation/notation/repeats-in-midi (http://lilypond.org/doc/v2.17/Documentation/notation/repeats-in-midi)
?

Gruß,
  Harm
Titel: Re: tremolo
Beitrag von: DocTaxon am Sonntag, 20. Oktober 2013, 19:54
Naja, den Notentext wollte ich eigentlich nicht ändern. Ich habe nur "tremolo" an die Note gehängt, und so soll der Notentext auch weiterhin aussehen.
Titel: Re: tremolo
Beitrag von: harm6 am Sonntag, 20. Oktober 2013, 20:07
Zitat
Naja, den Notentext wollte ich eigentlich nicht ändern.
Darum geht es eigentlich nicht, vgl pdf vs midi dieses Beispiels:

\version "2.16.2"

mus = {
    \repeat tremolo 16 { c'32 }
    \repeat percent 2 { c''8 d'' }
    \repeat volta 2 { c'4 d' e' f' }
    \alternative {
      { g' a' a' g' }
      { f' e' d' c' }
    }
    \bar "|."
}

\score {
\mus
\layout { }
}

\score {
\unfoldRepeats \mus
\midi { }
}

Aber es kommt wohl auch darauf an wie Du das tremolo geschrieben hast.

Denn hier
Zitat
Ich habe nur "tremolo" an die Note gehängt, und so soll der Notentext auch weiterhin aussehen.
ist mir nicht klar genug, was Du getan hast.
Ein Beispiel wäre gut.

Gruß,
  Harm

Titel: Re: tremolo
Beitrag von: DocTaxon am Montag, 21. Oktober 2013, 08:40
Ja okay, da es unklar ist, habe ich es mal in Deinen Code als erste Note miteingefügt.

\version "2.16.2"

dashPlus = "trill"

mus = {
    c4''-+
    \repeat tremolo 16 { c'32 }
    \repeat percent 2 { c''8 d'' }
    \repeat volta 2 { c'4 d' e' f' }
    \alternative {
      { g' a' a' g' }
      { f' e' d' c' }
    }
    \bar "|."
}

\score {
\mus
\layout { }
}

\score {
\unfoldRepeats \mus
\midi { }
}
Titel: Re: tremolo
Beitrag von: fugenkomponist am Montag, 21. Oktober 2013, 08:47
Das ist kein Tremolo, sondern ein Triller (übrigens mit Syntaxfehler). Du könntest mit \tag arbeiten (im Noten-Score c''4-+, im Midi-Score \repeat unfold 4 { c''64 d'' }).
Titel: Re: tremolo
Beitrag von: DocTaxon am Montag, 21. Oktober 2013, 09:59
Ja okay! Kannst Du mir das bitte an den zwei Trillern in diesem Beispiel zeigen, denn wie ich das in die Tat umsetze, ist mir nicht ganz klar. Ich hoffe nicht, dass ich jetzt das mehrseitige Stück im midi nochmals komplett schreiben muss.

\version "2.16.0"

dashPlus = "trill"

\header {
}

\layout {
  indent = 35
  short-indent = 15
  \context {
    \Score
    \override NonMusicalPaperColumn #'line-break-permission = ##f
    \override NonMusicalPaperColumn #'page-break-permission = ##f
    \override BarNumber #'font-shape = #'italic
    \override BarNumber #'self-alignment-X = #LEFT
    \override InstrumentName #'self-alignment-X = #RIGHT
  }
}

\paper {
  #(set-paper-size "a4")
  print-page-number = ##t
  print-first-page-number = ##f
  oddHeaderMarkup = \markup {
    \fill-line {
      \null
      \on-the-fly #print-page-number-check-first
      \fromproperty #'page:page-number-string
    }
  }
}

musicI = {
  \clef treble
  \key e \major
  \time 4/4

  \repeat unfold 2 { b'8 a16 gis a8 b cis b4 e,8 } cis'8 b4 a8 gis fis16 e fis4-+ e r8 e_\p b'8 a16 gis a8 b \break
}

musicV = {
  \clef bass
  \key e \major
  \time 4/4
 
  \repeat unfold 9 { e4 } e8 b e[ e,] b'' b, e,4-+ r8 e'_\p e4 e \break
}

music = { <<
  \new StaffGroup <<
    \new Staff = "violin0" \with { midiInstrument = #"violin" }
    \relative c'' {
      \musicI
    }
    \new Staff = "cello" \with { midiInstrument = #"cello" }
    \relative c {
      \musicV
    }
  >>
>> }

\score {
  \music
 
  \layout { }


\score {
  \unfoldRepeats

<<

  \music
>>

  \midi {
    \context {
      \Staff
      \remove "Staff_performer"
    }
    \context {
      \Voice
      \consists "Staff_performer"     
    }
    \tempo 4 = 100
  }
}
Titel: Re: tremolo
Beitrag von: harm6 am Montag, 21. Oktober 2013, 15:48
Ok, es geht also um Triller. ;)

Ich würde articulate.ly verwenden. Suche mal in der NR danach.

Dein Beispiel sähe dann so aus:

\version "2.16.0"

%!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
\include "articulate.ly"

dashPlus = "trill"

\header {
}

\layout {
  indent = 35
  short-indent = 15
  \context {
    \Score
    \override NonMusicalPaperColumn #'line-break-permission = ##f
    \override NonMusicalPaperColumn #'page-break-permission = ##f
    \override BarNumber #'font-shape = #'italic
    \override BarNumber #'self-alignment-X = #LEFT
    \override InstrumentName #'self-alignment-X = #RIGHT
  }
}

\paper {
  #(set-paper-size "a4")
  print-page-number = ##t
  print-first-page-number = ##f
  oddHeaderMarkup = \markup {
    \fill-line {
      \null
      \on-the-fly #print-page-number-check-first
      \fromproperty #'page:page-number-string
    }
  }
}

musicI = {
  \clef treble
  \key e \major
  \time 4/4

  \repeat unfold 2 { b'8 a16 gis a8 b cis b4 e,8 } cis'8 b4 a8 gis fis16 e fis4-+ e r8 e_\p b'8 a16 gis a8 b \break
}

musicV = {
  \clef bass
  \key e \major
  \time 4/4
 
  \repeat unfold 9 { e4 } e8 b e[ e,] b'' b, e,4-+ r8 e'_\p e4 e \break
}

music = { <<
  \new StaffGroup <<
    \new Staff = "violin0" \with { midiInstrument = #"violin" }
    \relative c'' {
      \musicI
    }
    \new Staff = "cello" \with { midiInstrument = #"cello" }
    \relative c {
      \musicV
    }
  >>
>> }

\score {
  \music
 
  \layout { }


\score {
  \unfoldRepeats
  %% !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
  \articulate
<<

  \music
>>
  \midi {
    \context {
      \Staff
      \remove "Staff_performer"
    }
    \context {
      \Voice
      \consists "Staff_performer"     
    }
    \tempo 4 = 100
  }
}

HTH,
  Harm
Titel: Re: tremolo
Beitrag von: DocTaxon am Dienstag, 22. Oktober 2013, 09:55
ja, das hört sich ja auch ganz gut an.

Würde ich aus \musicV den Triller rausnehmen und diese Stimme als Orgel spielen lassen, hört sich das jedoch scheußlich an. So steht es ja auch in der Dokumentation, dass die Orgel problematisch ist. Gibt es da eine Möglichkeit, die Violine ( \musicI ) mit articulate auszugeben und die Orgel ( \musicV ) ohne?

Danke sehr,
DocTaxon ...
Titel: Re: tremolo
Beitrag von: harm6 am Mittwoch, 23. Oktober 2013, 18:08
Hallo,
 
Du könntest \tag benutzen:

\version "2.16.0"

\include "articulate.ly"

dashPlus = "trill"

\header {
}

\layout {
  indent = 35
  short-indent = 15
  \context {
    \Score
    \override NonMusicalPaperColumn #'line-break-permission = ##f
    \override NonMusicalPaperColumn #'page-break-permission = ##f
    \override BarNumber #'font-shape = #'italic
    \override BarNumber #'self-alignment-X = #LEFT
    \override InstrumentName #'self-alignment-X = #RIGHT
  }
}

\paper {
  #(set-paper-size "a4")
  print-page-number = ##t
  print-first-page-number = ##f
  oddHeaderMarkup = \markup {
    \fill-line {
      \null
      \on-the-fly #print-page-number-check-first
      \fromproperty #'page:page-number-string
    }
  }
}

musicI = {
  \clef treble
  \key e \major
  \time 4/4

  \repeat unfold 2 { b'8 a16 gis a8 b cis b4 e,8 } cis'8 b4 a8 gis fis16 e fis4-+ e r8 e_\p b'8 a16 gis a8 b \break
}

musicV = {
  \clef bass
  \key e \major
  \time 4/4
 
  \repeat unfold 9 { e4 } e8 b e[ e,] b'' b, e,4-+ r8 e'_\p e4 e \break
}

music = { <<
  \new StaffGroup <<
    \new Staff = "violin0" \with { midiInstrument = #"violin" }
    \tag #'midi \articulate \relative c'' \musicI
    \tag #'print \relative c'' \musicI
    \new Staff = "cello" \with { midiInstrument = #"church organ" }
    \relative c {
      \musicV
    }
  >>
>> }

\score {
  \keepWithTag #'print
  \music
  \layout { }


\score {
  \unfoldRepeats
<<
  \keepWithTag #'midi
  \music
>>
  \midi {
    \context {
      \Staff
      \remove "Staff_performer"
    }
    \context {
      \Voice
      \consists "Staff_performer"     
    }
    \tempo 4 = 100
  }
}

Gruß,
  Harm
Titel: Re: tremolo
Beitrag von: DocTaxon am Donnerstag, 24. Oktober 2013, 09:55
ja okay, das funktioniert ganz gut.

Und jetzt habe ich versucht, eine zweite Stimme Viola auch als artikulierend mit einzubringen.
So wie ich das versucht habe, werden die Noten des zweiten Stave aufs erste Stave dazugeschrieben, der zweite Stave hat nicht mal Notenlinien – hab es mal angehängt und auch das Compilation Script dazu.

Gespielt wird nur die Viola-Stimme artikulierend und die Orgel hört sich gut an.

\version "2.16.0"

padInstr =
#(define-scheme-function (parser location amount arg)(number? markup?)
#{ \markup \pad-x #amount #arg #})

dashPlus = "trill"

\include "articulate.ly"

\header {
}

\layout {
  indent = 35
  short-indent = 15
  \context {
    \Score
    \override NonMusicalPaperColumn #'line-break-permission = ##f
    \override NonMusicalPaperColumn #'page-break-permission = ##f
    \override BarNumber #'font-shape = #'italic
    \override BarNumber #'self-alignment-X = #LEFT
    \override InstrumentName #'self-alignment-X = #RIGHT
  }
}

\paper {
  #(set-paper-size "a4")
  print-page-number = ##t
  print-first-page-number = ##f
  oddHeaderMarkup = \markup {
    \fill-line {
      \null
      \on-the-fly #print-page-number-check-first
      \fromproperty #'page:page-number-string
    }
  }
}

musicI = {
  \clef treble
  \key e \major
  \time 4/4

  \repeat unfold 2 { b'8 a16 gis a8 b cis b4 e,8 } cis'8 b4 a8 gis fis16 e fis4-+ e r8 e_\p b'8 a16 gis a8 b \break
}

musicII = {
  \clef treble
  \key e \major
  \time 4/4

  \repeat unfold 2 { b'8 a16 gis a8 b cis b4 e,8 } cis'8 b4 a8 gis fis16 e fis4-+ e r8 e_\p b'8 a16 gis a8 b \break
}

musicV = {
  \clef bass
  \key e \major
  \time 4/4
 
  \repeat unfold 9 { e4 } e8 b e[ e,] b'' b, e,4 r8 e'_\p e4 e \break
}

music = { <<
  \new StaffGroup <<
    \new Staff = "violin0" \with { midiInstrument = #"violin" }
    \tag #'midi \articulate \relative c'' \musicI
    \tag #'print \relative c'' \musicI

    \new Staff = "viola" \with { midiInstrument = #"viola" }
    \tag #'midi \articulate \relative c' \musicII
    \tag #'print \relative c' \musicII

    \new Staff = "cello" \with { midiInstrument = #"church organ" }
    \relative c {
      \musicV
    }
  >>
>> }

\score {
  \keepWithTag #'print
  \music
 
  \layout { }


\score {
  \unfoldRepeats

<<
  \keepWithTag #'midi
  \music
>>

  \midi {
    \context {
      \Staff
      \remove "Staff_performer"
    }
    \context {
      \Voice
      \consists "Staff_performer"     
    }
    \tempo 4 = 100
  }
}
Titel: Re: tremolo
Beitrag von: eluze am Donnerstag, 24. Oktober 2013, 11:27
hallo

unbedingt auf die klammerung achten:

\tag #'midi \articulate \relative c'' \musicI
 \tag #'midi bezieht sich nur auf das erste objekt \articulate

es müsste aber heissen:
\tag #'midi    {    \articulate \relative c'' \musicI }
Eluze
Titel: Re: tremolo
Beitrag von: DocTaxon am Freitag, 25. Oktober 2013, 16:28
Danke, das ändert aber leider nichts an der fehlerhaften print- und midi-Darstellung.

DocTaxon ...
Titel: Re: tremolo
Beitrag von: harm6 am Freitag, 25. Oktober 2013, 21:00
Nun, mit ein paar Klammern mehr scheint es zu klappen:

\version "2.16.0"

padInstr =
#(define-scheme-function (parser location amount arg)(number? markup?)
#{ \markup \pad-x #amount #arg #})

dashPlus = "trill"

\include "articulate.ly"

\header {
}

\layout {
  indent = 35
  short-indent = 15
  \context {
    \Score
    \override NonMusicalPaperColumn #'line-break-permission = ##f
    \override NonMusicalPaperColumn #'page-break-permission = ##f
    \override BarNumber #'font-shape = #'italic
    \override BarNumber #'self-alignment-X = #LEFT
    \override InstrumentName #'self-alignment-X = #RIGHT
  }
}

\paper {
  #(set-paper-size "a4")
  print-page-number = ##t
  print-first-page-number = ##f
  oddHeaderMarkup = \markup {
    \fill-line {
      \null
      \on-the-fly #print-page-number-check-first
      \fromproperty #'page:page-number-string
    }
  }
}

musicI = {
  \clef treble
  \key e \major
  \time 4/4

  \repeat unfold 2 { b'8 a16 gis a8 b cis b4 e,8 } cis'8 b4 a8 gis fis16 e fis4-+ e r8 e_\p b'8 a16 gis a8 b \break
}

musicII = {
  \clef treble
  \key e \major
  \time 4/4

  \repeat unfold 2 { b'8 a16 gis a8 b cis b4 e,8 } cis'8 b4 a8 gis fis16 e fis4-+ e r8 e_\p b'8 a16 gis a8 b \break
}

musicV = {
  \clef bass
  \key e \major
  \time 4/4
 
  \repeat unfold 9 { e4 } e8 b e[ e,] b'' b, e,4 r8 e'_\p e4 e \break
}

music = { <<
  \new StaffGroup <<
    \new Staff = "violin0" \with { midiInstrument = #"violin" }
    <<
    \tag #'midi { \articulate \relative c'' \musicI }
    \tag #'print { \relative c'' \musicI }
    >>

    \new Staff = "viola" \with { midiInstrument = #"viola" }
    <<
    \tag #'midi { \articulate \relative c' \musicII }
    \tag #'print { \relative c' \musicII }
    >>

    \new Staff = "cello" \with { midiInstrument = #"church organ" }
    \relative c {
      \musicV
    }
  >>
>> }

\score {
  \keepWithTag #'print
  \music
 
  \layout { }


\score {
  \unfoldRepeats

<<
  \keepWithTag #'midi
  \music
>>

  \midi {
    \context {
      \Staff
      \remove "Staff_performer"
    }
    \context {
      \Voice
      \consists "Staff_performer"     
    }
    \tempo 4 = 100
  }
}


Gruß,
  Harm
Titel: Re: tremolo
Beitrag von: eluze am Freitag, 25. Oktober 2013, 23:05
Danke, das ändert aber leider nichts an der fehlerhaften print- und midi-Darstellung.

DocTaxon ...

das war ja nur ein beispiel. die anderen stellen musst du selber suchen! -Eluze
Titel: Re: tremolo
Beitrag von: DocTaxon am Samstag, 26. Oktober 2013, 08:40
Ja, ich dachte auch, ihr redet von den geschweiften Klammern. Jetzt habe ich auch noch die eckigen Klammern gesetzt, und es funktioniert sehr gut.

Bin voll zufrieden, vielen Dank für Eure Hilfe,
DocTaxon ...