SpiceQA
Questions Tags Users Badges

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

user_2095480 0
Created Nov 17, 2017 Edited Nov 17, 2017
Viewed 994

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.

audiokit xcode ios
Share
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

edited Nov 17, 2017
user_48404760
answered Nov 17, 2017
Related
Terms of service Privacy policy
Powered by Answer