Class: HeadMusic::Solmization

Inherits:
Object
  • Object
show all
Includes:
Named
Defined in:
lib/head_music/solmization.rb

Overview

A scale degree is a number indicating the ordinality of the spelling in the key signature. TODO: Rewrite to accept a tonal_center and a scale type.

Constant Summary collapse

DEFAULT_SOLMIZATION =
"solfège"
RECORDS =
YAML.load_file(File.expand_path("solmizations.yml", __dir__)).freeze

Instance Attribute Summary collapse

Attributes included from Named

#alias_name_keys, #name_key

Class Method Summary collapse

Methods included from Named

#ensure_localized_name, included, #localized_name, #localized_names, #name, #name=

Instance Attribute Details

#syllablesObject (readonly)

Returns the value of attribute syllables.



12
13
14
# File 'lib/head_music/solmization.rb', line 12

def syllables
  @syllables
end

Class Method Details

.get(identifier = nil) ⇒ Object



14
15
16
# File 'lib/head_music/solmization.rb', line 14

def self.get(identifier = nil)
  get_by_name(identifier)
end