Int

struct Int : SignedInteger, Comparable, Equatable
  • Get basic value as a double

    Declaration

    Swift

    public func value() -> Double
  • Calculate frequency from a MIDI Note Number

    Declaration

    Swift

    public func midiNoteToFrequency(_ aRef: Double = 440.0) -> Double

    Parameters

    aRef

    Reference frequency of A Note (Default: 440Hz)

  • Calculate MIDI Note Number from a frequency in Hz

    Declaration

    Swift

    public func frequencyToMIDINote(_ aRef: Double = 440.0) -> Double

    Parameters

    aRef

    Reference frequency of A Note (Default: 440Hz)