class ScaleGenerator::Dictionary

Constants

BASS_TUNINGS
GUITAR_TUNINGS
MANDOLIN_TUNINGS
UKULELE_TUNINGS

Private Class Methods

normalize_frets(frets) click to toggle source
# File lib/scale_generator/dictionary.rb, line 23
def self.normalize_frets(frets)
  join_with = frets.any? { |f| f && f >= 10 } ? "-" : ""
  frets.map { |f| f.nil? ? "x" : f.to_s }.join(join_with)
end