import javax.sound.midi.*; import java.util.*; public class Midiuuring1 { public static void main(String argumendid[]) throws Exception{ Sequence sekvents=MidiSystem.getSequence(new java.io.File("koduke.mid")); System.out.println(sekvents.getDivisionType()+" pikkus: "+sekvents.getMicrosecondLength()/1000000.0+ " sekundit, "+sekvents.getTickLength()+" tiksu"); Track[] rajad=sekvents.getTracks(); System.out.println(rajad.length+" rada"); for(int nr=0; nr