Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Convert MIDI file to audio file using an SF2 soundfont library with audiokit

Is it possible to convert a MIDI file to an audio file (e.g. MP3) using "audiokit" for iOS and an existing soundfont library (SF2)? Thanks for all answers.

like image 896
Walter Schurter Avatar asked Nov 15 '25 05:11

Walter Schurter


1 Answers

Yes, its possible. Use AKMIDI, AKMIDISampler, loadSoundFont, and renderToFile to make this happen.

http://audiokit.io/docs/Classes/AKMIDI.html

http://audiokit.io/docs/Classes/AKSampler.html

https://github.com/AudioKit/AudioKit/blob/master/AudioKit/Common/Nodes/Playback/Sampler/AKSampler%2BSoundFont.swift#L33

https://github.com/AudioKit/AudioKit/blob/develop/AudioKit/Common/Internals/AudioKit.swift#L558

like image 158
Aurelius Prochazka Avatar answered Nov 18 '25 00:11

Aurelius Prochazka