Functions
TonesInTune functions can be used throughout a workbook. Following functions are available:
- keyName takes a MIDI key number and translates it into a key name (e.g. keyName(69) = "A4").
- keyNumber takes a key name and translates it into MIDI key number (e.g. keyNumber("A4") = 69).
- keyToPitch takes a key name (e.g. "A4") or a MIDI key number (0..127) and translates it into a pitch (e.g. 440).
- fromCent takes a value in Cents and calculates a ratio (e.g. fromCent(700) = 1.498307077).
- toCent takes a ratio and calculates a value in Cents (e.g. toCent(3/2) = 701.9550009).