Module: Coltrane::Theory

Defined in:
lib/coltrane/theory.rb,
lib/coltrane/theory/key.rb,
lib/coltrane/theory/note.rb,
lib/coltrane/theory/chord.rb,
lib/coltrane/theory/pitch.rb,
lib/coltrane/theory/scale.rb,
lib/coltrane/theory/errors.rb,
lib/coltrane/theory/cadence.rb,
lib/coltrane/theory/voicing.rb,
lib/coltrane/theory/interval.rb,
lib/coltrane/theory/note_set.rb,
lib/coltrane/theory/frequency.rb,
lib/coltrane/theory/scale_set.rb,
lib/coltrane/theory/pitch_class.rb,
lib/coltrane/theory/progression.rb,
lib/coltrane/theory/roman_chord.rb,
lib/coltrane/theory/chord_quality.rb,
lib/coltrane/theory/classic_scales.rb,
lib/coltrane/theory/diatonic_scale.rb,
lib/coltrane/theory/interval_class.rb,
lib/coltrane/theory/progression_set.rb,
lib/coltrane/theory/circle_of_fifths.rb,
lib/coltrane/theory/interval_sequence.rb,
lib/coltrane/theory/frequency_interval.rb,
lib/coltrane/theory/chord_substitutions.rb,
lib/coltrane/theory/scale_search_result.rb,
lib/coltrane/theory/notable_progressions.rb

Overview

The main module for working with Music Theory

Defined Under Namespace

Modules: ChordSubstitutions, ClassicScales, NotableProgressions Classes: BadConstructorError, Cadence, Chord, ChordNotFoundError, ChordQuality, CircleOfFifths, DiatonicScale, Frequency, FrequencyInterval, HasNoNotesError, Interval, IntervalClass, IntervalNotFoundError, IntervalSequence, InvalidNoteError, InvalidNoteLetterError, InvalidNoteSymbolError, InvalidNotesError, InvalidPitchClassError, Key, Note, NoteSet, Pitch, PitchClass, Progression, ProgressionSet, RomanChord, Scale, ScaleSearchResult, ScaleSet, TheoryError, Voicing, WrongArgumentsError, WrongDegreeError, WrongKeywordsError

Constant Summary collapse

BASE_OCTAVE =
4
BASE_PITCH_INTEGER =
9

Class Method Summary collapse

Class Method Details

.base_tuningObject



16
17
18
# File 'lib/coltrane/theory.rb', line 16

def self.base_tuning
  @base_tuning
end

.tuning=(f) ⇒ Object



12
13
14
# File 'lib/coltrane/theory.rb', line 12

def self.tuning=(f)
  @base_tuning = Frequency[f].octave(-4)
end