Class: InevitableCacophony::OctaveStructure::NoteSequence
- Inherits:
-
Object
- Object
- InevitableCacophony::OctaveStructure::NoteSequence
- Defined in:
- lib/inevitable_cacophony/octave_structure.rb
Overview
Represent a sequence of notes from an octave – either a chord, or the notes of a scale. TODO: call this something more useful
Instance Attribute Summary collapse
-
#note_scalings ⇒ Object
Returns the value of attribute note_scalings.
Instance Method Summary collapse
-
#initialize(note_scalings) ⇒ NoteSequence
constructor
A new instance of NoteSequence.
- #length ⇒ Object
Constructor Details
#initialize(note_scalings) ⇒ NoteSequence
Returns a new instance of NoteSequence.
18 19 20 |
# File 'lib/inevitable_cacophony/octave_structure.rb', line 18 def initialize(note_scalings) @note_scalings = note_scalings end |
Instance Attribute Details
#note_scalings ⇒ Object
Returns the value of attribute note_scalings.
22 23 24 |
# File 'lib/inevitable_cacophony/octave_structure.rb', line 22 def note_scalings @note_scalings end |
Instance Method Details
#length ⇒ Object
24 25 26 |
# File 'lib/inevitable_cacophony/octave_structure.rb', line 24 def length note_scalings.length end |