• Willkommen im Forum „Archiviertes Lilypond Forum (2017)“.
 

Dies ist das Archiv des alten Forums (bis März 2017). Das aktuelle Forum ist unter lilypondforum.de zu finden.
This is the archive of the old forum (until March 2017). You can find the current forum at lilypondforum.de.

Hauptmenü

tremolo

Begonnen von DocTaxon, Sonntag, 20. Oktober 2013, 17:25

Vorheriges Thema - Nächstes Thema

DocTaxon

Hallo!

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

Danke sehr, DocTaxon


DocTaxon

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.

harm6

ZitatNaja, 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
ZitatIch 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


DocTaxon

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 { }
}

fugenkomponist

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'' }).

DocTaxon

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
  }
}

harm6

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

DocTaxon

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 ...

harm6

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

DocTaxon

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
  }
}

eluze

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

DocTaxon

Danke, das ändert aber leider nichts an der fehlerhaften print- und midi-Darstellung.

DocTaxon ...

harm6

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

eluze

Zitat von: DocTaxon am Freitag, 25. Oktober 2013, 16:28
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