Documentation ¶
Index ¶
Constants ¶
View Source
const ( HarmonicUnison = 1.0 HarmonicMinorSecond = 25.0 / 24.0 HarmonicMajorSecond = 9.0 / 8.0 HarmonicMinorThird = 6.0 / 5.0 HarmonicMajorThird = 5.0 / 4.0 HarmonicFourth = 4.0 / 3.0 HarmonicDiminishedFourth = 45.0 / 32.0 HarmonicFifth = 3.0 / 2.0 HarmonicMinorSixth = 8.0 / 5.0 HarmonicMajorSixth = 5.0 / 3.0 HarmonicMinorSeventh = 9.0 / 5.0 HarmonicMajorSeventh = 15.0 / 8.0 )
View Source
const ( Harmonic_C4Frequency = equalTuning.A440_C4Frequency * HarmonicUnison Harmonic_CSharp4Frequency = Harmonic_C4Frequency * HarmonicMinorSecond Harmonic_D4Frequency = Harmonic_C4Frequency * HarmonicMajorSecond Harmonic_DSharp4Frequency = Harmonic_C4Frequency * HarmonicMinorThird Harmonic_E4Frequency = Harmonic_C4Frequency * HarmonicMajorThird Harmonic_F4Frequency = Harmonic_C4Frequency * HarmonicFourth Harmonic_FSharp4Frequency = Harmonic_C4Frequency * HarmonicDiminishedFourth Harmonic_G4Frequency = Harmonic_C4Frequency * HarmonicFifth Harmonic_GSharp4Frequency = Harmonic_C4Frequency * HarmonicMinorSixth Harmonic_A4Frequency = Harmonic_C4Frequency * HarmonicMajorSixth Harmonic_ASharp4Frequency = Harmonic_C4Frequency * HarmonicMinorSeventh Harmonic_B4Frequency = Harmonic_C4Frequency * HarmonicMajorSeventh )
View Source
const ( HarmonicKeyC = HarmonicKey(0 + iota) HarmonicKeyCSharp HarmonicKeyD HarmonicKeyDSharp HarmonicKeyE HarmonicKeyF HarmonicKeyFSharp HarmonicKeyG HarmonicKeyGSharp HarmonicKeyA HarmonicKeyASharp HarmonicKeyB HarmonicMaxKey = HarmonicKeyB HarmonicMinKey = HarmonicKeyC )
View Source
const ( Pythagorean_DFrequency = equalTuning.A432_D4Frequency * PythagoreanUnison Pythagorean_EFlatFrequency = Pythagorean_DFrequency * PythagoreanMinorSecond Pythagorean_EFrequency = Pythagorean_DFrequency * PythagoreanMajorSecond Pythagorean_FFrequency = Pythagorean_DFrequency * PythagoreanMinorThird Pythagorean_FSharpFrequency = Pythagorean_DFrequency * PythagoreanMajorThird Pythagorean_GFrequency = Pythagorean_DFrequency * PythagoreanPerfectFourth Pythagorean_AFlatFrequency = Pythagorean_DFrequency * PythagoreanDiminishedFifth Pythagorean_AFrequency = Pythagorean_DFrequency * PythagoreanPerfectFifth Pythagorean_BFlatFrequency = Pythagorean_DFrequency * PythagoreanMinorSixth Pythagorean_BFrequency = Pythagorean_DFrequency * PythagoreanMajorSixth Pythagorean_CFrequency = Pythagorean_DFrequency * PythagoreanMinorSeventh Pythagorean_CSharpFrequency = Pythagorean_DFrequency * PythagoreanMajorSeventh )
View Source
const ( PythagoreanUnison = 1.0 PythagoreanMinorSecond = 256.0 / 243.0 PythagoreanMajorSecond = 9.0 / 8.0 PythagoreanMinorThird = 32.0 / 27.0 PythagoreanMajorThird = 81.0 / 64.0 PythagoreanPerfectFourth = 4.0 / 3.0 PythagoreanDiminishedFifth = 1024.0 / 729.0 PythagoreanPerfectFifth = 3.0 / 2.0 PythagoreanMinorSixth = 128.0 / 81.0 PythagoreanMajorSixth = 27.0 / 16.0 PythagoreanMinorSeventh = 16.0 / 9.0 PythagoreanMajorSeventh = 243.0 / 128.0 )
View Source
const ( PythagoreanKeyD = PythagoreanKey(0 + iota) PythagoreanKeyEFlat PythagoreanKeyE PythagoreanKeyF PythagoreanKeyFSharp PythagoreanKeyG PythagoreanKeyAFlat PythagoreanKeyA PythagoreanKeyBFlat PythagoreanKeyB PythagoreanKeyC PythagoreanKeyCSharp PythagoreanMaxKey = PythagoreanKeyCSharp PythagoreanMinKey = PythagoreanKeyD )
View Source
const HarmonicKeysPerOctave int = int(cHarmonicMaxKeys)
View Source
const PythagoreanKeysPerOctave int = int(cPythagoreanMaxKeys)
Variables ¶
View Source
var Harmonic tuning.Tuning = &harmonic{}
View Source
var Pythagorean tuning.Tuning = &pythagorean{}
Functions ¶
This section is empty.
Types ¶
type HarmonicKey ¶
type HarmonicKey int
func (HarmonicKey) Index ¶
func (k HarmonicKey) Index() int
func (HarmonicKey) KeysPerOctave ¶
func (HarmonicKey) KeysPerOctave() int
func (HarmonicKey) String ¶
func (k HarmonicKey) String() string
type PythagoreanKey ¶
type PythagoreanKey int
func (PythagoreanKey) Index ¶
func (k PythagoreanKey) Index() int
func (PythagoreanKey) KeysPerOctave ¶
func (PythagoreanKey) KeysPerOctave() int
func (PythagoreanKey) String ¶
func (k PythagoreanKey) String() string
Click to show internal directories.
Click to hide internal directories.