Class: Wavify::Sequencer::NoteSequence::Event
- Inherits:
-
Struct
- Object
- Struct
- Wavify::Sequencer::NoteSequence::Event
- Defined in:
- lib/wavify/sequencer/note_sequence.rb,
sig/sequencer.rbs
Overview
Parsed note event (midi_note is nil for rests).
Instance Attribute Summary collapse
-
#duration_denominator ⇒ Object
Returns the value of attribute duration_denominator.
-
#duration_multiplier ⇒ Object
Returns the value of attribute duration_multiplier.
-
#index ⇒ Object
Returns the value of attribute index.
-
#midi_note ⇒ Object
Returns the value of attribute midi_note.
-
#tie ⇒ Object
Returns the value of attribute tie.
-
#token ⇒ Object
Returns the value of attribute token.
Instance Method Summary collapse
Instance Attribute Details
#duration_denominator ⇒ Object
Returns the value of attribute duration_denominator
31 32 33 |
# File 'lib/wavify/sequencer/note_sequence.rb', line 31 def duration_denominator @duration_denominator end |
#duration_multiplier ⇒ Object
Returns the value of attribute duration_multiplier
31 32 33 |
# File 'lib/wavify/sequencer/note_sequence.rb', line 31 def duration_multiplier @duration_multiplier end |
#index ⇒ Object
Returns the value of attribute index
31 32 33 |
# File 'lib/wavify/sequencer/note_sequence.rb', line 31 def index @index end |
#midi_note ⇒ Object
Returns the value of attribute midi_note
31 32 33 |
# File 'lib/wavify/sequencer/note_sequence.rb', line 31 def midi_note @midi_note end |
#tie ⇒ Object
Returns the value of attribute tie
31 32 33 |
# File 'lib/wavify/sequencer/note_sequence.rb', line 31 def tie @tie end |
#token ⇒ Object
Returns the value of attribute token
31 32 33 |
# File 'lib/wavify/sequencer/note_sequence.rb', line 31 def token @token end |
Instance Method Details
#rest? ⇒ Boolean
32 33 34 |
# File 'lib/wavify/sequencer/note_sequence.rb', line 32 def rest? midi_note.nil? end |
#tie? ⇒ Boolean
36 37 38 |
# File 'lib/wavify/sequencer/note_sequence.rb', line 36 def tie? tie end |