Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FX not rendered #16

Open
agear opened this issue Jan 19, 2024 · 0 comments
Open

FX not rendered #16

agear opened this issue Jan 19, 2024 · 0 comments

Comments

@agear
Copy link

agear commented Jan 19, 2024

Hello,

I am using sf2_loader to render .mid files to audio but it is not rendering with any effects:

=> python3
Python 3.9.18 (main, Aug 24 2023, 21:32:41) 
[Clang 13.0.0 (clang-1300.0.29.30)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import sf2_loader as sf
>>> loader = sf.sf2_loader("/Users/admin/Desktop/gm.sf2")
>>> loader.export_midi_file("/Users/admin/Desktop/reverb.mid", name="reverb.wav", format="wav")

When I play back the exported "reverb.wav" file, there are no reverb or other effects on the audio. However, if I use VLC media player with the same "gm.sf2" as the audio output codec and playback "reverb.mid" (or use VLC's "Convert & Stream" function to save "reverb.mid" to "reverb.wav"), the file does have reverb indicating that the "reverb.mid" file is using MIDI CC 91 to send the track to reverb (which I have confirmed in my DAW) and also that the "gm.sf2" SoundFont file I am using can produce a reverb effect. Is there some additional parameter that I need to pass to the sf2_loader object so that it correctly renders effects? Or is this a bug or missing feature? Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant