<BUG>volumn = noteEvent.getVelocity();}</BUG><CONTEXT>int note = noteEvent.getNote();int tick = noteEvent.getTick();int tickOffset = noteEvent.getTickOffset() + 1;int endTickOffset = tickOffset + tick - 1;if (noteEvent.getVelocity() >= 0) {<extra_id_0>try {MidiMessage message1 = new ShortMessage(ShortMessage.NOTE_ON,channel,</CONTEXT>
velocity = convertVelocityOnAtt(inst, note, noteEvent.getVelocity());}