lilypond-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Extracting pitch of first note, then assign duration


From: Matthew Fong
Subject: Extracting pitch of first note, then assign duration
Date: Sun, 7 Mar 2021 11:03:41 -0800

Hello everyone,

I am in the process of writing a note replacement function that allows me to place a custos anywhere I might need.

I am stuck on writing a function that extracts the pitch of the first note, given a list of notes, and then forcing a duration of 1/4. Any pointers would be appreciated.

For example given the list of notes below, I would like a function to output c4.
{
  \clef treble
  c2 d e f
  g4 a b c
}


Many thanks,
mattfong

reply via email to

[Prev in Thread] Current Thread [Next in Thread]