midi

Changing instrument during Track playback - MIDI/Java

[亡魂溺海] 提交于 2019-12-24 06:36:13
问题 I am using a track to play my noteOn/noteOff events and everything works as intended, the problem I am having is that I would like to change the instruments that is being used within the track. I've come up with the following code which is designed invoke the "program change" command on all the MIDI channels with the new instrument, the problem I am having is working out how to apply this to the track so the instruments is different. public void LoadInstrument() { for(int i = 0; i <

Getting started with MIDI

允我心安 提交于 2019-12-24 01:12:01
问题 I'd like to write an application that reads USB MIDI data from my midi piano and quite possibly anything else MIDI I can find. Looking for a library that works with .NET and also allows me to 'intercept' this data even if another application is using the MIDI. Thanks 回答1: You might want to check out Carl Franklin's Midi library http://www.franklins.net/dotnet/CarlsMIDITools.zip And I'm sure he's open to any questions you may have :-) (And be sure to listen to his awsome .NET podcast: .NET

Cropping MIDI file using AudioKit

▼魔方 西西 提交于 2019-12-23 13:20:14
问题 I am trying to crop and loop a certain part of a MIDI file using AudioKit . I am using a sequencer and found a couple of things that are close to what I need, but not exactly. I found a method in AKSequencer called clearRange . With this method I am able to silence the parts of the MIDI I don't want, but I haven't found a way to trim the sequencer and only keep the part I am interested in. Right now only the part I want has sound but I still get the silent parts. Is there a way to trim a

send midi messages from C++

假如想象 提交于 2019-12-23 03:37:18
问题 I'm using a raspberry pi, so it is sort of Debian (Raspbian) I have a synthesizer running (Zynaddsubfx) and I want to send him midi messages from code and have it playing the music for me. I will use ALSA for that. I managed to create a "emitting port" in my program by doing: snd_seq_create_simple_port(seq_handle, "My own sequencer", SND_SEQ_PORT_CAP_READ|SND_SEQ_PORT_CAP_SUBS_READ, SND_SEQ_PORT_TYPE_APPLICATION) now I can see ZynSubAddFX in aconnect -ol and my own sequencer in aconnect -il .

Android Mediaplayer play different songs after eachother

点点圈 提交于 2019-12-23 01:46:37
问题 I generate midi files on the go. I want to play these files continuously. I initialise a mediaplayer and start song1.mid. Then I use the following code to play song2.mid // set on completion listener music file mediaPlayer .setOnCompletionListener(new MediaPlayer.OnCompletionListener() { @Override public void onCompletion(MediaPlayer mp) { String filePath2 = null; File file = null; FileInputStream inputStream = null; //set the filePath try { filePath2 = getCacheDir() + "/optimuse" + song + "

How to send MIDI or OSC signals to a Mac application from my iOS application?

这一生的挚爱 提交于 2019-12-22 18:39:59
问题 I'm thinking of writing an iPhone/iPad application to emulate a MIDI controller. I know there are already quite a few available but I still want to do my own. I have several questions about that: I know a little bit about MIDI, but I've recently heard about OSC. Obviously MIDI is supported by almost all DJ software applications, but does OSC have a critical advantage that makes it compelling? For example, is it possible for my iOS application to send OSC messages directly to the DJ

Using Fluidsynth to play notes from SoundFonts on Android

时间秒杀一切 提交于 2019-12-22 06:16:33
问题 Is there a way to allow android to play sounds using SoundFont files via using FluidSynth? I've been looking at jOrgan but the source code seems to be kind of... overwhelming to say the least. Problem is that java sound API is not supported in android so a great sample to the project i'm in would have been Java Sound Demo's Midi Synth. I think I should be fine with some porting from C to JNI but I'm not knowledgeable when it comes to handling audio features (I've only read and started

Using MIDIPacketList in swift

扶醉桌前 提交于 2019-12-22 05:23:37
问题 I am looking at some of the examples of midi output using core midi. Specifically this question and this I have code that works based on these in objC and I now want to try to translate that to swift. the line I least understand is this one: MIDIPacketList* pktList = (MIDIPacketList*) pktBuffer; I read this as declaring a pointer pktlist of type MIDIPacketList and assigning it the value of pktBuffer, cast to the type MIDIPacketList I'm new to C and objC and this makes no sense to me.

Can AudioTrack play MIDI files?

*爱你&永不变心* 提交于 2019-12-21 05:32:13
问题 I want to know can AudioTrack Android play MIDI file? If not, which library can. Because I want the Android library which can play and control tempo of MIDI file for my app. 回答1: Check Android Supported media format from here Android Media Support. MIDI playback support is built-in in Android. Playing MIDI file using JetPlayer is very much handy in android. To play MIDI file you have to write code of below : JetPlayer jetPlayer = JetPlayer.getJetPlayer(); jetPlayer.loadJetFile("/sdcard/level1

Send MIDI messages over USB on Android

爷,独闯天下 提交于 2019-12-20 11:09:36
问题 I would like to make an app on android which sends MIDI messages over USB to a computer to be able to control music softwares such as Cubase, FL, Reason, ect... Hardware MIDI controllers (e.g Keyboards) are automatically recognized in music software on Windows. I guess it's because they use the universal MIDI protocol which is directly recognized by the music software. They don't need their own driver. I'd like to be able to use my phone/tablet as a midi controller without having to install