Themaister / libfmsynth

A C library which implements an FM synthesizer
MIT License
334 stars 25 forks source link

LV2 plugin does not produce (much) sound #2

Open danielappelt opened 7 years ago

danielappelt commented 7 years ago

Unfortunately, the only sound that I am able to produce with the LV2 plugin of libfmsynth is a very quiet, low-pitched "hummm" if I send MIDI notes to it.

I have created the LV2 on a recent Arch Linux / x86_64 according to your documentation. The plugin loads fine in jalv.gtkmm. I am able to load one of the provided presets and can see corresponding value changes in the plugin's GUI. MIDI notes are send using jack-keyboard, and the required jack connections are created using Catia. The same setup produces audible sounds using for example TAL-Noisemaker LV2. I can reproduce the same behaviour using Carla as a host.

Apart from that I have created the test program. If I run the program providing a file name it creates this text file containing two columns of numbers.

Do you have any idea what might went wrong?

magnetophon commented 5 years ago

Same issue here. I love this synth; it would be great to have working again!

x42 commented 4 years ago

Quick debug session with @magnetophon - it works on his box when compiled without AVX,SSE

make SIMD=0

I don't have this issue, here both AVX and SSE are fine (Intel i7-5600U). tested by manually commenting

https://github.com/Themaister/libfmsynth/blob/9ffa1d2fea287f1209b210d2dbde2f0f60f37176/src/fmsynth.c#L682-L687

So it seems that some of the dedicated asm code is not portable or fails on some CPUs (even if AVX or SSE are supported)

x42 commented 4 years ago

Could the issue be alignment? I don't see boilerplate that tests if float* oleft, float *oright or voice->phases was allocated and aligned with posix_memalign