Re: PitchDetection: UGen Tartini gives different results on Win and Mac
[email protected] Sun, 16 May 2021 02:27:57 +0100
| Newsgroups | gmane.comp.audio.supercollider.user |
|---|---|
| Message-ID | <[email protected]> |
Hi, I'd not built for Windows before. I wonder, can you distribute best by compiling linking with static rather than later dynamically linked fftw lib? This would avoid any issues with end users not having fftw dylib... best, Nick > On 13 May 2021, at 17:06, [email protected] wrote: > > Hello list, > > I’m using the UGen Tartini in SC3-plugin PitchDetection.scx, but it gives different results on Win and Mac, which is a no-go in my application. I have managed to recompile this plugin to use FFTW instead of vDSP, and that fixes the problem, giving the same math results on both platforms. However, I then have to distribute a tweaked PitchDetection.scx to my users, and on Mac computers the fftw libraries are not available by default. I’d like just to install a copy of libfft3f.3.dylib in the users /usr/local/lib, but PitchDetection.scx tries to load it from the location set up by the homebrew installation of fftw. If the end user installs fftw with homebrew, it works, but that seems like overkill, and complicates the installation for non-techy users. > > Could SC not just always use FFTW, even on Mac? This seems to be the case for supernova on Mac (issue #4583). While this is being considered, does anyone have a workaround for how to build PitchDetection.scx so that it looks for libfft3f.3.dylib only in /usr/local/lib? > > Thanks > > sternsc