Package jm.midi.event

Examples of jm.midi.event.VoiceEvt


                    System.out.println("SysEX---");
                    eventLength = MidiUtil.readVarLength(dis);
                } else if (status >= 0x80) { //MIDI voice event
                    short selection = (short) (status / 0x10);
                    short midiChannel = (short) (status - (selection * 0x10));
                    VoiceEvt evt = (VoiceEvt) MidiUtil.createVoiceEvent(selection);
                    evt.setMidiChannel(midiChannel);
                    event = evt;
                    if (event == null) {
                        throw new IOException("MIDI file read error: invalid voice event type!");
                    }
                }
View Full Code Here


                System.out.println("SysEX---");
                length = MidiUtil.readVarLength(dis);
            } else if (status >= 0x80) { //MIDI voice event
                short selection = (short) (status / 0x10);
                short midiChannel = (short) (status - (selection * 0x10));
                VoiceEvt evt = (VoiceEvt) MidiUtil.createVoiceEvent(selection);
                evt.setMidiChannel(midiChannel);
                event = evt;
                if (event == null) {
                    throw new IOException("Read Error");
                }
            }
View Full Code Here

        System.out.println("SysEX---");
        length = MidiUtil.readVarLength(dis);
      }else if(status >= 0x80){ //MIDI voice event
        short selection = (short) (status /0x10);
        short midiChannel = (short) (status - (selection * 0x10));
        VoiceEvt evt = (VoiceEvt)MidiUtil.createVoiceEvent(selection);
        evt.setMidiChannel(midiChannel);
        event = evt;
        if(event == null){
          throw new IOException("Read Error");
        }
      }
View Full Code Here

                                             // SUPPORTED
                    eventLength = MidiUtil.readVarLength(dis);
                } else if (status >= 0x80) { // MIDI voice event
                    short selection = (short) (status / 0x10);
                    short midiChannel = (short) (status - (selection * 0x10));
                    VoiceEvt evt = (VoiceEvt) MidiUtil.createVoiceEvent(selection);
                    if (evt == null) {
                        throw new IOException("MIDI file read error: invalid voice event type!");
                    }
                    evt.setMidiChannel(midiChannel);
                    event = evt;
                }
                oldStatus = status;
            } catch (EOFException ex) {
                logger.warn("EOFException (" + ex.getMessage() + ") encountered in SMFTools");
View Full Code Here

TOP

Related Classes of jm.midi.event.VoiceEvt

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.