Class: Wavify::Sequencer::Pattern::Step
- Inherits:
-
Struct
- Object
- Struct
- Wavify::Sequencer::Pattern::Step
- Defined in:
- lib/wavify/sequencer/pattern.rb,
sig/sequencer.rbs
Overview
Parsed pattern step value object.
Instance Attribute Summary collapse
-
#accent ⇒ Object
Returns the value of attribute accent.
-
#index ⇒ Object
Returns the value of attribute index.
-
#probability ⇒ Object
Returns the value of attribute probability.
-
#ratchet ⇒ Object
Returns the value of attribute ratchet.
-
#symbol ⇒ Object
Returns the value of attribute symbol.
-
#trigger ⇒ Object
Returns the value of attribute trigger.
-
#velocity ⇒ Object
Returns the value of attribute velocity.
Instance Method Summary collapse
Instance Attribute Details
#accent ⇒ Object
Returns the value of attribute accent
15 16 17 |
# File 'lib/wavify/sequencer/pattern.rb', line 15 def accent @accent end |
#index ⇒ Object
Returns the value of attribute index
15 16 17 |
# File 'lib/wavify/sequencer/pattern.rb', line 15 def index @index end |
#probability ⇒ Object
Returns the value of attribute probability
15 16 17 |
# File 'lib/wavify/sequencer/pattern.rb', line 15 def probability @probability end |
#ratchet ⇒ Object
Returns the value of attribute ratchet
15 16 17 |
# File 'lib/wavify/sequencer/pattern.rb', line 15 def ratchet @ratchet end |
#symbol ⇒ Object
Returns the value of attribute symbol
15 16 17 |
# File 'lib/wavify/sequencer/pattern.rb', line 15 def symbol @symbol end |
#trigger ⇒ Object
Returns the value of attribute trigger
15 16 17 |
# File 'lib/wavify/sequencer/pattern.rb', line 15 def trigger @trigger end |
#velocity ⇒ Object
Returns the value of attribute velocity
15 16 17 |
# File 'lib/wavify/sequencer/pattern.rb', line 15 def velocity @velocity end |
Instance Method Details
#accent? ⇒ Boolean
24 25 26 |
# File 'lib/wavify/sequencer/pattern.rb', line 24 def accent? accent end |
#rest? ⇒ Boolean
16 17 18 |
# File 'lib/wavify/sequencer/pattern.rb', line 16 def rest? !trigger end |
#trigger? ⇒ Boolean
20 21 22 |
# File 'lib/wavify/sequencer/pattern.rb', line 20 def trigger? trigger end |