LilyPond

Comments Off on LilyPond

A music-related request!

LilyPond is a computer-aided music typesetting system. Here’s how to write “Hello World!” (or rather, a musical equivalent) using LilyPond:

\version "2.20.0"

\header {
  title = "Hello World!"
}

\relative c' {
  \clef treble
  \key c \major

  g4 e8 d4. g8 |
  fis4. e8 d4. d8 |
  g4 e8 d4. g8 |
  fis4. e8 d4. d8 |

  \bar "|."
}

Let’s break it down:

  • \version "2.20.0" specifies the version of LilyPond we’re using.
  • \header defines metadata for our piece, including a title.
  • \relative c' starts a new relative context (think of it as a staff) with middle C (c) as the reference pitch.
  • \clef treble sets the clef to treble (a common range for melodic instruments).
  • \key c \major sets the key to C major, which affects the pitch relationships within our music.
  • The subsequent lines are a simple melody in 4/4 time, using quarter notes and eighth notes. You can think of it as a musical “Hello World!” equivalent.

To render this LilyPond code into a musical notation file (e.g., PDF), you’ll need to have LilyPond installed on your system. Once you’ve done that, simply run the code through the lilypond command-line tool or use an IDE like MuseScore with LilyPond support.

Prompt
young woman, beautiful face, standing, great body, gorgeous figure, long legs, pretty eyes, long hair, learns LilyPond programming language, beautiful background, magnificent scenery, Mary Cassatt style, HD, sharp focus, stunningly beautiful, Real estate photography style, Professional, inviting, well-lit, high-resolution, property-focused, commercial, highly detailed

Negative prompt
(worst quality, low quality, normal quality, lowres, low details, oversaturated, undersaturated, overexposed, underexposed, grayscale, bw, bad photo, bad photography, bad art:1.4), (watermark, signature, text font, username, error, logo, words, letters, digits, autograph, trademark, name:1.2), verybadimagenegative, bad_prompt_version2-neg, easynegative, FastNegativeV2, dark, blurry, unappealing, noisy, unprofessional, extra eyes, bad eyes, ugly eyes, imperfect eyes, deformed pupils, deformed iris, cross-eyed, poorly drawn face, bad face, fused face, ugly face, worst face, unrealistic skin texture, out of frame, poorly drawn hands, cloned face, double face, blurry, bad quality

Text model: llama3

Image model: WildCardXXLAnimation