Questions tagged [midi]

0

votes
0

answer
9

Views

Java: External MIDI Hardware Not playing MIDI file Properly

I am following the approach in How to play a .MIDI file in a new thread in Java?, however, I cannot get MIDI file played on my Yamaha PSR. It list it as MIDI device and the input port is the 4th one. import javax.sound.midi.MidiSystem; import javax.sound.midi.Sequence; import javax.sound.midi.Sequen...
chikitin
0

votes
0

answer
4

Views

Fluidsynth not working the first time in Raspbian Lite 4.18

I'm trying to set up a little soundfont player for my usb MIDI keyboard with my Raspberry Pi 3B+ (Raspbian Lite 4.18). I'm using Fluidsynth for that. At startup this script is ran via cronjob: #!/bin/bash echo 'Starting' /usr/bin/fluidsynth -is -a alsa --gain 3 /usr/share/sounds/sf2/FluidR3_GM.sf2 &...
Miguel Moles
0

votes
0

answer
5

Views

How to make MIDI file from notes with Flute instrument in Python (music21 library)

I have some notes and what I want is create the MIDI file with Flute instrument. But what happens is that the output MIDI file plays Piano, instead of Flute. I tried other instruments, but it's always the same, Piano. What is going on? (...) new_note = note.Note(pattern) new_note.offset = offset new...
demo
1

votes
1

answer
526

Views

c# How do I send MIDI messages to the built in Microsoft GS Wavetable Synth using Windows.Devices.Midi?

I'm trying to use C# in a Windows Universal Application to send MIDI messages to the built in Microsoft GS Wavetable Synth on Windows 10. However, the code to retrieve the IMidiOutPort object (outputPort = await MidiOutPort.FromIdAsync(outputDevice.Id);) always returns null. How can I send MIDI mess...
Austin
1

votes
1

answer
749

Views

AudioKit sequencer clock

I plan to build a sequencer using audioKit. I would like to generate midiNotes on the fly according to user interactions, so I'd like to be able to record and play midi but not only (I'd like to record some time stamped objects as well). I guess I have to set a recursive loop with a delay somewhere,...
L.Veliscek
1

votes
1

answer
100

Views

CoreMIDI app not showing in other software

I am playing around a bit with CoreMIDI in Swift on OSX, and got most of the things to work properly. The only issue I have now is that my app is not seen by other software and apps and an available input/output. This is the case for in GarageBand, MIDIMonitor and the VVMidi test apps. I tried multi...
1

votes
1

answer
330

Views

Online Music Player that supports .MIDI files

Long story short: Basically, what I'm looking to set up is an on-site music player that allows the user to add/remove their own songs to some sort of playlist while having some .MIDI files in it by default, without requiring them to install any new plugins or other software they wouldn't already lik...
KittenCodings
1

votes
2

answer
595

Views

Using Web MIDI API on Android Chrome 52

I have worked successfully with Web MIDI API and Chrome 52 on my Mac laptop - for example recognizing connected MIDI instruments. But Web MIDI API does not seem to work or recognize connected instruments when I use Chrome 52 in my Samsung Galaxy S5 running Android 5.0.1. I've tried, for example, Web...
argiepiano
1

votes
1

answer
150

Views

Error “Cannot find System.ApplicationException in module CommonLanguageRuntimeLibrary” when I add functionality for MIDI device input

I am building an app in Visual Studio using C#. The aim is to display musical notes on the screen and then get input from a MIDI device. The app is working up to the point of trying to integrate the MIDI input. I have included a reference to midi.dll and included the 'using midi' line at the top...
Richard
1

votes
1

answer
332

Views

music21: writing notes to MIDI file by note position

I am using music21 to write midi file from the note values. Following code writes three notes sequentially. However, how do I insert an 'empty' space between the notes? It would be very easy if I could just insert the notes by their 'position' so that I wouldn't have to calculate the position/length...
ytrewq
1

votes
1

answer
122

Views

Is it possible to programmatically create a Virtual MIDI device via Chrome?

I would like to find or create a function that creates a Virtual MIDI device from Chrome. This way I would find this Virtual MIDI Device/Port in my favorite DAW or else. Is it possible in javascript or do I need to develop a plugin for that?
JSmith
1

votes
1

answer
115

Views

What is Synthesizer and Sequencer(javax.sound.midi) in Java?

I want to know the Actual Work of Synthesizer and Sequencer or what did they acually do?
Shubham Soni
1

votes
2

answer
97

Views

How to find a device /dev with a specific $string preferably in PHP

I am reading/writing from/to a midi device. The device is (partly) listed as 'ME-50' in e.g. a lsusb. What command can I use to recognise the exact device the 'ME-50' is linked to? In my main PC e.g. it is linked to /dev/snd/midiC0D0, but it could also be /dev/snd/midiC2D0 depending on what is plugg...
Arjen
1

votes
1

answer
174

Views

Deadlock in PortMidi on Windows 10

My code is using PortMidi for several years now. I use it for writing portable C++ code to control an external MIDI Surface Control of type Mackie.I use PortMidi latest version: 20101008Lately we found out that when the control is used exensively on Windows 10 we receive a deadlock. This happens onl...
PazO
1

votes
1

answer
59

Views

What is hexa MIDI message for G2, D♯3, D3 in iOS?

I want to send MIDI notes using HEXA package. G2, D♯3, D3 using coreMIDI in swift
Darshit Shah
1

votes
1

answer
204

Views

MIDI Note On Event Without Off Event [duplicate]

This question already has an answer here: Synthesia plays well midi file without any note off event? 1 answer I made a system that takes MIDI files and creates a graphical representation of the music. Every NoteOnEvent is when a single note starts, and every NoteOffEventwith the same note code is w...
Amit
1

votes
1

answer
702

Views

How to Extract Individual Chords, Rests, and Notes from a midi file?

I am making a program that should be able to extract the notes, rests, and chords from a certain midi file and write the respective pitch (in midi tone numbers - they go from 0-127) of the notes and chords to a csv file for later use. For this project, I am using the Python Library 'Music21'. from m...
Ikechukwu Anude
0

votes
0

answer
6

Views

How do I use Android native method (not via internet)make MIDI to WAV?

Android MIDI to WAV problem: I am working on an Android software that generates a .mid file with a format of 0, which can be played directly with MediaPlayer, but I hope that it can be converted into a normal audio file ,so that it can be used The next step. The only way we can think of is to use th...
carl wang
2

votes
1

answer
18

Views

USB midi keyboard detected by amidi but not by java

I'm using an Edirol PCR keyboard connected by USB to my laptop running Ubuntu 18.04.2 LTS. I get the following output from amidi -l: Dir Device Name IO hw:1,0,0 PCR MIDI IO hw:1,0,1 PCR 1 I hw:1,0,2 PCR 2 It seems the keyboard is detected. When I look at the names of all devices detected b...
Tom Price
1

votes
2

answer
76

Views

How do I send the 'sustain pedal' midi signal using pygame.midi?

Simple midi signals can be invoked by the note_on() or note_off() methods, but I couldn't find a way to send the 'sustain pedal' midi signal using pygame.midi. Is there any conventional way to do that?
Art
1

votes
1

answer
51

Views

How to get a precise clock for midi/audio purpose

I'm trying to get a precise clock that is not influenced by other processes inside the app. I currently use System.nanoTime() like below inside a thread. I use to calculate the timing of each of the sixteen step. Currently timed operations have sometime a perceptible delay that i try to fix. I woul...
1

votes
2

answer
53

Views

Handling MIDI the input of multiple system exclusive messages in VB

This is generally about receiving multiple MIDI system exclusive messages but specifically the MIDI equipped kit is a Fender Cyber Twin (CT) guitar amplifier. Note: SYSEX = system exclusive I know if I send this MIDI single preset dump request from my app: { F0, 08, 21, 11, 04, 22, 00, 00, 00, 02, 7...
JosieH
1

votes
1

answer
40

Views

Prevent midi driver from sleeping on MS Surface 4

I have a Windows Forms application that reacts to Midi events emanating from a button click on a Midi/USB footswitch. This works great with very little latency on almost all PCs...However on the Microsoft Surface 4 (and probably 5, 6 etc.) tablet, Microsoft appears to put the Midi (or USB) driver to...
1

votes
1

answer
4.4k

Views

Introduction to midi programming [closed]

So I have a little (musical) keyboard that has USB midi interface. I know you can program to this (many programs accept input from the midi device via USB interface) but where do you begin to program a midi device? Ideally I'm looking for a platform-independent api, through Python or something.
bobobobo
1

votes
1

answer
322

Views

If a midi tempo change occur, will it change all remaining tempo change's time?

I'm decoding midi files now, it is not simple, but anyway I want to do it for myself. I know that tempo change affects all tracks, but I'm just think that it affects all upcoming tempo changes's time. I'm just want to sure before I accept that theory.
1

votes
3

answer
718

Views

QuickBasic 4.5 Gravis Ultrasound Library

I am currently working on a small project in QuickBasic that requires the use of MIDI files. As the DOS environment I'm using DOSBox 0.74, which provides emulation of the Gravis Ultrasound card. So far, I've been able to access GUS only by using the PLAYMIDI.EXE file in the C:\ULTRASND directory. Ho...
1

votes
2

answer
2.7k

Views

How to change the pitch and volume of MIDI note in Delphi?

I use the following code in my project to play midi note on key press (this is midi-related part of source): uses MMSystem; var hMidi, midimsg, notenum, instrumNum :integer; procedure TForm1.FormCreate(Sender: TObject); begin midiOutOpen(@hmidi, 0, 0, 0, 0); midimsg := $C0+$100*29; // set midi instr...
VIK
1

votes
1

answer
1.9k

Views

Determining pulses per quarter note

I'm currently using this code (specifically the matrix2midi.m file) to write a MIDI file in Matlab. All is fine except that my tempo does not match what I specified. I currently have what I want the tempo to be in BPM. I then use the following formula to convert into a tempo format used by MIDI file...
Tsume
1

votes
4

answer
5k

Views

Communicate with external MIDI device from Android device

What classes are available for Android platform to communicate (in/out) with external MIDI device? I have HTC Desire smartphone, it has USB port, I'd assume it is possible to connect it to a MIDI synthesizer, using standard USB cable + [Type A -> Mini A] converter. I'd like to write a MIDI sequencer...
Passiday
1

votes
1

answer
1.8k

Views

Changing the tempo of a MIDI or WAV/MP3 file in FMOD

Is it possible to change the tempo of a MIDI or WAV/MP3 file using FMOD? I am using C++ alongside FMOD and cannot seem to find a function which will let me control the tempo of an audio file from variables received in the C part of the application. I am using audio that I have written myself, so I'm...
Dan Cailes
1

votes
3

answer
1.3k

Views

Java midi note to string mapping via octave of a note

In my project I want to be able to at least inform the user what string the note they need to play is on. I can get the note and its octave but as I've discovered, that note and its octave can appear in multiple places on a guitar fret board. So my question is: Is there anyway to map a midi note to...
JavaTime
1

votes
1

answer
140

Views

Sending MIDI data over HTTP

How can I efficiently transfer MIDI data to remote client over HTTP (POST)? There are no real time issues here, I just don't know how to encode the data. Should I use plain string-pairs? I think a better way will be to just send the binary data over the HTTP, I just don't know how to do it. Thank Yo...
kambi
1

votes
1

answer
368

Views

MIDI score following

Are there any opensource options for iOS/Android score following of MIDI files? I think on iOS the CoreMIDI framework may support this but can't understand it at all? How do you use it and what is it for?
scimob_p
1

votes
1

answer
590

Views

How can I change the instrument when writing a MIDI file?

I have used this template to write a program that writes MIDI files, the only problem I am having now is changing the instrument This code segment is commented to set the instrument to piano, but I would like to know if there are other instruments I could set it to with different message inputs. //*...
Glen654
1

votes
1

answer
551

Views

How to get a current state of a midi device?

How can I query a midi device for a current state of program, volume etc? I tried to find it in Midi specs, yet without any luck. I basically need to get the current instrument (piano etc.) from a digital piano connected by USB midi. Java seems to be able to do it: http://docs.oracle.com/javame/conf...
Oldrich Svec
1

votes
3

answer
327

Views

Finger positions

I am writing an algorithm to calculate piano fingering. I want to add this number (1-5) for each note to a musicXML sheet and I did that by using the fingering property. Yet, the text is placed on the notes themselves in musescore instead of below or next to them. Do I need to use a different proper...
dorien
1

votes
1

answer
3k

Views

What happened to the Windows “Midi Mapper”? [closed]

I wrote a windows program many years ago, which created music by sending notes to the 'midi mapper' (and thence to the midi-synth on my sound-card) Today, I have a soft-synth which, allegedly accepts midi information, so I'd assume it should be possible to use today's equivalent of a midi-mapper to...
interstar
1

votes
2

answer
1.9k

Views

Pure python library for MIDI to Score (Notes) and/or Audio Translation

i want something that abstracts away midi events, to extract/synthesize notes' pitch/duration/dynamic/onset (e.g. loud D# quarter note on the 4th beat). fluidsynth and timidity work, but i'd prefer a pure python library. i can't find anything but bindings here. midiutil makes midis and pygame plays...
sam boosalis
1

votes
1

answer
3.3k

Views

Sending MIDI SysEx messages with the Arduino?

I would like to send a MIDI SysEx message like this to my Roland JX8P Synth. F0 41 36 06 21 20 01 22 1B F7 This message would alter the VCF cutoff frequency of the synth. 1B is a variable hexadecimal value, swinging from 00 to 7F, relative to cutoff frequency. In the MIDI library I've found the docu...
blarg
1

votes
1

answer
4.8k

Views

API/Library for MIDI tune creation in C#?

Please be kind enough to not to say this as a silly question. Honestly asking after refering to several links on google. I am in need of a API which generates MIDI tone/tune in C#. Currently I'm implementing a 'Basic Optical Music Recogntion and Interpreting Application' without any OMR API (using...
hirosht

View additional questions