RE: PitchDetection: UGen Tartini gives different results on Win and Mac
[email protected] Mon, 17 May 2021 15:36:54 +0000
| Newsgroups | gmane.comp.audio.supercollider.user |
|---|---|
| Message-ID | <[email protected]> |
Thanks! Yes, linking statically makes sense here. After much rummaging around in various CMakeLists and CMakeCaches I realized that I only had to (1) tell PitchDetection to use FFTW instead and (2) supply the name of the .a file rather than the .dylib file for the library itself. It worked. Later I may want to do the same thing for some PV_UGens, so maybe dynamic linking would be better in terms of space. We’ll see. Thanks for your input. /sternsc From: [email protected] <[email protected]> On Behalf Of [email protected] Sent: den 16 maj 2021 04:19 To: sc-users <[email protected]> Subject: Re: [sc-users] PitchDetection: UGen Tartini gives different results on Win and Mac I think you can use otool to change library path(s). I'd also consider building fftw statically... The last time I tried it wasn't too difficult, here's my custom homebrew formula to build fftw (shared, but should be straightforward to change to static): https://github.com/dyfer/homebrew-formulae/blob/master/Formula/fftw-sc.rb Marcin On Thu, May 13, 2021 at 9:08 AM <[email protected]<mailto:[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