Questions tagged [midi]

0

votes
0

answer
7

Views

Issues Sending MIDI information on iOS Applications

So I've been stuck trying to get MIDI information to send to my computer from the iOS application I am building for my iPad. I setup the client, and output port, and obtain the end reference point as well. MIDI Monitor on my Mac reads the MIDI System Execution Message when I start up my iPad but n...
Greg
1

votes
1

answer
30

Views

What is difference between “duration” and “offset” in MIDI files?

I'm using 'music21' library to process MIDI files. Unfortunately, the provided documentation is not so clear for ones who don't understand much about how music is composed. What is the difference between 'duration' and 'offset'? For what I understand, the first note/chord have offset 0.0, and let's...
demo
1

votes
0

answer
87

Views

AudioKit MIDI - Creating Virtual Outputs in Swift

I want to create an Virtual Output port in my app, which can be recognised by other music apps. Example is iSymphonic, were one is able to select a VO from a list generated by MIDIFlow. I have tried .createVirtualPorts() which does not throw errors, but at the same time does not create VO's that a...
AdamGarnish
1

votes
1

answer
200

Views

Why pygame.midi doesn't work on macos whereas pygame.mixer does

I want to write a piece of software in Python3x, which will play Midi notes. I have this example code here on Stack Overflow : import pygame.midi import time pygame.midi.init() player = pygame.midi.Output(0) player.set_instrument(0) player.note_on(64, 127) time.sleep(1) player.note_off(64, 127) del...
1

votes
1

answer
120

Views

How to use JUCE for generating wav file using MIDI file and soundfonts file?

For last few days I have been trying to generate a wav file using MIDI and soundfont file in an android app. For that I have tried building fluidsynth for this purpose. I have been able to build it successfully but the problem is that fast-rendering does not seem to be supported in this build. Now,...
Swapnil
1

votes
0

answer
268

Views

How to use the midi API in Android Studio

I'm currently developing an app which is supposed to help you learn reading notes. Therefore I want to connect my digital piano and receive midi signals. Unfortunately I'am unable to make it work. That's the official link to the API https://developer.android.com/reference/android/media/midi/package-...
Dani
1

votes
0

answer
61

Views

Soundfonts play MIDI file without decay

I've been building a music notation application in Flask. On the backend I'm using Midiutil to generate midi files and Midi.js on the front end to play the files. I recorded and built my soundfont using Polyphone and converted from sf2 to JS with soundfont_builder.rb. The problem I am now facing is...
Mark Berry
1

votes
1

answer
137

Views

Receive midi input with javax.sound.midi

I would like to have a program that could do something when it gets a midi input. For instance when I click button 1 on my controller it should print 'You clicked btn 1' and when I click button 2 it should print 'You clicked btn 2'. I tried using the javax.sound.midi library but all the examples in...
Gustav
1

votes
0

answer
222

Views

Sending MIDI via usb on Android

I'm doing a preliminary research to convert a simple midi sequencer designed with Processing in an Android app, the problem is that the library that I use on the computer to interface with music devices via MIDI does not work inside android. So I decided to export the project to Android Studio. Ther...
1

votes
1

answer
37

Views

Lua Musical Notes to Numbers

I need to convert some musical note inputs representing a chord to numbers above it's root note 0 using Lua. So from the midi data we get the notes of a C13 Chord input: C, E, G, A#, D, F, A as the root note 0 is C we start on the C note, below we have 2 octaves of a piano keyboard, 12 notes on ea...
LuaStart
1

votes
0

answer
151

Views

split midi file for each bar in python

I want to divide the MIDI file in python into bars and get the notes in that bars. So I use music21 library and I can get the notes but I can't split it up by bar. I want to know what kind of notes are in bar 1 and what are in bar 2. I hope I can get some help with this problem.Thank you.
sudal
1

votes
0

answer
9

Views

External/USB controller integrated with Eclipse

I own an APC MINI USB/MIDI button pad and have been trying to get windows to more or less recognize it as a operating-system-wide input device. My primary use case is to trigger macros or shortcuts in Eclipse. For example, instead of the current keybinding of ALT+] to clone a window I could press [b...
user1846567
1

votes
0

answer
53

Views

Receiving Sysex messages with audiokit

I have an app which is sending controller settings to a hardware synthesizer using sysex. In other words: such a syses messages selects a parameter from the synth, and sets its value. With audiokit this is pretty simple. Such a message looks like this: [240, 00, 32, 51, 1, 16, 112, 00, 40, 95, 247]...
Maarten L.
1

votes
0

answer
210

Views

Changing MIDI instrument in Java

I'm almost completely unfamiliar with MIDI. I have the need to play a short MIDI file from a Java application. That part is working. However, it's playing with what sounds like an electric piano. Other applications I have allow me to choose a particular instrument and render the MIDI file with t...
Chas Copeland
1

votes
0

answer
70

Views

sysex from AudioKit's receivedMIDISystemCommand

I am very new to Swift and struggling so please go easy. I am building a macOS project using Swift 4 in XCode 10.1 I am receiving a sysex message from a device using the following code which I got from the MIDIUtility example project supplied with AudioKit: func receivedMIDISystemCommand(_ data: [M...
Randy
1

votes
0

answer
37

Views

Problem (maybe on ALSA Config.) running jack.Client() on jackclient-python

I am trying to read the MIDI Input from a MIDI Keyboard on Ubuntu 18.04 64-bit. I decided to use JACK Audio Connection Kit (JACK) Client for Python. After the installation I want to run a simple program to print all received MIDI events. But after running client = jack.Client('MIDI-Monitor') I rece...
David17
1

votes
0

answer
29

Views

Using jMusic to read chords from a MIDI file

I am working on a procedural music generation project which reads in a MIDI file and uses some probability models to generate a new piece of music. Reading in notes in jMusic is easy. First get the Score object from the MIDI file, then get the Part(s) object from the Score, then get the Phrase(s) o...
taylorbl
1

votes
0

answer
44

Views

Creating notes on the fly using Java Sound API. How to handle multiple notes?

I'm using the Java Sound API and I know how to use a Sequencer for editing and performing tracks as well. My question now is how do I play multiple notes (not necessarily at the same time) on the fly correctly? I used one track, added the MidiEvent NoteON and NoteOFF and then started the seuquencer...
Basti Opa
1

votes
1

answer
98

Views

Sequencer receiver timestamp always outputs -1

I am trying to use a receiver to output the timestamp from a sequencer that is reading a midi. When I try to output the timestamp to the console, it outputs -1. Code that runs the midi: public class MidiReadAndPlay { public static Receiver synthRcvr = new CustomReceiver(); public static Transmitter...
TheTrialBot
1

votes
3

answer
2k

Views

Play single midi woodblock note on Java?

I'm planning to create my own metronome (woodblock instrument) using Java that could set its bpm, volume, etc. And I have tried over 16 channels (MIDI 1.0 specification) obtained from getChannels() but there is no woodblock heard at all. Here's the code taken from http://www.jsresources.org /* * Tu...
van_tomiko
1

votes
5

answer
3.3k

Views

How to change pitch continuously in Java sound?

I'm working with midi using the Java sound API. Basically I'm trying to achieve a portamento effect where I can slide between different notes. The closest I've gotten is using the setPitchBend() method in MidiChannel. However, this only allows a range of 2 semitones from the note I started with. Is...
Peter
1

votes
1

answer
1.5k

Views

Free software physically modeled piano?

Is there any free code online for a physically modeled (i.e. not sample-based) piano sound? Examples of commercial software include Pianoteq and the firmware for Roland's V-Piano. This is for an open-source digital piano project I'm working on.
Andrew Wagner
1

votes
1

answer
1.6k

Views

Python interface for outputting MIDI files or text that's readable by audio programs

I am looking for a python package or library that will allow me to programmatically output a file format (e.g. MIDI) that can be read by audio/sound processing programs, like LogicPro or iDrum. What are the best options for this?
user248237dfsf
1

votes
1

answer
745

Views

Java: Embedding Soundbank file in JAR

If I have a soundbank stored in a JAR, how would I load that soundbank into my application using resource loading...? I'm trying to consolidate as much of a MIDI program into the jar file as I can, and the last thing I have to add is the soundbank file I'm using, as users won't have the soundbanks i...
Pyroclastic
1

votes
4

answer
1.6k

Views

Drawing A Piano

I have started working on a software synthesizer (or keyboard). I have decided to use Java because of the available Jfugue API. I am trying to figure out how to go about creating the actual keys (notes) of the keyboard user interface, but I am stuck. I have tried to create an interface by dragging...
Jonathan M.
1

votes
0

answer
14

Views

How to change instrument in Java MIDI program

How can I change instruments in Midi? I can change the value of channel to upto 9 after that it says 'Channel out of range' which is all piano. How can I change it to guitar for example public noteplay() throws InvalidMidiDataException,MidiUnavailableException { bpm =80; beatLength = 1; theTimeMel...
Ahmad
1

votes
1

answer
489

Views

controlling VST instruments from Ruby

I've recently bought a copy of EZDrummer, a VST plugin that acts as a virtual drumkit. I'd really like to hook into it from Ruby code so that I can create loops and drum patterns programmatically. To be honest I am not sure even where to start. Presumably I have to create a VST host which can load t...
RobL
1

votes
2

answer
1.8k

Views

midi controller for adobe premiere cs4

I'd like to develop a plugin for adobe premiere CS4 to controll its audio mixer control from my external midi device. Although this seems to be a very popular subject, I could not find any tutorials, hints or whatsoever though I searched/googled for it desperately. Just hoped that anyone of you guys...
Alexander Marek
1

votes
2

answer
491

Views

CoreMidi _MIDINetworkNotificationContactsDidChange symbol not found

I'm getting the following error after a crash in an iPad app that uses CoreMIDI (The * are to blank out the app name): Dyld Error Message: Symbol not found: _MIDINetworkNotificationContactsDidChange Referenced from: /var/mobile/Applications/8F08B78E-929D-4C5A-9F02-08FD5743C17F/***.app/*** Expected i...
Domestic Cat
1

votes
1

answer
168

Views

Does it make sense that these high numbers are midi tempo?

I am using midi library for as3 and receive these values as tempo (to the left the timeline and to the right the tempo) 1712 11424264 3632 11424264 3670 2325000 3708 1417992 Assuming that at time=0 the tempo=500000. The first valus is 200 times higher, how come it is too high? Perhaps I am reading i...
Alon
1

votes
1

answer
543

Views

CoreMIDI on the command line

I've started working on a command-line app based on RtMidi that can send arbitrary MIDI data. I've found that, while I can talk to MIDI devices when I run the tool from the console, if I ssh in to my machine from another, I can't get any MIDI functionality to work at all. To be specific, RtMidi make...
mkb
1

votes
1

answer
1.2k

Views

Using BinaryReader to read a midi file. (.net)

How would I use a BinaryReader to read a midi file (specifications for the format are here) I'm using vb.net, but I'm willing to see other code (mostly just C#, I can convert it). I'm working on a large project and this comes as a bit of a speedbump. Here is my current code: Private Function conver...
FreeSnow
1

votes
1

answer
1.1k

Views

MIDI decoder library

I want to know a free C/C++ library that can load and decode MIDI files. I will play it with alsa or DirectSound,
Squall
1

votes
1

answer
640

Views

jFugue incorrectly parsing tempo

I'm using jFugue to parse a midi file and it will always parse the tempo incorrectly(I know that the tempo is 140 and it is saying that the tempo is 720). At first I thought that it might, somehow, be multiplying the actual tempo by some number and that's not it. The number it's giving me is somehow...
scottbot95
1

votes
4

answer
3.6k

Views

How or where can I get separate notes of an instrument for playback in my application? [closed]

I am looking to create a music creation application, and would like to allow the user to play the individual notes of an instrument. Is there a place online where I can find individual sound files that I may playback for each note, or is there a way of programmatically 'generating' each pitch? I am...
nfw
1

votes
3

answer
2.3k

Views

Can't seem to control dmx lights via lighting desk

2 questions 1: Q light software... I have a Showtec Showmaster 24 which is a DMX controller with 24 channels. I have plugged it's MIDI input into my PC using a USB/MIDI cable. QLC picks up the MIDI connection and I have assigned the MIDI channel as 2. The light desk tells me how to set up the MIDI i...
Muscipula
1

votes
1

answer
110

Views

When listening for messages from a device, what is the unit of AbosoluteTime?

When listening for MidiEvents in NAudio from a MidiDevice, we get the long 'AbsoluteTime' property on each event. But what unit is this time in and from what starting point is it measured?
Dejas
1

votes
1

answer
324

Views

using the midiio interface (linux) with a usb midi controller

I want to read MIDI input from a USB MIDI-controller on linux. I found this set of libraries here http://midiio.sapp.org/, but I don't know whether it will support USB MIDI devices (can't test this until next month, don't have the hardware yet). Does anyone have some experience with midiio or, alte...
jln-ho
1

votes
2

answer
1.5k

Views

How to connect to ALSA server (in this case, Timidity) in Ubuntu using C++?

I am trying to use MIDI under Linux Ubuntu with C++. After a day of using several tools (e.g., JACK) with no success (JACK lags like mad on my machine), I am now trying to use Timidity as the MIDI server. However, I am not able to find any references on the web about how to programmatically connect...
Ziyao Wei
1

votes
2

answer
1.9k

Views

How can I play .mid file on iOS device

I tried AVAudioPlayer it doesnt work. url= [NSURL fileURLWithPath:[NSString stringWithFormat:@'%@/test.mid', [[NSBundle mainBundle] resourcePath]]]; NSLog(@'URL Description is %@',[url description]); NSError *error=nil; AVAudioPlayer *audioPlayer = [[AVAudioPlayer alloc] initWithContentsOfURL:url er...
user667673

View additional questions