GuitarPrometheus::Render::Smufl
GuitarPrometheus::Render::Smufl
SMuFL (Standard Music Font Layout) codepoint constants for the glyphs the renderer paints. More…
Functions
| Name | |
|---|---|
| juce::juce_wchar | codepointForNotehead(MusicModels::NoteValue value) Codepoint for a notehead given an engraved NoteValue. |
| juce::juce_wchar | codepointForRest(MusicModels::NoteValue value) Codepoint for a rest glyph given an engraved NoteValue. |
Attributes
| Name | |
|---|---|
| constexpr juce::juce_wchar | gClef Treble clef. |
| constexpr juce::juce_wchar | fClef Bass clef. |
| constexpr juce::juce_wchar | noteheadDoubleWhole |
| constexpr juce::juce_wchar | noteheadWhole |
| constexpr juce::juce_wchar | noteheadHalf |
| constexpr juce::juce_wchar | noteheadBlack Quarter and shorter — filled head. |
| constexpr juce::juce_wchar | accidentalSharp |
| constexpr juce::juce_wchar | accidentalFlat |
| constexpr juce::juce_wchar | accidentalNatural |
| constexpr juce::juce_wchar | accidentalDoubleSharp |
| constexpr juce::juce_wchar | accidentalDoubleFlat |
| constexpr juce::juce_wchar | restWhole |
| constexpr juce::juce_wchar | restHalf |
| constexpr juce::juce_wchar | restQuarter |
| constexpr juce::juce_wchar | restEighth |
| constexpr juce::juce_wchar | restSixteenth |
| constexpr juce::juce_wchar | restThirtySecond |
| constexpr juce::juce_wchar | dynamicForte |
| constexpr juce::juce_wchar | dynamicMezzo |
| constexpr juce::juce_wchar | dynamicPiano |
| constexpr juce::juce_wchar | dynamicSforzando |
Detailed Description
SMuFL (Standard Music Font Layout) codepoint constants for the glyphs the renderer paints.
These codepoints are stable across SMuFL-conformant music fonts (Bravura, Petaluma, Leland, …) so swapping the bundled font is a one-createSystemTypefaceFor change without touching call sites. Reference: https://www.smufl.org/version/latest/
The set is intentionally small for v1 — only the glyphs the F11.1 + F11.3 paint passes need. As additional notation is added to the renderer, extend this header rather than embedding codepoints in paint code.
Functions Documentation
function codepointForNotehead
juce::juce_wchar codepointForNotehead( MusicModels::NoteValue value)Codepoint for a notehead given an engraved NoteValue.
Quarter and shorter share the filled-black head — flag count comes from the stem decoration, not the head.
function codepointForRest
juce::juce_wchar codepointForRest( MusicModels::NoteValue value)Codepoint for a rest glyph given an engraved NoteValue.
Falls back to the quarter rest for any value the font doesn’t carry a glyph for in the small bundled set.
Attributes Documentation
variable gClef
constexpr juce::juce_wchar gClef = 0xE050;Treble clef.
variable fClef
constexpr juce::juce_wchar fClef = 0xE062;Bass clef.
variable noteheadDoubleWhole
constexpr juce::juce_wchar noteheadDoubleWhole = 0xE0A0;variable noteheadWhole
constexpr juce::juce_wchar noteheadWhole = 0xE0A2;variable noteheadHalf
constexpr juce::juce_wchar noteheadHalf = 0xE0A3;variable noteheadBlack
constexpr juce::juce_wchar noteheadBlack = 0xE0A4;Quarter and shorter — filled head.
variable accidentalSharp
constexpr juce::juce_wchar accidentalSharp = 0xE262;variable accidentalFlat
constexpr juce::juce_wchar accidentalFlat = 0xE260;variable accidentalNatural
constexpr juce::juce_wchar accidentalNatural = 0xE261;variable accidentalDoubleSharp
constexpr juce::juce_wchar accidentalDoubleSharp = 0xE263;variable accidentalDoubleFlat
constexpr juce::juce_wchar accidentalDoubleFlat = 0xE264;variable restWhole
constexpr juce::juce_wchar restWhole = 0xE4E3;variable restHalf
constexpr juce::juce_wchar restHalf = 0xE4E4;variable restQuarter
constexpr juce::juce_wchar restQuarter = 0xE4E5;variable restEighth
constexpr juce::juce_wchar restEighth = 0xE4E6;variable restSixteenth
constexpr juce::juce_wchar restSixteenth = 0xE4E7;variable restThirtySecond
constexpr juce::juce_wchar restThirtySecond = 0xE4E8;variable dynamicForte
constexpr juce::juce_wchar dynamicForte = 0xE522;variable dynamicMezzo
constexpr juce::juce_wchar dynamicMezzo = 0xE521;variable dynamicPiano
constexpr juce::juce_wchar dynamicPiano = 0xE520;variable dynamicSforzando
constexpr juce::juce_wchar dynamicSforzando = 0xE539;Updated on 2026-05-29 at 07:39:52 +0000