Class: Wavify::Sequencer::Pattern::Step

Inherits:
Struct
  • Object
show all
Defined in:
lib/wavify/sequencer/pattern.rb,
sig/sequencer.rbs

Overview

Parsed pattern step value object.

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#accentObject

Returns the value of attribute accent

Returns:

  • (Object)

    the current value of accent



15
16
17
# File 'lib/wavify/sequencer/pattern.rb', line 15

def accent
  @accent
end

#indexObject

Returns the value of attribute index

Returns:

  • (Object)

    the current value of index



15
16
17
# File 'lib/wavify/sequencer/pattern.rb', line 15

def index
  @index
end

#probabilityObject

Returns the value of attribute probability

Returns:

  • (Object)

    the current value of probability



15
16
17
# File 'lib/wavify/sequencer/pattern.rb', line 15

def probability
  @probability
end

#ratchetObject

Returns the value of attribute ratchet

Returns:

  • (Object)

    the current value of ratchet



15
16
17
# File 'lib/wavify/sequencer/pattern.rb', line 15

def ratchet
  @ratchet
end

#symbolObject

Returns the value of attribute symbol

Returns:

  • (Object)

    the current value of symbol



15
16
17
# File 'lib/wavify/sequencer/pattern.rb', line 15

def symbol
  @symbol
end

#triggerObject

Returns the value of attribute trigger

Returns:

  • (Object)

    the current value of trigger



15
16
17
# File 'lib/wavify/sequencer/pattern.rb', line 15

def trigger
  @trigger
end

#velocityObject

Returns the value of attribute velocity

Returns:

  • (Object)

    the current value of velocity



15
16
17
# File 'lib/wavify/sequencer/pattern.rb', line 15

def velocity
  @velocity
end

Instance Method Details

#accent?Boolean

Returns:

  • (Boolean)


24
25
26
# File 'lib/wavify/sequencer/pattern.rb', line 24

def accent?
  accent
end

#rest?Boolean

Returns:

  • (Boolean)


16
17
18
# File 'lib/wavify/sequencer/pattern.rb', line 16

def rest?
  !trigger
end

#trigger?Boolean

Returns:

  • (Boolean)


20
21
22
# File 'lib/wavify/sequencer/pattern.rb', line 20

def trigger?
  trigger
end