Class: HeadMusic::Notation::ABC::Parser::PendingNote
- Inherits:
-
Data
- Object
- Data
- HeadMusic::Notation::ABC::Parser::PendingNote
- Defined in:
- lib/head_music/notation/abc/parser.rb
Overview
A note or chord whose placement is deferred until we know whether
a broken-rhythm mark follows it. The pitches are computed eagerly
so bar-line accidental resets cannot corrupt them. tied_prefix,
when present, is the already-built rhythmic value of everything
tied ahead of this note; its own value is appended at flush time.
Instance Attribute Summary collapse
-
#length ⇒ Object
readonly
private
Returns the value of attribute length.
-
#pitches ⇒ Object
readonly
private
Returns the value of attribute pitches.
-
#scale ⇒ Object
readonly
private
Returns the value of attribute scale.
-
#tied_prefix ⇒ Object
readonly
private
Returns the value of attribute tied_prefix.
Instance Method Summary collapse
-
#initialize(pitches:, length:, scale:, tied_prefix: nil) ⇒ PendingNote
constructor
A new instance of PendingNote.
Constructor Details
#initialize(pitches:, length:, scale:, tied_prefix: nil) ⇒ PendingNote
Returns a new instance of PendingNote.
43 44 45 |
# File 'lib/head_music/notation/abc/parser.rb', line 43 def initialize(pitches:, length:, scale:, tied_prefix: nil) super end |
Instance Attribute Details
#length ⇒ Object (readonly, private)
Returns the value of attribute length
42 43 44 |
# File 'lib/head_music/notation/abc/parser.rb', line 42 def length @length end |
#pitches ⇒ Object (readonly, private)
Returns the value of attribute pitches
42 43 44 |
# File 'lib/head_music/notation/abc/parser.rb', line 42 def pitches @pitches end |
#scale ⇒ Object (readonly, private)
Returns the value of attribute scale
42 43 44 |
# File 'lib/head_music/notation/abc/parser.rb', line 42 def scale @scale end |
#tied_prefix ⇒ Object (readonly, private)
Returns the value of attribute tied_prefix
42 43 44 |
# File 'lib/head_music/notation/abc/parser.rb', line 42 def tied_prefix @tied_prefix end |