/** * bentPitch.java * * Container for bent MIDI pitch. * Holds the MIDI pitch for the note on / note off events, * and the two status bytes for the pitch bend event * which precedes the note on. * * This module is part of Karl Brown's MIDI programming project. * */ package MidiApps; import java.io.*; import java.util.*; import javax.sound.midi.*; /** * * @author Karl Brown * @version 1.0 * last updated 2/16/2003 */ public class bentPitch { protected tracer tr; private byte midiPitch; private byte statusMSB; private byte statusLSB; public void setTracer(tracer trc) { tr = trc; } public void setMidiPitch (byte pitch) { midiPitch = pitch; } public void setStatusMSB (byte b) { statusMSB = b; } public void setStatusLSB (byte b) { statusLSB = b; } public int getMidiPitch() { return midiPitch; } public int getStatusMSB() { return statusMSB; } public int getStatusLSB() { return statusLSB; } }