01: /*
02: * Licensed to the Apache Software Foundation (ASF) under one or more
03: * contributor license agreements. See the NOTICE file distributed with
04: * this work for additional information regarding copyright ownership.
05: * The ASF licenses this file to You under the Apache License, Version 2.0
06: * (the "License"); you may not use this file except in compliance with
07: * the License. You may obtain a copy of the License at
08: *
09: * http://www.apache.org/licenses/LICENSE-2.0
10: *
11: * Unless required by applicable law or agreed to in writing, software
12: * distributed under the License is distributed on an "AS IS" BASIS,
13: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14: * See the License for the specific language governing permissions and
15: * limitations under the License.
16: */
17:
18: package javax.sound.midi;
19:
20: public interface MidiChannel {
21: void allNotesOff();
22:
23: void allSoundOff();
24:
25: void controlChange(int controller, int value);
26:
27: int getChannelPressure();
28:
29: int getController(int controller);
30:
31: boolean getMono();
32:
33: boolean getMute();
34:
35: boolean getOmni();
36:
37: int getPitchBend();
38:
39: int getPolyPressure(int noteNumber);
40:
41: int getProgram();
42:
43: boolean getSolo();
44:
45: boolean localControl(boolean on);
46:
47: void noteOff(int noteNumber);
48:
49: void noteOff(int noteNumber, int velocity);
50:
51: void noteOn(int noteNumber, int velocity);
52:
53: void programChange(int program);
54:
55: void programChange(int bank, int program);
56:
57: void resetAllControllers();
58:
59: void setChannelPressure(int pressure);
60:
61: void setMono(boolean on);
62:
63: void setMute(boolean mute);
64:
65: void setOmni(boolean on);
66:
67: void setPitchBend(int bend);
68:
69: void setPolyPressure(int noteNumber, int pressure);
70:
71: void setSolo(boolean soloState);
72: }
|