Wohlstand / OPNMIDI-Player-Java

Simple MIDI-player for Android based on libOPNMIDI library
https://play.google.com/store/apps/details?id=ru.wohlsoft.opnmidiplayer
MIT License
16 stars 2 forks source link

Hope to play with soundfont #2

Closed maxdanielc closed 1 year ago

maxdanielc commented 4 years ago

I hope to play on a different sound. so how can I set the soundfont in this project

Wohlstand commented 4 years ago

Did you meant to use a custom bank? Note that for FM synth the "soundfont" term is not applayable because of a different logic of sound generation. You need to load to your phone some set of WOPN files: each file defines an instruments bank that defines the sounding. Use the "Open custom bank" button to choose any WOPN file on your phone and check the "use custom bank" flag to toggle using of your bank, or uncheck to use dedault.

You can find sample WOPN banks you can try here in the "fm_banks" folder: https://github.com/Wohlstand/libOPNMIDI (note that xg.wopn bank here is the default bank that is shipped with an application)

Also you can edit them or even make your own banks yourself (you can even import instruments from VGM files you like): https://github.com/Wohlstand/OPN2-Bank-Editor (downloads of working builds you'll find in a readme)

Wohlstand commented 4 years ago

BTW, unlike SoundFonts for wavetable synthesizers, fm synth banks are much smaller because to define the sound, you should tweak and tune parameters of timbre operators are used in a formula that is used to compute a sound you'll hear in final. There is no need for store of heavy audio data.

maxdanielc commented 4 years ago

thanks for your reply.

maxdanielc commented 4 years ago

I make the decision to use synth banks. but I can't access https://github.com/Wohlstand/OPN2-Bank-Editor

Wohlstand commented 4 years ago

Oh, damn, sorry, I have incorrectly typed a path to the editor from a phone

Wohlstand commented 4 years ago

https://github.com/Wohlstand/OPN2BankEditor

maxdanielc commented 4 years ago

Really thanks for your clear explanation.