Noten nicht so klingen lassen, wie sie geschrieben sind

Begonnen von juerg5524, Freitag, 23. Juli 2021, 09:30

« vorheriges - nächstes »

juerg5524

Hallo zusammen

Im Anhang ist ein Stück, das die klingen Noten enthält (Violinschlüssel) und die Griffschrift-Noten für Steirische Harmonika (farbige Noten). Ist es möglich, dass ich nur die Griffschrift anzeige, aber beim Abspielen, die Noten richtig klingen? (Ein E5 als Es5 und ein D6 als Es6 klingen)


juerg5524

Nein, keine lineare Transponierung. Das Stück GS4UnterdemDoppeladler.ly ist ein Beispiel. Die beiden Noten-Linien, die mit Violinschlüssel und die Griffschrift, sollten zusammengeführt werden. Dann sollte nur noch die Griffschrift sichtbar sein. Beim Abspielen sollte man die Violinschlüssel-Noten hören. 

amateur

\version "2.20.0"
\header {
  title = "Transpositionsbeispiel"}

Original = {
\time 2/4
\override Staff.Clef.stencil = ##f
<e' d'' >8^"Original" <e' d'' >16 <e' d'' >16 <e' d'' >8 r8 |
\key c \major
\transposition b
<e' d'' >8^"Halbton tiefer" <e' d'' >16 <e' d'' >16 <e' d'' >8 r8 |
\transposition bes
<e' d'' >8^"Ganzton tiefer" <e' d'' >16 <e' d'' >16 <e' d'' >8 r8 |
}

\score {
  \layout {
  }
  \new Staff \Original
  \midi {
}
}


juerg5524

Danke, nettes Beispiel!

Die "\transposition" muss vor jeder Note stehen. Kann ich dafür einen kurzen "Alias" definieren?

amateur

Zitat von: juerg5524 am Sonntag, 25. Juli 2021, 13:01
Die "\transposition" muss vor jeder Note stehen.
Nein. Alles was nach \transposition steht, wird erfasst. Schau dir doch einfach den Link oben an.

harm6

#6
Warum nicht Variablen und zwei Scores
\score {
  \griffe
  \layout {}
}
\score {
  \noten
  \midi {}
}

?

Gruß,
  Harm

EDIT
Natürlich andersherum: \griffe mit \layout, \noten mit \midi
Dahingehend geändert.

juerg5524

Hallo Harm

In meinem Beispiel (GS4UnterdemDoppeladler.ly) gibt es bereits zwei Notenzeilen. Aber das Abspielen funktioniert leider nicht. Kann man das anpassen?

Grüsse
Jürg

harm6

Folgendes funktioniert bei mir:


\version "2.20.0"
\header {
  title = "GS4UnterdemDoppeladler.ly"
}

noten = \new Staff {
  \time 2/4
  \key f \minor
  \override NoteHead.color = #black
  <es' es'' >8 <es' es'' >16 <es' es'' >16 <es' es'' >8 r8
   | % 2
  <es' es'' >8 <es' es'' >16 <es' es'' >16 <es' es'' >8 r8
   | % 3
  <as' as'' >8 <as' as'' >16 <as' as'' >16 <as' as'' >8 <as' as'' >8
   | % 4
  <g' g'' >8 <es' es'' >16 <es' es'' >16 <es' es'' >8 r8
   | % 5
  <c'' c''' >8 <c'' c''' >16 <c'' c''' >16 <c'' c''' >8 r8
   | % 6
  <bes' bes'' >8 <bes' bes'' >16 <bes' bes'' >16 <bes' bes'' >8 bes'16 bes'16
   | % 7
  bes'16 c''16 d''16 es''16 <d'' f'' >8 <bes' g'' >8
   | % 8
  <g' es'' >8 <g' es'' >16 <g' es'' >16 <g' es'' >8 r8
   | % 9
  <bes' bes'' >8 <bes' bes'' >16 <bes' bes'' >16 <bes' bes'' >8 <bes' bes'' >16 <bes' bes'' >16
   | % 10
  <bes' bes'' >16 <c'' c''' >8 <bes' bes'' >16 <as' as'' >16 <g' g'' >8 <f' f'' >16
   | % 11
  <es' es'' >8 r8 <as'' f'' >8. <as'' f'' >16
   | % 12
  <es'' g'' >8. <des'' f'' >16 <es'' g'' >8. <des'' f'' >16
   | % 13
  <es'' g'' >8. <des'' f'' >16 <es'' g'' >8 <des'' f'' >8
   | % 14
  <c'' es'' >8. <as' c'' >16 <c'' es'' >4
   | % 15
  <c'' es'' >8 <c'' es'' >16 <c'' es'' >16 <c'' es'' >16 <des'' f'' >8 <as' c'' >16
   | % 16
  <g' des'' >16 es''16 g''16 bes''16 <g'' es''' >4
   | % 17
  <g'' es''' >8 <f'' des''' >8 <es'' c''' >8 <des'' bes'' >8
   | % 18
  <des'' bes'' >16 as''16 g''16 f''16 <c'' es'' >4
   | % 19
  <c'' es'' >8 r8 <f'' as'' >8. <f'' as'' >16
   | % 20
  <es'' g'' >8. <des'' f'' >16 <es'' g'' >8. <des'' f'' >16
   | % 21
  <es'' g'' >8. <des'' f'' >16 <es'' g'' >8 <des'' f'' >8
   | % 22
  <c'' es'' >8. <as' c'' >16 <c'' es'' >4
   | % 23
  <c'' es'' >8 <c'' es'' >16 <c'' es'' >16 <c'' es'' >16 <des'' f'' >8 <as' c'' >16
   | % 24
  <as' bes' >16 <bes' d'' >8 <d'' f'' >16 <d'' bes'' >4
   | % 25
  <as' bes' >16 <bes' d'' >8 <d'' f'' >16 <d'' bes'' >8. <as' d'' >16
   | % 26
  <g' es'' >8 <g' es'' >16 <g' es'' >16 <g' es'' >8 <g' es'' >8
   | % 27
  <g' es'' >8 r8 <f'' as'' >8. <f'' as'' >16
   | % 28
  <g' es'' >8 es'8 f'8 g'8
   | % 29
  r8 <c' es' as' >16 <c' es' as' >16 <c' es' as' >8 <c' es' as' >8
   | % 30
  r8 <c' es' as' >16 <c' es' as' >16 <c' es' as' >8 <c' es' as' >8
   | % 31
  r8 <c' es' as' >8 r8 <c' es' as' >8
   | % 32
  r8 <c' es' as' >16 <c' es' as' >16 <c' es' as' >8 <c' es' as' >8
   | % 33
  r8 <des' es' g' >8 r8 <des' es' g' >8
   | % 34
  r8 <des' es' g' >8 r8 <des' es' g' >8
   | % 35
  r8 <c' es' as' >16 <c' es' as' >16 <c' es' as' >8 <c' es' as' >8
   | % 36
  r8 <c' es' as' >16 <c' es' as' >16 <c' es' as' >8 <c' es' as' >8
   | % 37
  r8 <c' es' as' >8 r8 <c' es' as' >8
   | % 38
  r8 <c' es' as' >8 r8 <c' es' as' >8
   | % 39
  r8 <c' es' as' >8 r8 <c' es' as' >8
   | % 40
  r8 <c' es' as' >16 <c' es' as' >16 <c' es' as' >8 <c' es' as' >8
   | % 41
  r8 <des' es' g' >8 r8 <des' es' g' >8
   | % 42
  r8 <des' es' g' >8 r8 <des' es' g' >8
   | % 43
  <c' es' as' >8 r8 <des' es' g' >4
   | % 44
  <c' es' as' >8 es'8 f'8 as'8
   | % 45
  <c' es' as' >8 <c' es' as' >16 <c' es' as' >16 <c' es' as' >8 r8
   | % 46
  <f'' as'' des''' >8 r8 <f'' as'' des''' >8 r8
   | % 47
  <f'' as'' des''' >8 r8 <f'' as'' >4
   | % 48
  <des'' f'' bes'' >4 <des'' f'' >8 <des'' f'' bes'' >8
   | % 49
  <des'' f'' as'' >4 <des'' f'' >8. <as' des'' >16
   | % 50
  <f' as' >2
   | % 51
  <f' as' >8 r8 <f' as' >8. <as' des'' >16
   | % 52
  <des' f' bes' >4 <des' f' as' >4
   | % 53
  <f' as' des'' >4 <des'' f'' as'' >4
   | % 54
  <ges' as' c'' >2
   | % 55
  <ges' as' c'' >8 r8 <ges'' as'' >4
   | % 56
  <ges'' bes'' >4 <c'' ges'' >8 <ges'' bes'' >8
   | % 57
  <c'' as'' >4 <es'' ges'' >8. <as' c'' >16
   | % 58
  <ges' as' >2
   | % 59
  <ges' as' >8 r8 <as' c'' >8. <c'' es'' >16
   | % 60
  <ges' bes' >4 <ges' as' >4
   | % 61
  <as' c'' >4 <c'' as'' >4
   | % 62
  <des'' f'' >2
   | % 63
  <des'' f'' >8 r8 <f'' as'' >4
   | % 64
  <des'' f'' bes'' >4 <des'' f'' >8 <des'' f'' bes'' >8
   | % 65
  <des'' f'' as'' >4 <des'' f'' >8. <as' des'' >16
   | % 66
  <f' as' >2
   | % 67
  <f' as' >8 r8 <f' as' >8. <as' des'' >16
   | % 68
  <des' f' bes' >4 <des' f' as' >4
   | % 69
  <f' as' des'' >4 <des'' f'' as'' >4
   | % 70
  <ges'' bes'' des''' >2
   | % 71
  <ges'' bes'' des''' >8 r8 <ges'' bes'' des''' >8. <ges'' bes'' des''' >16
   | % 72
  <ges'' bes'' des''' >4 <ges'' bes'' des''' >4
   | % 73
  <as'' c''' >4 <ges'' bes'' >4
   | % 74
  <f'' as'' >2
   | % 75
  <f'' as'' >8 <f'' as'' >8 <des'' f'' >8 <des'' bes' >8
   | % 76
  <ges' as' >4 <bes' ges'' >4
   | % 77
  <as' f'' >4 <ges' es'' >4
   | % 78
  <f' as' des'' >8 r8 <ges' as' c'' >4
   | % 79
  <f' as' des'' >8 r8 <f'' as'' >4
   | % 80
  <f' as' des'' >8 <f' as' des'' >16 <f' as' des'' >16 <f' as' des'' >8
}

griffe = \new Staff {
  \time 2/4
  \override Staff.Clef.stencil = ##f
  \override NoteHead.color = #red
  <e' d'' >8 <e' d'' >16 <e' d'' >16 <e' d'' >8 r8
   | % 2
  <e' d'' >8 <e' d'' >16 <e' d'' >16 <e' d'' >8 r8
   | % 3
  <\xNote f' \xNote e'' >8 <\xNote f' \xNote e'' >16 <\xNote f' \xNote e'' >16 <\xNote f' \xNote e'' >8 <\xNote f' \xNote e'' >8
   | % 4
  <g' f'' >8 <e' d'' >16 <e' d'' >16 <e' d'' >8 r8
   | % 5
  \override NoteHead.color = #blue
  <e'' f''' >8 <e'' f''' >16 <e'' f''' >16 <e'' f''' >8 r8
   | % 6
  <\xNote f' \xNote g'' >8 <\xNote f' \xNote g'' >16 <\xNote f' \xNote g'' >16 <\xNote f' \xNote g'' >8 b'16 b'16
   | % 7
  b'16 e''16 d''16 \xNote c''16 <d'' f'' >8 <b' \xNote e'' >8
   | % 8
  \override NoteHead.color = #red
  <g' d'' >8 <g' d'' >16 <g' d'' >16 <g' d'' >8 r8
   | % 9
  \override NoteHead.color = #blue
  <\xNote f' \xNote g'' >8 <\xNote f' \xNote g'' >16 <\xNote f' \xNote g'' >16 <\xNote f' \xNote g'' >8 <\xNote f' \xNote g'' >16 <\xNote f' \xNote g'' >16
   | % 10
  <\xNote f' \xNote g'' >16 <e'' f''' >8 <\xNote f' \xNote g'' >16 <g' a'' >16 <\xNote d' \xNote e'' >8 <e' f'' >16
   | % 11
  \override NoteHead.color = #red
  <e' d'' >8 r8 <\xNote e'' g'' >8. <\xNote e'' g'' >16
   | % 12
  \override NoteHead.color = #blue
  <\xNote c'' \xNote e'' >8. <\xNote a' f'' >16 <\xNote c'' \xNote e'' >8. <\xNote a' f'' >16
   | % 13
  <\xNote c'' \xNote e'' >8. <\xNote a' f'' >16 <\xNote c'' \xNote e'' >8 <\xNote a' f'' >8
   | % 14
  \override NoteHead.color = #red
  <\xNote a' \xNote c'' >8. <\xNote f' \xNote a' >16 <\xNote a' \xNote c'' >4
   | % 15
  <\xNote a' \xNote c'' >8 <\xNote a' \xNote c'' >16 <\xNote a' \xNote c'' >16 <\xNote a' \xNote c'' >16 <\xNote g' \xNote b' >8 <\xNote f' \xNote a' >16
   | % 16
  \override NoteHead.color = #blue
  <\xNote d' \xNote a' >16 \xNote c''16 \xNote e''16 \xNote g''16 <\xNote e'' \xNote a'' >4
   | % 17
  <\xNote e'' \xNote a'' >8 <f'' \xNote b'' >8 <\xNote c'' \xNote f'' >8 <\xNote a' \xNote g'' >8
   | % 18
  \override NoteHead.color = #red
  <\xNote g' a'' >16 \xNote e''16 f''16 \xNote b'16 <\xNote a' \xNote c'' >4
   | % 19
  <\xNote a' \xNote c'' >8 r8 <\xNote b' \xNote d'' >8. <\xNote b' \xNote d'' >16
   | % 20
  \override NoteHead.color = #blue
  <\xNote c'' \xNote e'' >8. <\xNote a' f'' >16 <\xNote c'' \xNote e'' >8. <\xNote a' f'' >16
   | % 21
  <\xNote c'' \xNote e'' >8. <\xNote a' f'' >16 <\xNote c'' \xNote e'' >8 <\xNote a' f'' >8
   | % 22
  \override NoteHead.color = #red
  <\xNote a' \xNote c'' >8. <\xNote f' \xNote a' >16 <\xNote a' \xNote c'' >4
   | % 23
  <\xNote a' \xNote c'' >8 <\xNote a' \xNote c'' >16 <\xNote a' \xNote c'' >16 <\xNote a' \xNote c'' >16 <\xNote g' \xNote b' >8 <\xNote f' \xNote a' >16
   | % 24
  \override NoteHead.color = #blue
  <g' b' >16 <b' d'' >8 <d'' f'' >16 <d'' \xNote g'' >4
   | % 25
  <g' b' >16 <b' d'' >8 <d'' f'' >16 <d'' \xNote g'' >8. <g' d'' >16
   | % 26
  \override NoteHead.color = #red
  <g' d'' >8 <g' d'' >16 <g' d'' >16 <g' d'' >8 <g' d'' >8
   | % 27
  <g' d'' >8 r8 <\xNote b' \xNote d'' >8. <\xNote b' \xNote d'' >16
   | % 28
  <g' d'' >8
  \override NoteHead.color = #blue
  \xNote b8 e'8
  \override NoteHead.color = #red
  g'8
   | % 29
  r8 <\xNote b \xNote d' \xNote f' >16 <\xNote b \xNote d' \xNote f' >16 <\xNote b \xNote d' \xNote f' >8 <\xNote b \xNote d' \xNote f' >8
   | % 30
  r8 <\xNote b \xNote d' \xNote f' >16 <\xNote b \xNote d' \xNote f' >16 <\xNote b \xNote d' \xNote f' >8 <\xNote b \xNote d' \xNote f' >8
   | % 31
  r8 <\xNote b \xNote d' \xNote f' >8 r8 <\xNote b \xNote d' \xNote f' >8
   | % 32
  r8 <\xNote b \xNote d' \xNote f' >16 <\xNote b \xNote d' \xNote f' >16 <\xNote b \xNote d' \xNote f' >8 <\xNote b \xNote d' \xNote f' >8
   | % 33
  r8
  \override NoteHead.color = #blue
  <\xNote g \xNote b \xNote d' >8 r8
  \override NoteHead.color = #red
  <\xNote a \xNote d' g' >8
   | % 34
  r8
  \override NoteHead.color = #blue
  <\xNote g \xNote b \xNote d' >8 r8 <\xNote g \xNote b \xNote d' >8
   | % 35
  r8
  \override NoteHead.color = #red
  <\xNote b \xNote d' \xNote f' >16 <\xNote b \xNote d' \xNote f' >16 <\xNote b \xNote d' \xNote f' >8 <\xNote b \xNote d' \xNote f' >8
   | % 36
  r8 <\xNote b \xNote d' \xNote f' >16 <\xNote b \xNote d' \xNote f' >16 <\xNote b \xNote d' \xNote f' >8 <\xNote b \xNote d' \xNote f' >8
   | % 37
  r8 <\xNote b \xNote d' \xNote f' >8 r8 <\xNote b \xNote d' \xNote f' >8
   | % 38
  r8 <\xNote b \xNote d' \xNote f' >8 r8 <\xNote b \xNote d' \xNote f' >8
   | % 39
  r8 <\xNote b \xNote d' \xNote f' >8 r8 <\xNote b \xNote d' \xNote f' >8
   | % 40
  r8 <\xNote b \xNote d' \xNote f' >16 <\xNote b \xNote d' \xNote f' >16 <\xNote b \xNote d' \xNote f' >8 <\xNote b \xNote d' \xNote f' >8
   | % 41
  r8
  \override NoteHead.color = #blue
  <\xNote g \xNote b \xNote d' >8 r8
  \override NoteHead.color = #red
  <\xNote a \xNote d' g' >8
   | % 42
  r8
  \override NoteHead.color = #blue
  <\xNote g \xNote b \xNote d' >8 r8 <\xNote g \xNote b \xNote d' >8
   | % 43
  \override NoteHead.color = #red
  <\xNote b \xNote d' \xNote f' >8 r8
  \override NoteHead.color = #blue
  <\xNote g \xNote b \xNote d' >4
   | % 44
  \override NoteHead.color = #red
  <\xNote b \xNote d' \xNote f' >8
  \override NoteHead.color = #blue
  \xNote b8 e'8 g'8
   | % 45
  \override NoteHead.color = #red
  <\xNote b \xNote d' \xNote f' >8 <\xNote b \xNote d' \xNote f' >16 <\xNote b \xNote d' \xNote f' >16 <\xNote b \xNote d' \xNote f' >8 r8
   | % 46
  <\xNote b' \xNote d'' \xNote f'' >8 r8 <\xNote b' \xNote d'' \xNote f'' >8 r8
   | % 47
  <\xNote b' \xNote d'' \xNote f'' >8 r8 <\xNote b' \xNote d'' >4
   | % 48
  <\xNote g' \xNote b' a'' >4 <\xNote g' \xNote b' >8 <\xNote g' \xNote b' a'' >8
   | % 49
  <\xNote g' \xNote b' \xNote d'' >4 <\xNote g' \xNote b' >8. <\xNote e' \xNote g' >16
   | % 50
  <\xNote c' \xNote e' >2
   | % 51
  <\xNote c' \xNote e' >8 r8 <\xNote c' \xNote e' >8. <\xNote e' \xNote g' >16
   | % 52
  <\xNote a \xNote c' b' >4 <\xNote a \xNote c' \xNote e' >4
   | % 53
  <\xNote c' \xNote e' \xNote g' >4 <\xNote g' \xNote b' \xNote d'' >4
   | % 54
  \override NoteHead.color = #blue
  <\xNote a \xNote c' \xNote e' >2
   | % 55
  <\xNote a \xNote c' \xNote e' >8 r8 <\xNote b' \xNote d'' >4
   | % 56
  <\xNote b' \xNote g'' >4 <\xNote e' \xNote b' >8 <\xNote b' \xNote g'' >8
   | % 57
  <\xNote e' \xNote d'' >4 <\xNote g' \xNote b' >8. <\xNote c' \xNote e' >16
   | % 58
  <\xNote a \xNote c' >2
   | % 59
  <\xNote a \xNote c' >8 r8 <\xNote c' \xNote e' >8. <\xNote e' \xNote g' >16
   | % 60
  <\xNote a \xNote f' >4 <\xNote a \xNote c' >4
   | % 61
  <\xNote c' \xNote e' >4 <\xNote e' \xNote d'' >4
   | % 62
  \override NoteHead.color = #red
  <\xNote g' \xNote b' >2
   | % 63
  <\xNote g' \xNote b' >8 r8 <\xNote b' \xNote d'' >4
   | % 64
  <\xNote g' \xNote b' a'' >4 <\xNote g' \xNote b' >8 <\xNote g' \xNote b' a'' >8
   | % 65
  <\xNote g' \xNote b' \xNote d'' >4 <\xNote g' \xNote b' >8. <\xNote e' \xNote g' >16
   | % 66
  <\xNote c' \xNote e' >2
   | % 67
  <\xNote c' \xNote e' >8 r8 <\xNote c' \xNote e' >8. <\xNote e' \xNote g' >16
   | % 68
  <\xNote a \xNote c' b' >4 <\xNote a \xNote c' \xNote e' >4
   | % 69
  <\xNote c' \xNote e' \xNote g' >4 <\xNote g' \xNote b' \xNote d'' >4
   | % 70
  \override NoteHead.color = #blue
  <\xNote b' \xNote g'' \xNote b'' >2
   | % 71
  <\xNote b' \xNote g'' \xNote b'' >8 r8 <\xNote b' \xNote g'' \xNote b'' >8. <\xNote b' \xNote g'' \xNote b'' >16
   | % 72
  <\xNote b' \xNote g'' \xNote b'' >4 <\xNote b' \xNote g'' \xNote b'' >4
   | % 73
  <\xNote d'' \xNote f'' >4 <\xNote b' \xNote g'' >4
   | % 74
  \override NoteHead.color = #red
  <\xNote b' \xNote d'' >2
   | % 75
  <\xNote b' \xNote d'' >8 <\xNote b' \xNote d'' >8 <\xNote g' \xNote b' >8 <\xNote g' b' >8
   | % 76
  \override NoteHead.color = #blue
  <\xNote a \xNote c' >4 <\xNote f' \xNote b' >4
   | % 77
  <\xNote c' f'' >4 <\xNote a \xNote g' >4
   | % 78
  \override NoteHead.color = #red
  <\xNote c' \xNote e' \xNote g' >8 r8
  \override NoteHead.color = #blue
  <\xNote a \xNote c' \xNote e' >4
   | % 79
  \override NoteHead.color = #red
  <\xNote c' \xNote e' \xNote g' >8 r8 <\xNote b' \xNote d'' >4
   | % 80
  <\xNote c' \xNote e' \xNote g' >8 <\xNote c' \xNote e' \xNote g' >16 <\xNote c' \xNote e' \xNote g' >16 <\xNote c' \xNote e' \xNote g' >8
}

\score {
  \griffe
  \layout {}
}

\score {
  \noten
  \midi {}
}


Vorausgesetzt ich versteh' die Frage richtig ...

Gruß,
  Harm

juerg5524


Arnold

Hallo Jürg,

die Griffschrift (Diskant) der Steirischen war ja schon ein paar Mal Thema in diesem Forum.
Unter Spezielle Notation → Instrumentenspezifisch → Akkordeon (Akkorde, Griffschriften) im Beitrag
https://lilypondforum.de/index.php/topic,869.0.html
habe ich gezeigt, wie man die Tonhöhe als Pitch beibehalten kann (geht somit in die Midi-Ausgabe), und dennoch durch einen Quasi-Tabstaff (normaler Staff im with-Block abgeändert) vorgegebene oder errechnete Tasten-Koordinaten (anstelle der Tonhöhe) zur Notenkopfpositionierung nutzt und so die Griffschrift druckt.
Dann kann sogar alles (Druckbild und Midi-Spur) in einem System bleiben - bzw. dann ist es egal, ob man für die Midi-Ausgabe bei einer Gegenüberstellung von Griffschrift und Pianoakkordeonschrift die eine oder die andere Diskantzeile heranzieht.

Arnold