Re: PitchDetection: UGen Tartini gives different results on Win and Mac

[email protected] Sat, 15 May 2021 19:19:11 -0700
Newsgroups gmane.comp.audio.supercollider.user
Message-ID <CAEBNZeA+vGNk0wE3SS2WSmyqTGatbzKHD5jTMS+4R0mUe1DJdQ@mail.gmail.com>
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]> 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
>
>
>
>
>