midi

Firing events at microsecond resolution for midi sequencer

Hi, Is there a way to fire events in C# at a resolution of a few microseconds? I am building a midi sequencer and it requires an event to be fired every midi tick which will then play any note registered at that time. At 120 beats per minute and at a resolution of 120 ppqn (pulses per beat/quarter note), that event should fire every 4....

Python midi out to FruityLoops Studio

hi everybody, im working on a project and i want to create a virtual midi input with python to flstudio (fruityloops) i have googled a bit but all the modules i could find was about creating midi files which is not my issue. so what module should i use for midi i/o with python? ...

Building a midi file - Python

Hi folks!! This is a follow-up on my previous question. I have successfully extracted a set of frequencies from input audio, now what would you guys recommend for building a MIDI file? Thanks for your help! ...

Delphi library for MIDI input/output?

What is a good Delphi library for MIDI input/output? ...

Get note data from MIDI file

Is there a way to get the note data from a MIDI file? That is, I want to break down the MIDI file into its constituent parts so they are in the form of a unique word (or any other data type). What I want to do in the end is take in a MIDI file and find patterns in the notes. Get in each note, find it's frequency (of being played) and n...

Packing ints to bytes (NSData)

I want to pack a MIDI message into an NSData object. int messageType = 3; // 0-15 int channel = 5; // 0-15 int data1 = 56; // 0-127 int data2 = 78; // 0-127 int packed = data2; packed += data1 * 127; packed += channel * 16129; // 127^2 packed += messageType * 258064; // 127^2 * 16 NSLog(@"packed %d", packed); NSData ...

How could I track unknown Thread/Runnable?

Hi dear community, I'm developing Java MIDI application. And I have stuck with debugging of exception, which dispatching at the end of song. As I'm expecting: the application is playing and each time I'm checking the sequence tick position to represent it in application playback line, like as player. So I want to know how could I get t...

V-Link Roland Midi protocol

I'm looking for the manual describing the protocol of the Roland V-Link MIDI that was opened. Does anyone know where I can find? I wrote to Roland but I had no answers. Thanks! ...

Java sound api - Scanning for midi devices

I'm working on a java project that receives midi events from midi hardware using the javax.sound.midi library. In the documentation, it says that MidiSystem.getMidiDeviceInfo() returns a list of all connected midi hardware. It works for me, but the problem is, it only works once. It takes a moment the first time to actually scan for the ...

Clojure-problem using javax.sound.midi.Sequencer

I'm trying to use some Java-classes with Clojure. I've tried it with Scala with success, but with Clojure, I get an IllegalArgumentException. Here's the API: http://download.oracle.com/javase/1.4.2/docs/api/java/lang/reflect/Method.html The code below: (import '(javax.sound.midi MidiSystem Sequencer Sequence)) (def mySequencer (MidiSy...

How to Java Midi STOP

How to stop any sound from java application? ...

Java stop MIDI playback

Hi I have java application which plays midi messages from sequence. I'm doing this using jfugue library. the problem is when I'm tryingto stop playback with stop button (which call sequencer.stop() and sequencer.close()) the last played note is sound all of rest time, and I can't stop it. So I'm asking about solution about stopping all...

Reading MIDI files in Java

Hello, I'm trying to read in .MID files to a Java program, and would like to separate each note/chord so as to display them on a UI of some sort. I didn't have much luck using the Sequencer API in Java, and trying to use MidiFileReader directly didn't work for me either. I'll attach the code I used here, if anyone wants to see it: pack...

Adjust MIDI Note Volume

[I am doing this work in Java, but I think the question is language-agnostic.] I have a MIDI Note On volume (called "data2," it's 0-127) that I am adjusting with a fader (0 to 127). The "math" I am using is simple: newData2 = oldData2 * faderVolume / 127; Zero works perfectly, and 127 does too, but the volumes close to the bottom of ...

What is a MIDI soundbank?

I am a neophyte at MIDI. Does a MIDI soundbank contains "instuctions" [sic] for a MIDI synthesizer to turn into PCM audio? I have numerous pieces of variable-duration audio (currently in PCM and thus my ask) that I would like to sequence (if you will) and provide instructions to play (and mix them) based upon a server-generated timelin...

Convert into to byte array and insert into other array

Hi, I work in a c# wpf application in which I want to do several things. I'm working with byte arrays to compose MIDI Show Control messages (specified in the MSC Specification 1.0). The structure of this message is that a 0x00 byte is like a comma between all the parts of the message. I compose a message like this: byte[] data = ...

Is it possible to use midiOutLongMsg to play a chord? (Win32 API)

This guys says yes: http://web.tiscalinet.it/giordy/midi-tech/lowmidi.htm Same with a really old book from 1998 (Maximum MIDI). MSDN doesn't mention it. I'm not getting any sound. I fill a char buffer with status|note|velocity|status|note|velocity... Set lpData, dwBufferLength, and dwFlags of a MIDIHDR struct call midiOutPrepareHeader ...

Play MIDI file from Common Lisp

Is it possible to play a MIDI file (existing on the hard drive) from Common Lisp? If so, how? ...

How do I send midi Control Change messages (CC's) using pyPortMidi or pygame?

I'm using Python along with Pygame which uses pyPortMidi for it's midi module, and I'm currently sending NoteOn and NoteOff messages through Midi Yoke to Ableton live, which works great. But I can't seem to figure out how I send CC messages.. Anyone? The (working) class basically looks like this. class MidiIO: def __init_...

Making an instance of midi:midifile

I'm using a Lisp MIDI library for a small project I'm working on. Just to get started, I'm trying to write a simple MIDI file that plays middle C. However I can't seem to get this to work and can not find any documentation on how to do this sort of thing. Here is my code: (defun make-track () (list (make-instance 'midi:note-o...