class InevitableCacophony::OctaveStructure::NoteSequence

Represent a sequence of notes from an octave – either a chord, or the notes of a scale. TODO: call this something more useful

Attributes

note_scalings[RW]

Public Class Methods

new(note_scalings) click to toggle source

@param note_scalings [Array<Float>] The frequencies of each note in the scale,

as multiples of the tonic.
# File lib/inevitable_cacophony/octave_structure.rb, line 18
def initialize(note_scalings)
        @note_scalings = note_scalings
end

Public Instance Methods

length() click to toggle source
# File lib/inevitable_cacophony/octave_structure.rb, line 24
def length
        note_scalings.length
end