Class: Musa::MusicXML::Builder::Internal::UnpitchedNote Private
- Defined in:
- lib/musa-dsl/musicxml/builder/unpitched-note.rb
Overview
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Unpitched note for percussion and rhythm-only notation.
UnpitchedNote represents notes without specific pitch, primarily used for percussion instruments in drum notation. It extends Note with simplified pitch handling—no step, alter, or octave needed.
Use Cases
Percussion Notation
Drum kits, percussion ensembles, and rhythm sections use unpitched notes where vertical position on the staff indicates the instrument (not pitch):
- Snare drum
- Bass drum
- Hi-hat
- Cymbals
- Toms
- Auxiliary percussion
Rhythm-Only Notation
Teaching materials and rhythm exercises where pitch is irrelevant.
Tablature
Some tablature systems use unpitched notes with fret/string indications.
Staff Position
Unlike pitched notes, staff line position doesn't represent pitch but rather identifies the percussion instrument. This mapping is defined by the clef (typically percussion clef) and is instrument-specific.
Combining with Technical Markings
Unpitched notes support all standard notations (dynamics, articulations, etc.) but often use percussion-specific technicals like sticking patterns.
Usage
Created via Measure#add_unpitched or Measure#unpitched:
measure.unpitched duration: 2, type: 'quarter'
measure.add_unpitched duration: 1, type: 'eighth', accent: true
Instance Method Summary collapse
Constructor Details
#initialize(pizzicato: nil, grace: nil, cue: nil, chord: nil, duration: nil, tie_start: nil, tie_stop: nil, voice: nil, type: nil, dots: nil, accidental: nil, time_modification: nil, stem: nil, notehead: nil, staff: nil, accidental_mark: nil, arpeggiate: nil, tied: nil, tuplet: nil, dynamics: nil, fermata: nil, glissando: nil, non_arpeggiate: nil, slide: nil, slur: nil, accent: nil, breath_mark: nil, caesura: nil, detached_legato: nil, doit: nil, falloff: nil, other_articulation: nil, plop: nil, scoop: nil, spiccato: nil, staccatissimo: nil, staccato: nil, stress: nil, strong_accent: nil, tenuto: nil, unstress: nil, delayed_inverted_turn: nil, delayed_turn: nil, inverted_mordent: nil, inverted_turn: nil, mordent: nil, schleifer: nil, shake: nil, tremolo: nil, trill_mark: nil, turn: nil, vertical_turn: nil, wavy_line: nil, other_ornament: nil, ornament_accidental_mark: nil, arrow: nil, bend: nil, double_tongue: nil, down_bow: nil, fingering: nil, fingernails: nil, fret: nil, hammer_on: nil, handbell: nil, harmonic: nil, heel: nil, hole: nil, open_string: nil, other_technical: nil, pluck: nil, pull_off: nil, snap_pizzicato: nil, stopped: nil, string: nil, tap: nil, thumb_position: nil, toe: nil, triple_tongue: nil, up_bow: nil, &block) ⇒ UnpitchedNote
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Creates an unpitched note.
For detailed parameter documentation, see Note#initialize
84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 |
# File 'lib/musa-dsl/musicxml/builder/unpitched-note.rb', line 84 def initialize(pizzicato: nil, grace: nil, cue: nil, chord: nil, duration: nil, tie_start: nil, tie_stop: nil, voice: nil, type: nil, dots: nil, accidental: nil, time_modification: nil, stem: nil, notehead: nil, staff: nil, accidental_mark: nil, arpeggiate: nil, tied: nil, tuplet: nil, dynamics: nil, fermata: nil, glissando: nil, non_arpeggiate: nil, slide: nil, slur: nil, accent: nil, breath_mark: nil, caesura: nil, detached_legato: nil, doit: nil, falloff: nil, other_articulation: nil, plop: nil, scoop: nil, spiccato: nil, staccatissimo: nil, staccato: nil, stress: nil, strong_accent: nil, tenuto: nil, unstress: nil, delayed_inverted_turn: nil, delayed_turn: nil, inverted_mordent: nil, inverted_turn: nil, mordent: nil, schleifer: nil, shake: nil, tremolo: nil, trill_mark: nil, turn: nil, vertical_turn: nil, wavy_line: nil, other_ornament: nil, ornament_accidental_mark: nil, arrow: nil, bend: nil, double_tongue: nil, down_bow: nil, fingering: nil, fingernails: nil, fret: nil, hammer_on: nil, handbell: nil, harmonic: nil, heel: nil, hole: nil, open_string: nil, other_technical: nil, pluck: nil, pull_off: nil, snap_pizzicato: nil, stopped: nil, string: nil, tap: nil, thumb_position: nil, toe: nil, triple_tongue: nil, up_bow: nil, &block) super end |