Groups | Search | Server Info | Login | Register
Groups > comp.lang.java.programmer > #4815
| From | "Gavino" <invalid@invalid.invalid> |
|---|---|
| Newsgroups | comp.lang.java.help, comp.lang.java.programmer |
| Subject | Re: Anybody knows how to get the following imformation from a midi file? |
| Date | 2011-05-31 22:12 +0200 |
| Message-ID | <94l0eeFhg8U1@mid.individual.net> (permalink) |
| References | <65aad0aa-be9a-432e-9671-ed5d2a492478@y27g2000prb.googlegroups.com> |
Cross-posted to 2 groups.
"edward.chow" <ztm.edward@gmail.com> wrote in message news:65aad0aa-be9a-432e-9671-ed5d2a492478@y27g2000prb.googlegroups.com... > I'll be glad and grateful if anybody knows how to get the instruments, > rhythm(whether 4/4 or 3/4 or etc.) and the pitch of each note from a > midi file using java APIs. Use MidiSystem.getSequence() to create a Sequence from the File. From the Sequence object, use getTracks() to extract the constituent tracks. Then you can extract the individual MidiEvents from each track (using get()), and analyse them to extract information about the notes, etc. See the javax.sound.midi API docs for details.
Back to comp.lang.java.programmer | Previous | Next — Previous in thread | Find similar
Anybody knows how to get the following imformation from a midi file? "edward.chow" <ztm.edward@gmail.com> - 2011-05-27 19:40 -0700 Re: Anybody knows how to get the following imformation from a midi file? "Gavino" <invalid@invalid.invalid> - 2011-05-31 22:12 +0200
csiph-web