midi

Java Midi in Mac OSX Broken?

允我心安 提交于 2019-11-29 10:59:21
I'm trying to play midi within a browser, and have been using a Java Applet that works just fine on PCs. Its extremely unreliable on OSX, so I wrote a simple test case that exhibits the same problem: import javax.sound.midi.*; import java.io.InputStream; import java.io.IOException; import java.io.FileInputStream; import java.io.FileNotFoundException; public class MidiPlayer { public static void main(String[] args) { try { Sequencer sequencer = MidiSystem.getSequencer(); if (sequencer == null) throw new MidiUnavailableException(); sequencer.open(); FileInputStream is = new FileInputStream(

Reading MIDI Files

我与影子孤独终老i 提交于 2019-11-29 09:06:57
问题 What is the best way to read a MIDI file (chronologically) with multiple tracks? (Java) Note: I don't want to play the MIDI file, just read the messages. Couple ideas: Is it safe to assume there are no note events shorter than the 1/64th note? Or should I visit every track and only move to the next tick after all other ticks tracks Assume there is no midi event shorter than a 1/64th note, and move the current position tick count by that fix delta. Visit every track and progress to the next

Need a library that generates WAVE from Midi

你离开我真会死。 提交于 2019-11-29 07:33:25
I have about 80 compositions written in MIDI and I want to convert them in to WAVE using a sound library. So they can be played on all computers and sound the same. Is there a library that can automate this? Preferably in C#, but other programming languages are fine too. This is what's called a Soft Synth , you will also need a set of instrument samples if you want them the sound the same on all machines. You may find that you will save memory if you just convert them all to wave files once and ship the wave files. A high quality instrument set can be quite large, and most of them are

How to play MIDI on the iPhone?

旧街凉风 提交于 2019-11-29 01:30:33
问题 As far as I know, there is not native or third party library available to play MIDI on the iPhone. But there seem to be quite a few apps that do exactly that. What are they using? Any clues? 回答1: I've written a tutorial on how to play MIDI using CoreMIDI through an AUGraph here. 回答2: FYI for those going down this road: AVMIDIPlayer was introduced in iOS 8. Seems to work well on device, sim not so much. 回答3: This worked for me for playing midi file on iPhone: import AVFoundation class

MIDI player/synthesizer library for the iPhone

核能气质少年 提交于 2019-11-29 00:41:24
Does anyone know if there is a free/cheap MIDI player/synthesizer library that I can incorporate into my iPhone application? As I understand it the iPhone doesn't have native support for MIDI playback. To work around this limitation I've created a bank of .caf sound samples that I playback myself but I'd really like to improve the implementation and use MIDI if possible. Any advice would be greatly appreciated. Since 10 october of 2011, that is since iOS5, Apple has started delivering basic API for midi files playback. The API is called MusicPlayer along with MusicSequence Check this out :

Synthesize musical notes (with piano sounds) in Python

£可爱£侵袭症+ 提交于 2019-11-29 00:35:18
问题 I would like to have a python implementation of a musical instrument library (for instance, a piano object) that I can use to convert a list of notes and a duration into sound. For instance, something like: import Piano pn = Piano() pn.play([note, note, ..., note], duration) Does something like this exist for python 2.7? I would like to implement it if it doesn't. I currently have something that uses audiere, but its just sine waves so it sounds horrible. Is there any way to hook into a midi

Getting input from MIDI devices live (Python)

大憨熊 提交于 2019-11-29 00:05:59
I've got a trigger finger (MIDI tablet) and I want to be able to read its input live and make python execute actions depending on the pressed key. I need it for Windows, and preferably working with python 2.5 + Thanks PyGame includes a built-in midi module , available for Linux, Windows and MacOS and is very well supported. For example, here is the documentation for pygame.midi.Input : Input is used to get midi input from midi devices. Input(device_id) Input(device_id, buffer_size) Input.close - closes a midi stream, flushing any pending buffers. closes a midi stream, flushing any pending

Java MIDI - getting data from piano?

徘徊边缘 提交于 2019-11-28 20:53:57
I've inherited a Java project that used an old C++ dll to receive MIDI data from a piano connected to the computer. Now that Java has built-in support for MIDI devices, I want to get rid of the legacy C++ dll and just use pure Java. Does Java support receiving data from a piano connected to the computer? I've searched Google for examples to no avail. Yes, the JavaSound API can be used to read MIDI data from a MIDI device. JFugue is a Java API for music programming that uses the JavaSound API, and can help simplify your interaction with JavaSound. In JFugue 5.x, sample code to capture 10

wav-to-midi conversion

情到浓时终转凉″ 提交于 2019-11-28 20:52:09
I'm new to this field - but I need to perform a WAV-to-MIDI conversion in java. Is there a way to know what exactly are the steps involved in WAV-to-MIDI conversion? I have a very rough idea as in you need to; sample the wav file, filter it, use FFT for spectral analysis, feature extraction and then write the extracted features on to MIDI. But I cannot find solid sources or papers as in how to do all that? Can some one give me clues as in how and where to start? Are there any Open Source APIs available for this WAV-to-MIDI conversion process? Advance thanks It's a more involved process than

Simple embeddable MidiSynth for iOS?

纵然是瞬间 提交于 2019-11-28 19:43:40
I have a guitar diagram app for Android that I am porting to iOS. Android has a embedded midi synthesizer (sonivox), so I can generate midi files and let Android handle the playback. Is there a way to do this on iOS? Or are there very lightweight embeddable synths for iOS? Update: My answer is out-of-dated. @lukebuehler's answer is much appropriate. If you don't mind non-opensource solution, try FMOD . Being a commercial audio engine for games, fmod equips a simple MIDI synth. I've tried the free evaluation version. It plays GM MIDI files correctly on my iPhone 3G. If what you want is not just