-
Notifications
You must be signed in to change notification settings - Fork 58
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
function 'fluid_synth_set_reverb_full' not found #12
Comments
Oh. That explains why pyfluidsynth doesn't find them in issue #11.
Did you fix the problem on windows? I could test it on linux and push it to
PyPI if it works.
…On Thu, 25 Oct 2018 at 23:25, Ting Tron ***@***.***> wrote:
Looks like pyfluidsynth uses internal functions:
- fluid_synth_set_reverb_full
- fluid_synth_set_chorus_full
They are only used in the internal sources of fluidsynth and are not
exported.
They are also not present in the include directory for header files.
Tested on Windows. Note: as is, it might work on Linux/Mac, but not on
Windows.
Suggested is to use the "public" api, which is properly exported in the
DLL,
FLUIDSYNTH_API int fluid_synth_set_reverb(fluid_synth_t *synth, double roomsize,
double damping, double width, double level);
FLUIDSYNTH_API int fluid_synth_set_reverb_roomsize(fluid_synth_t *synth, double roomsize);
FLUIDSYNTH_API int fluid_synth_set_reverb_damp(fluid_synth_t *synth, double damping);
FLUIDSYNTH_API int fluid_synth_set_reverb_width(fluid_synth_t *synth, double width);
FLUIDSYNTH_API int fluid_synth_set_reverb_level(fluid_synth_t *synth, double level);
Full error output:
>python test1.py
Traceback (most recent call last):
File "test1.py", line 2, in <module>
import fluidsynth
File "c:\Tools\Python27\lib\site-packages\fluidsynth.py", line 188, in <module>
('level', c_double, 1))
File "c:\Tools\Python27\lib\site-packages\fluidsynth.py", line 53, in cfunc
return CFUNCTYPE(result, *atypes)((name, _fl), tuple(aflags))
AttributeError: function 'fluid_synth_set_reverb_full' not found
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#12>, or mute the thread
<https://github.com/notifications/unsubscribe-auth/AYlAVqTUEh7Bgl9nWgvRxyfWCYeAkuLbks5uoixhgaJpZM4X7JCT>
.
|
There are a number of changes I had to make to
|
Any guidance here for users? I have fluidsynth 1.1.11 (as advised in #19) and pyfluidsynth 1.2.5 from PyPI and I'm getting this error. My fluidsynth.so does not export |
@cooijmanstim and anybody else that finds this looking for a solution: sadly the official package has not been updated, but the changes above do work, so you can either make them yourself locally or do what I did and install the fork instead of the official version. Make sure all the old pip install git+https://github.com/0xf0f/pyfluidsynth |
@bdoms thx for the tip! This also worked for me with fluidsynth 1.1.11 on Ubuntu 20. Also hi @cooijmanstim fancy seeing you here :) |
de3baa1 should fix this :) |
thx!!! |
Looks like pyfluidsynth uses internal functions:
They are only used in the internal sources of fluidsynth and are not exported.
They are also not present in the
include
directory for header files.Tested on Windows. Note: as is, it might work on Linux/Mac, but not on Windows.
Suggested is to use the "public" API from
include
, which is properly exported in the DLL,Full error output:
The text was updated successfully, but these errors were encountered: