struct PF::Note

Defined in:

audio/note.cr

Constant Summary

ACCIDENTALS = StaticArray[1_u8, 3_u8, 6_u8, 8_u8, 10_u8]
NAMES = ["C", "C#/Db", "D", "D#/Eb", "E", "F", "F#/Gb", "G", "G#/Ab", "A", "A#/Bb", "B"] of ::String
TWELFTH_ROOT = 2 ** (1 / 12)

Constructors

Instance Method Summary

Constructor Detail

def self.new(number : Number, tuning : Number = 440.0) #

[View source]
def self.new(number : Float64, tuning : Float64 = 440.0) #

[View source]

Instance Method Detail

def *(value : Float64) #

[View source]
def +(value : Float64) #

[View source]
def -(value : Float64) #

[View source]
def /(value : Float64) #

[View source]
def accidental? #

[View source]
def hertz #

[View source]
def index #

[View source]
def name #

[View source]
def note=(value : Float64) #

[View source]
def number : Float64 #

[View source]
def octave #

[View source]
def tuning : Float64 #

[View source]
def tuning=(value : Float64) #

[View source]