Class:            RatioPitch

Environment:      Siren
Superclass:         Siren.RatioMagnitude
Category:         Music-Models-Implementation

Instances of RatioPitch are fractional pitch values normally relative to c=261.623Hz.
They can be transformed into other values (e.g., note names or key numbers), but often at a loss of accuracy if they are not well-tempered.

private

species
   Answer Pitch.

printing

printOn0: aStream
   Print the receiver as a ratio.

converting

asFracMIDI
   return a RatioPitch as a fractional MIDINote.

asFracSymbol
   Assuming value is a ratio, answer a symbolic note name

asHertz
   Answer a HertzPitch.

asMIDI
   return a RatioPitch as a MIDINote (rounded).

asSymbol
   Assuming value is a ratio, answer a symbolic note name

mostGeneral
   Answer the most numerically meaningful version of the receiver.

MetaClass:         RatioPitch class

coercion

ddMsgName
   Answer the selector to be used in coercing double-dispatching messages.