Internationale Chordnames bei deutschen Notennamen - wie? selber gelöst

Begonnen von Manuela, Montag, 28. August 2023, 18:43

« vorheriges - nächstes »

Manuela

Wenn ich folgendes eingebe

\version "2.25.7"
\language "deutsch"

\new ChordNames \chordmode { b4 }

erhalte ich Hb als Ausgabe, was nicht wirklich erwünscht ist.
War das immer schon so oder ist mir das nur nicht aufgefallen? Und wie kann ich zu korrekten Akkordbezeichnungen kommen?
Danke für eure Hilfe
viele Grüße
-- Manuela

Malte

Das kam mit einer der letzten Versionen (2.22 oder 2.24). Ich persönlich finde es furchtbar, weil bis dahin Eingabe- und Ausgabesprache immer fein säuberlich getrennt waren, und das nun nicht mehr gegeben ist. Mein Workaround: Noten auf deutsch eingeben und zum Schluss Frescobaldi übersetzen lassen. Das hat immer sehr zuverlässig funktioniert.

Manuela

Danke, Malte.

Es gibt doch diese Funktion, die deutsche Akkordnamen erzeugt. Könnte man die nicht für die internationalen umstricken?

#(define ((chord-name->german-markup-text-alteration B-instead-of-Bb) pitch lowercase?)

   (define (pitch-alteration-semitones pitch)
     (inexact->exact (round (* (ly:pitch-alteration pitch) 2))))

   (define (conditional-string-downcase str condition)
     (if condition
         (string-downcase str)
         str))

   (let* ((name (ly:pitch-notename pitch))
          (alt-semitones  (pitch-alteration-semitones pitch))
          (n-a (if (member (cons name alt-semitones) `((6 . -1) (6 . -1)))
                   (cons 7 (+ (if B-instead-of-Bb 1 1) alt-semitones))
                   (cons name alt-semitones))))
     (make-line-markup
      (list
       (make-simple-markup
        (conditional-string-downcase
         (vector-ref #("C" "D" "E" "F" "G" "A" "H" "B") (car n-a))
         lowercase?))
       (let ((alteration (/ (cdr n-a) 2)))
         (cond
          ((and (equal? lowercase? #f) (= alteration FLAT) (= (car n-a) 7)) (make-simple-markup ""))
          ((and (= alteration FLAT) (or (= (car n-a) 5) (= (car n-a) 2) )) (make-simple-markup "s"))
          ((= alteration FLAT) (make-simple-markup "es"))
          ((and (= alteration DOUBLE-FLAT) (or (= (car n-a) 5)(= (car n-a) 2) )) (make-simple-markup "ses"))
          ((= alteration DOUBLE-FLAT) (make-simple-markup "eses"))
          ((= alteration SHARP) (make-simple-markup "is"))
          ((= alteration DOUBLE-SHARP) (make-simple-markup "isis"))
          (else empty-markup)))))))

Das ganze "isis" und "eses" Zeugs könnte man weglassen. Leider ist mein Scheme wieder mal zu eingerostet, um schnell ein Ergebnis zu bekommen.
Danke für eure Hilfe
viele Grüße
-- Manuela

Manuela

Ich habe es geschafft, indem ich in den Quellcode einer älteren Version geschaut habe. Hier ein Anwendungsbeispiel:

\version "2.25.7"
\language "deutsch"

#(define (note-international->markup pitch lowercase?)
   "Return pitch markup for @var{pitch}."
   (define (accidental->markup alteration)
     "Return accidental markup for ALTERATION."
     (if (= alteration 0)
         (make-line-markup (list empty-markup))
         (conditional-kern-before
          (alteration->text-accidental-markup alteration)
          (= alteration FLAT) 0.094725)))
   (define (conditional-string-downcase str condition)
     (if condition
         (string-downcase str)
         str))
   (define (conditional-kern-before markup bool amount)
     "Add AMOUNT of space before MARKUP if BOOL is true."
     (if bool
         (make-line-markup
          (list (make-hspace-markup amount)
            markup))
         markup))
   (make-line-markup
    (list
     (make-simple-markup
      (conditional-string-downcase
       (vector-ref #("C" "D" "E" "F" "G" "A" "B") (ly:pitch-notename pitch))
       lowercase?))
     (accidental->markup (ly:pitch-alteration pitch)))))

\layout {
  \context {
    \ChordNames
    chordRootNamer = #note-international->markup
  }
}

\new ChordNames \chordmode { b4 es h }
Danke für eure Hilfe
viele Grüße
-- Manuela

Malte


Karren Brady

In der Musiknotation steht "Hb" für das deutsche Äquivalent zu "Bb" (Bb = B-Kreuz). Um die korrekten Akkordbezeichnungen zu erhalten, kannst du stattdessen "Bb" verwenden. Es ist möglich, dass sich die Standardnotation im Laufe der Zeit geändert hat.

Karren Brady

#6
How Often should you deep clean your keyboard?

Your keyboard needs to be cleaned frequently to ensure its functionality, cleanliness, and longevity. A common rule of thumb is to deep clean your keyboard every six months to a year, though the frequency may vary depending on your usage and surroundings. However, there are a number of things to take into account to save time when deciding how frequently you should deep clean your keyboard.

Usage: Your keyboard is likely to gather more dirt, dust, and debris the more you use it. If you often use your keyboard for business or gaming, it might need more frequent deep cleaning. Additionally, frequent use raises the possibility of spills or stains, which may call for more frequent cleaning.

Environment: Your keyboard gets dirty much faster depending on the environment in which you use it. Your keyboard is likely to gather junk and need more frequent deep cleaning if you operate in a dusty or unclean environment or if you eat and drink next to it.
CeilingFansLiving: Design your house with best ceiling fan

Personal Habits: Your food and hand hygiene routines can have an impact on how clean your keyboard is. It might need less frequent deep cleaning if you constantly wash your hands before using the keyboard and refrain from eating while typing.

Keyboard Cover: A keyboard cover helps shield your keyboard from dirt, liquid spills, and other foreign objects. By serving as a barrier, it lessens the need for thorough cleaning. You might be able to go longer between deep cleaning sessions if you cover your keyboard.

Sensitivity or Allergies: In order to keep your home clean and free of allergens, you may need to deep clean your keyboard more frequently if you or a family member has sensitivity or allergies to dust.

Regular maintenance and keyboard's surface cleaning are equally as crucial as deep cleaning. It is advisable to remove keyboard's surface dust and filth from the keyboard's surface once every few weeks using compressed air or a soft cloth.By practicing good cleanliness, you may maintain the functionality of your keyboard, reduce the possibility of malfunctions, and make typing a pleasure.

When performing a deep clean, it's imperative to follow the manufacturer's instructions, if any. If there are no instructions accessible, think about taking these standard actions:

Disconnect the keyboard from the power supply and shut off your computer.
Source: CeilingFansLiving - a website review of the best products on Amazon. You can refer to more ideas to freshen up your home with Ceilingfansliving website

If at all possible, remove the keycaps by following the manufacturer's instructions. Separately, wash the keycaps in warm water and a light detergent. Rinse them well, then let them totally air dry.

Use a damp cloth or one that has been lightly saturated with a mild cleaning agent to clean the keyboard's surface. Avoid excessive dampness, and make sure no liquids get near the ports or apertures on the keyboard.

Before reassembling the keycaps and re-connecting the keyboard to your computer, completely dry the keyboard.

Always refer to the manufacturer's instructions or seek professional advice from Ceilingfansliving websites if you are confused about the cleaning procedure for your specific keyboard because different keyboard models may have unique cleaning requirements.

You can keep your keyboard in top shape, reduce the possibility of malfunctions, and guarantee a pleasurable typing experience by following a regular cleaning routine and keeping excellent keyboard hygiene.
✹✹✹ You Might Also Enjoy: Great Product Reviews - Best Reviews Guide On Ceilingfansliving

Malte

Sorry, das ist leider nicht richtig: Der Ton/Akkord, der auf Englisch ,,B♭" heißt, heißt auf Deutsch ,,B", nicht ,,H♭", das war auch nie anders. Die Einzigen, die ,,H♭" schreiben, sind Harfenisten bei der Notation der Pedalstellungen.