Frequency
public struct Frequency : NewType, SignedNumeric
Periodic vibration in Hertz.
Example Usage
let nice = Frequency(440.0) // => "a 440"
let mean: Frequency = 440.0 // => "a 440"
-
The value of this
Frequencyin Hz (i.e., cycles per second).Declaration
Swift
public let value: Double
-
Creates a
Frequencywith the givenvaluein Hz (i.e., cycles per second).Declaration
Swift
public init(value: Double)
-
Creates a
Frequencyfrom the givennoteNumber, using the given referenceFrequencyfor the given referenceNoteNumber.Declaration
Swift
public init(noteNumber: NoteNumber, with freqRef: Frequency = <<empty>>, at nnRef: NoteNumber) -
Declaration
Swift
public func noteNumber(with freqRef: Frequency = <<empty>>, at nnRef: NoteNumber = <<empty>>) -> NoteNumberReturn Value
A
NoteNumberrepresentation of thisFrequency, using the given referenceFrequencyfor the given referenceNoteNumber.
-
Creates a
Frequencywith the givenratioand the givenreferenceFrequency.Declaration
Swift
public init(_ ratio: Fraction, reference: Frequency)
View on GitHub
Install in Dash
Frequency Structure Reference