Class: MIDIVelocity

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

Instances of MIDIVelocity are key velocities (approximately proportional to loudness) in the range 0 to 127.

The SymbolicLoudness class maps symbolic dynamic names onto this range on an approximately logarithmic scale.

accessing

value: theValue
Truncate

printing

printOn0: aStream
Print the receiver as a MIDI velocity.

units
Answer the units string of the receiver.

private

species
Answer Amplitude.

converting

asDB
Answer a dB loudness; ratio 1 = 0dB, ratio 0.5 = -6dB, etc.

asMIDI
Answer a MIDIVelocity.

asRatio
Answer a RatioLoudness.

asSymbol
Answer a symbolic loudness.

mostGeneral
Answer the most numerically meaningful version of the receiver.

MetaClass: MIDIVelocity class

class initialization

initialize
Initialize the class instance variable.

coercion

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