Environment: Siren
Instances of SymbolicPitch represent well-tempered note names relative to a4=440Hz.
Instance Variables:
The class instance variable NameMap is used for the name <--> MIDI key number mapping array.
printing
fracPitch
units
Answer the units string of the receiver.
arithmetic
Answer the sum of the receiver and the argument-handle adding Integers as a special case.
- aValue
Answer the sum of the receiver and the argument-handle adding Integers as a special case.
transposeBy: aValue
transpose a SymbolicPitch by aValue in fractional halfsteps
private
Answer Pitch.
converting
Assuming value is a symbolic note name, answer a key number.
asHertz
assuming value is a symbolic note name, return a frequency
asHz
assuming value is a symbolic note name, return a frequency
asMIDI
Assuming value is a symbolic note name, answer a key number.
asSymbol
Answer a SymbolicPitch.
mostGeneral
Answer the most numerically meaningful version of the receiver.
accessing
Answer the receiver's accidental, if any.
fracPitch
return microtonal offset as fractions of a halfstep
fracPitch: aValue
set microtonal offset as fractions of a halfstep
MetaClass: SymbolicPitch class
class initialization
Set up the class name mapping array.
instance creation
Assuming value is a key number, answer a symbolic pitch name
fromMIDI: aValue
Assuming value is a key number, answer a symbolic pitch name
coercion
Answer the selector to be used in coercing double-dispatching messages.