class Coltrane::Representation::Guitar::Note
Attributes
fret[R]
string[R]
Public Class Methods
new(string, fret = nil)
click to toggle source
# File lib/coltrane/representation/guitar/note.rb, line 9 def initialize(string, fret = nil) @string = string @fret = fret end
Public Instance Methods
pitch()
click to toggle source
# File lib/coltrane/representation/guitar/note.rb, line 14 def pitch string + fret unless fret.nil? end
pitch_class()
click to toggle source
# File lib/coltrane/representation/guitar/note.rb, line 18 def pitch_class pitch.pitch_class unless fret.nil? end
Also aliased as: note