class Coltrane::Representation::Piano

Attributes

octaves[R]

Public Class Methods

black_notes() click to toggle source
# File lib/coltrane/representation/piano.rb, line 20
def black_notes
  Theory::Scale.pentatonic_major('C#', 4).notes
end
chord(chord) click to toggle source
# File lib/coltrane/representation/piano.rb, line 14
def chord(chord)
  find_notes(
    chord.is_a?(Chord) ? chord.notes : Chord.new(name: chord).notes
  )
end
find_notes(notes) click to toggle source
# File lib/coltrane/representation/piano.rb, line 10
def find_notes(notes)
  Piano::NoteSet.new(notes, piano: new)
end
new() click to toggle source
# File lib/coltrane/representation/piano.rb, line 30
def initialize
  @octaves
end
white_notes() click to toggle source
# File lib/coltrane/representation/piano.rb, line 24
def white_notes
  Theory::Scale.major.notes
end