PitchControl raises or lowers the playback pitch of audio without
changing the playback speed.
PitchControl can be implemented in Players for MIDI media or
sampled audio. It is not possible to set audible output to
an absolute pitch value. This control raises or lowers pitch
relative to the original.
The pitch change is specified in number of "milli-
semitones" to raise the pitch. As an example,
specifying a pitch of 12'000 results in playback one octave
higher. For MIDI that means that all MIDI notes are raised
by 12 (semitones). For sampled audio playback, it means doubling the
frequency of perceived sounds (i.e. a 440Hz sound will become a 880Hz
sound.).
Negative values are used to lower the pitch.
All Players by default support 0, or no pitch change.
A Player which supports only 0 pitch change
must not implement PitchControl .
PitchControl does not influence playback volume in any way.
See Also: javax.microedition.media.Player See Also: javax.microedition.media.control.RateControl See Also: javax.microedition.media.control.TempoControl |