Questions tagged [mikmidi]

MIKMIDI is an Objective-C MIDI library for iOS and OS X. It is useful for programmers writing Objective-C or Swift apps that do MIDI device communication, MIDI file recording, playback, MIDI synthesis, etc.. Use this tag for questions related to the use of MIKMIDI.

The MIKMIDI library can be found here: https://github.com/mixedinkey-opensource/MIKMIDI

10 questions
4
votes
0 answers

AudioKit microphone input + MIDI output

Is it possible to use AudioKit to gather microphone input and simultaneously use MIKMIDI for playing notes from a MIDI file through the stereo speakers? I have found that I can successfully do each on their own; I can gather microphone frequencies…
WrightsCS
  • 50,551
  • 22
  • 134
  • 186
4
votes
1 answer

AudioUnitRender and ExtAudioFileWrite error -50 in Swift: Trying to convert MIDI to Audio File

I'm trying to convert a MIDI file to an Audio File (.m4a) in Swift. Right now I'm using MIKMIDI as a tool to sequence and playback MIDI files, however it does not include the ability to save the playback into a file. MIKMID's creator outlines the…
mr. sudo
  • 347
  • 1
  • 13
3
votes
1 answer

export midi with sound fonts on iOS

Is it possible to export a midi sequence with soundfonts assigned to them as a .wav file? If so, can anyone put me in the right direction? I'm currently using MIKMIDI, and I haven't run into any example that does that so far.
user3217522
  • 5,786
  • 7
  • 26
  • 34
2
votes
0 answers

Has recent update affected genData in AudioKit?

*** Update 2 *** Ok, done some more digging and managed to get things working with MIKMIDI by starting at position 1 rather than position 0; the same fix hasn't worked with AudioKit. Further, I've created a new, ugly AF, app that replicates…
SadOldGoth
  • 21
  • 3
2
votes
0 answers

MIKMIDI soundfont preset selection

I have successfully done the following in Swift: created an MIKMIDI sequencer added a track to the sequencer loaded a soundfont to that tracks's built-in synthesizer added MIDI events to the track triggered playback on the sequencer Is is possible…
sigmonky
  • 95
  • 6
1
vote
2 answers

Convert MusicTimeStamp (AudioToolbox) to Milliseconds

I am using the MIKMIDI framework and this is using the AudioToolbox type MusicTimeStamp How can i convert this timestamp to milliseconds?
Martin Mlostek
  • 2,755
  • 1
  • 28
  • 57
1
vote
1 answer

Using soundfonts with MIKMIDI

Right now, I successfully created a MIKMIDISequence sequence. However, I couldn't find out how to tie a sound font to that sequence. My question is, how can I assign a MIKMIDISequence a soundfont?
Thomas
  • 61
  • 4
0
votes
0 answers

MIKMIDI: writing events on a track produces a warning

I'm trying to write a program to shift the key of a midi file. Basically, I just need to shift every note event by a given amount and live the rest unchanged. I found it easy to use MIKMIDI to read, parse, modify and write back the stream.…
FranceD
  • 9
  • 2
0
votes
1 answer

MIKMIDI NRPN command creation

I using MIKMIDI to send a combined NRPN command. I am trying to send a NRPN of this style B9H 63H 40H || B9H 62H 64H || B9H 06H 7FH (hex) which is B9 99 64 || B9 98 100 || B9 06 127 (dec) Which i try to create this way // create the MSB and LSB…
Martin Mlostek
  • 2,755
  • 1
  • 28
  • 57
0
votes
1 answer

How can I set timestamps accurately for midi events?

I am parsing a midi file and then sending midi events to connected synthesizer using MIKMIDI but I am getting the events timestamps rounded to an integral second rather than more specific milliseconds. I need help calculating the time accurately.…
George Yacoub
  • 1,436
  • 1
  • 11
  • 20