Class: Wavify::Sequencer::NoteSequence::Event

Inherits:
Struct
  • Object
show all
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

Instance Method Summary collapse

Instance Attribute Details

#duration_denominatorObject

Returns the value of attribute duration_denominator

Returns:

  • (Object)

    the current value of duration_denominator



31
32
33
# File 'lib/wavify/sequencer/note_sequence.rb', line 31

def duration_denominator
  @duration_denominator
end

#duration_multiplierObject

Returns the value of attribute duration_multiplier

Returns:

  • (Object)

    the current value of duration_multiplier



31
32
33
# File 'lib/wavify/sequencer/note_sequence.rb', line 31

def duration_multiplier
  @duration_multiplier
end

#indexObject

Returns the value of attribute index

Returns:

  • (Object)

    the current value of index



31
32
33
# File 'lib/wavify/sequencer/note_sequence.rb', line 31

def index
  @index
end

#midi_noteObject

Returns the value of attribute midi_note

Returns:

  • (Object)

    the current value of midi_note



31
32
33
# File 'lib/wavify/sequencer/note_sequence.rb', line 31

def midi_note
  @midi_note
end

#tieObject

Returns the value of attribute tie

Returns:

  • (Object)

    the current value of tie



31
32
33
# File 'lib/wavify/sequencer/note_sequence.rb', line 31

def tie
  @tie
end

#tokenObject

Returns the value of attribute token

Returns:

  • (Object)

    the current value of token



31
32
33
# File 'lib/wavify/sequencer/note_sequence.rb', line 31

def token
  @token
end

Instance Method Details

#rest?Boolean

Returns:

  • (Boolean)


32
33
34
# File 'lib/wavify/sequencer/note_sequence.rb', line 32

def rest?
  midi_note.nil?
end

#tie?Boolean

Returns:

  • (Boolean)


36
37
38
# File 'lib/wavify/sequencer/note_sequence.rb', line 36

def tie?
  tie
end