class Coltrane::Representation::Guitar::NoteSet
Attributes
guitar[R]
notes[R]
Public Class Methods
new(note_set, guitar:)
click to toggle source
# File lib/coltrane/representation/guitar/note_set.rb, line 13 def initialize(note_set, guitar:) @notes = note_set @guitar = guitar end
Public Instance Methods
results()
click to toggle source
# File lib/coltrane/representation/guitar/note_set.rb, line 20 def results @strings ||= begin guitar.strings.map do |string| { pitch: string.pitch, notes: notes.map { |note| string.find(note) } } end end end
Also aliased as: strings