/[svn]/jlscp/trunk/src/org/linuxsampler/lscp/event/MidiInstrumentInfoEvent.java
ViewVC logotype

Annotation of /jlscp/trunk/src/org/linuxsampler/lscp/event/MidiInstrumentInfoEvent.java

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1140 - (hide annotations) (download)
Mon Apr 2 20:48:13 2007 UTC (17 years, 1 month ago) by iliev
File size: 2284 byte(s)
- upgraded to version 0.4a

1 iliev 1140 /*
2     * jlscp - a java LinuxSampler control protocol API
3     *
4     * Copyright (C) 2005-2006 Grigor Iliev <grigor@grigoriliev.com>
5     *
6     * This file is part of jlscp.
7     *
8     * jlscp is free software; you can redistribute it and/or modify
9     * it under the terms of the GNU General Public License version 2
10     * as published by the Free Software Foundation.
11     *
12     * jlscp is distributed in the hope that it will be useful,
13     * but WITHOUT ANY WARRANTY; without even the implied warranty of
14     * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15     * GNU General Public License for more details.
16     *
17     * You should have received a copy of the GNU General Public License
18     * along with jlscp; if not, write to the Free Software
19     * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
20     * MA 02111-1307 USA
21     */
22    
23     package org.linuxsampler.lscp.event;
24    
25     /**
26     * A semantic event which indicates that a MIDI instrument
27     * in a MIDI instrument map is changed.
28     * @author Grigor Iliev
29     */
30     public class MidiInstrumentInfoEvent extends java.util.EventObject {
31     private int mapId;
32     private int midiBank;
33     private int midiProgram;
34    
35     /**
36     * Constructs a <code>MidiInstrumentInfoEvent</code> object.
37     * @param source The object that originated the event.
38     * @param mapId The numerical ID of the MIDI
39     * instrument map, containing the changed instrument.
40     * @param bank The index of the MIDI bank, containing the instrument.
41     * @param program The MIDI program number of the instrument.
42     */
43     public
44     MidiInstrumentInfoEvent(Object source, int mapId, int bank, int program) {
45     super(source);
46     this.mapId = mapId;
47     this.midiBank = bank;
48     this.midiProgram = program;
49     }
50    
51     /**
52     * Gets the numerical ID of the MIDI instrument map, which
53     * instrument number is changed.
54     * @return The numerical ID of the MIDI instrument map, which
55     * instrument number is changed.
56     */
57     public int
58     getMapId() { return mapId; }
59    
60     /**
61     * Gets the index of the MIDI bank, containing the instrument.
62     * @return The index of the MIDI bank, containing the instrument.
63     */
64     public int
65     getMidiBank() { return midiBank; }
66    
67     /**
68     * Gets the MIDI program number of the instrument.
69     * @return The MIDI program number of the instrument.
70     */
71     public int
72     getMidiProgram() { return midiProgram; }
73     }

  ViewVC Help
Powered by ViewVC