Jump to content

Woodwind diagrams key lists: Difference between revisions

From LilyPond wiki
m New category
Tags: Mobile edit Mobile web edit
mNo edit summary
 
Line 1: Line 1:
The snippet below produces a list of all possible keys and key settings for woodwind diagrams as defined in <code>scm/define-woodwind-diagrams.scm</code>. The list will be displayed in the log file, but not in the music. If output to the console is wanted, omit the <code>(current-error-port)</code> from the commands.
The snippet below produces a list of all possible keys and key settings for woodwind diagrams as defined in <code>scm/define-woodwind-diagrams.scm</code>. The list gets written to stderr but is not shown in the music (which means that the output displayed here in the Wiki is meaningless – you have to execute the code manually). If output to stdout is wanted instead, omit the code <code>(current-error-port)</code> from the commands.


<lilypond version="2.24">
<lilypond version="2.24">
Line 21: Line 21:
</lilypond>
</lilypond>


[[Category:Instrument-specific]]
[[Category:Non-music]]
[[Category:Winds]]
[[Category:Included in the official documentation]]
[[Category:Included in the official documentation]]
[[Category:Winds]]
[[Category:Snippet]]
[[Category:Snippet]]

Latest revision as of 13:01, 15 December 2025

The snippet below produces a list of all possible keys and key settings for woodwind diagrams as defined in scm/define-woodwind-diagrams.scm. The list gets written to stderr but is not shown in the music (which means that the output displayed here in the Wiki is meaningless – you have to execute the code manually). If output to stdout is wanted instead, omit the code (current-error-port) from the commands.

\version "2.24"

#(print-keys-verbose 'piccolo (current-error-port))
#(print-keys-verbose 'flute (current-error-port))
#(print-keys-verbose 'flute-b-extension (current-error-port))
#(print-keys-verbose 'tin-whistle (current-error-port))
#(print-keys-verbose 'oboe (current-error-port))
#(print-keys-verbose 'clarinet (current-error-port))
#(print-keys-verbose 'bass-clarinet (current-error-port))
#(print-keys-verbose 'low-bass-clarinet (current-error-port))
#(print-keys-verbose 'saxophone (current-error-port))
#(print-keys-verbose 'soprano-saxophone (current-error-port))
#(print-keys-verbose 'alto-saxophone (current-error-port))
#(print-keys-verbose 'tenor-saxophone (current-error-port))
#(print-keys-verbose 'baritone-saxophone (current-error-port))
#(print-keys-verbose 'bassoon (current-error-port))
#(print-keys-verbose 'contrabassoon (current-error-port))

\score {c''1}