Class: Diamond::Arpeggiator
- Inherits:
-
Object
- Object
- Diamond::Arpeggiator
- Defined in:
- lib/diamond/arpeggiator.rb
Overview
The arpeggiator core
Instance Attribute Summary collapse
-
#parameter ⇒ Object
readonly
Returns the value of attribute parameter.
-
#sequence ⇒ Object
readonly
Returns the value of attribute sequence.
-
#sequencer ⇒ Object
readonly
Returns the value of attribute sequencer.
Instance Method Summary collapse
-
#initialize(options = {}, &block) ⇒ Arpeggiator
constructor
A new instance of Arpeggiator.
Methods included from Diamond::API::SequenceParameters
Methods included from Diamond::API::Sequence
Methods included from Diamond::API::MIDI
#add_midi_source, included, #midi_sources, #mute?, #remove_midi_source
Constructor Details
#initialize(options = {}, &block) ⇒ Arpeggiator
Returns a new instance of Arpeggiator.
28 29 30 31 32 33 34 35 36 37 |
# File 'lib/diamond/arpeggiator.rb', line 28 def initialize( = {}, &block) resolution = .fetch(:resolution, 128) @sequence = Sequence.new @parameter = SequenceParameters.new(@sequence, resolution, ) { @sequence.mark_changed } @sequencer = Sequencer.new initialize_midi() initialize_osc() end |
Instance Attribute Details
#parameter ⇒ Object (readonly)
Returns the value of attribute parameter.
10 11 12 |
# File 'lib/diamond/arpeggiator.rb', line 10 def parameter @parameter end |
#sequence ⇒ Object (readonly)
Returns the value of attribute sequence.
10 11 12 |
# File 'lib/diamond/arpeggiator.rb', line 10 def sequence @sequence end |
#sequencer ⇒ Object (readonly)
Returns the value of attribute sequencer.
10 11 12 |
# File 'lib/diamond/arpeggiator.rb', line 10 def sequencer @sequencer end |