<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">Hi Daniel,<div class=""><br class=""></div><div class="">Have you mixed homebrew and macports? That’s not a good idea they say.</div><div class=""><br class=""></div><div class="">I’ve personally used only homebrew, and I haven’t had any issues installing software I’ve needed.</div><div class=""><br class=""></div><div class="">Openmotif needed Xquartz, setting the CFLAGS was all really needed, the libs were found automagically, but</div><div class="">setting -L/usr/X11/lib in LDFLAGS didn’t mess anything, and it looked more correct.</div><div class=""><br class=""></div><div class="">Yes, X11 is dying, but as I’m used to use motif on Linux, I just tried to build snd with motif on macOS, and it works</div><div class="">nicely.&nbsp;</div><div class=""><br class=""></div><div class="">Best regards</div><div class=""><br class=""></div><div class="">-m</div><div class=""><br class=""><div><br class=""><blockquote type="cite" class=""><div class="">On 11. Sep 2020, at 14.01, DR. Daniel Hensel &lt;<a href="mailto:danielhensel@me.com" class="">danielhensel@me.com</a>&gt; wrote:</div><br class="Apple-interchange-newline"><div class=""><meta http-equiv="Content-Type" content="text/html; charset=utf-8" class=""><div style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">gtk in snd? &nbsp;<div class=""><br class=""></div><div class="">Matti,<div class=""><br class=""></div><div class="">On my Mac-Systems Fftw is only recognised when the port fftw-single is installed:</div><div class=""><br class=""></div><div class="">sudo port install fftw-single</div><div class=""><br class=""></div><div class="">One needs to specify the Architecture to get rid of the X-error:</div><div class=""><br class=""></div><div class=""><div class="">This works for me:</div><div class="">./configure -prefix=/opt/snd-s7 CFLAGS="-arch x86_64 -I/opt/X11/include" LDFLAGS="-L/opt/X11/lib -lmx&nbsp;-bind_at_load" -with-gsl -with-gtk -with-s7</div><div class=""><br class=""></div><div class="">I personally cannot recommend to work with it on macOS anymore, due to increasing audio-latency and fading X11-support. On macOS Big Sur I’ll use it in a virtual Linux-machine, so I won’t have to mess with homebrew and Macports.&nbsp;</div><div class=""><br class=""></div><div class="">All the best,&nbsp;</div><div class="">Daniel</div><div class=""><font color="#353535" face="Noto Serif, serif" size="3" class=""><span style="caret-color: rgb(53, 53, 53); background-color: rgb(255, 255, 255);" class=""><br class=""></span></font><blockquote type="cite" class=""><div class="">Am 11.09.2020 um 12:27 schrieb <a href="mailto:cmdist-request@ccrma.stanford.edu" class="">cmdist-request@ccrma.stanford.edu</a> &lt;<a href="mailto:cmdist-request@ccrma.Stanford.EDU" class="">cmdist-request@ccrma.Stanford.EDU</a>&gt;:</div><br class="Apple-interchange-newline"><div class=""><div class="">Send Cmdist mailing list submissions to<br class=""><span class="Apple-tab-span" style="white-space:pre">        </span><a href="mailto:cmdist@ccrma.stanford.edu" class="">cmdist@ccrma.stanford.edu</a><br class=""><br class="">To subscribe or unsubscribe via the World Wide Web, visit<br class=""><span class="Apple-tab-span" style="white-space:pre">        </span><a href="https://cm-mail.stanford.edu/mailman/listinfo/cmdist" class="">https://cm-mail.stanford.edu/mailman/listinfo/cmdist</a><br class="">or, via email, send a message with subject or body 'help' to<br class=""><span class="Apple-tab-span" style="white-space:pre">        </span>cmdist-request@ccrma.stanford.edu<br class=""><br class="">You can reach the person managing the list at<br class=""><span class="Apple-tab-span" style="white-space:pre">        </span>cmdist-owner@ccrma.stanford.edu<br class=""><br class="">When replying, please edit your Subject line so it is more specific<br class="">than "Re: Contents of Cmdist digest..."<br class=""><br class=""><br class="">Today's Topics:<br class=""><br class=""> &nbsp;&nbsp;1. Re: gtk in snd? (Matti Koskinen)<br class=""> &nbsp;&nbsp;2. Re: Snd/CLM: experimental version of src and src-channel<br class=""> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;(Tito Latini)<br class=""> &nbsp;&nbsp;3. Re: Snd/CLM: experimental version of src and src-channel<br class=""> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;(Tito Latini)<br class=""><br class=""><br class="">----------------------------------------------------------------------<br class=""><br class="">Message: 1<br class="">Date: Fri, 11 Sep 2020 03:13:41 +0300<br class="">From: Matti Koskinen &lt;squarewave@elisanet.fi&gt;<br class="">To: ludger br?mmer &lt;lb@zkm.de&gt;<br class="">Cc: commonmusic-Mailing-List List &lt;cmdist@ccrma.Stanford.EDU&gt;<br class="">Subject: Re: [CM] gtk in snd?<br class="">Message-ID: &lt;E8DF5A13-24FD-4F25-AA79-1041AB4C2EDC@elisanet.fi&gt;<br class="">Content-Type: text/plain; charset="utf-8"<br class=""><br class="">I got snd + motif working on macOS Catalina. <br class=""><br class="">I installed homebrew openmotif and Mac xorg X . Then &nbsp;this was my ./configure<br class=""><br class="">CFLAGS='-I/usr/X11/include' LDFLAGS='-L/usr/X11/lib' ./configure --with-motif --with-x<br class=""><br class="">And snd got build without errors.<br class=""><br class="">Adding homebrew vorbis-tools, mpg123, mpg321 nade snd even happier. Fftw3 I had already, flac also. <br class=""><br class="">Misleading was, that &nbsp;these were completely ignored, so I ended up on X-error<br class=""><br class="">X features:<br class=""> &nbsp;--x-includes=DIR &nbsp;&nbsp;&nbsp;X include files are in DIR<br class=""> &nbsp;--x-libraries=DIR &nbsp;&nbsp;X library files are in DIR<br class=""><br class="">HTH<br class=""><br class="">-n<br class=""><br class=""><br class=""><blockquote type="cite" class="">On 9. Sep 2020, at 19.11, ludger br?mmer &lt;lb@zkm.de&gt; wrote:<br class=""><br class="">Hi all<br class=""><br class="">don?t know If I am the only OSX user here, but, being not an experienced coder, I tried to compile SND with motif on OSX several time over the last years and most of the time it failed. I got only GTK to run. So I would be happy if the solution you will find could work on OSX without having a good recommendation for a specific system myself. <br class=""><br class=""><br class="">viele Gr??e / all the best<br class="">Ludger Br?mmer<br class=""><br class="">-- <br class="">Prof. Ludger Br?mmer<br class="">Leitung | Head of Department<br class="">Hertz-Labor | Hertz-Lab<br class=""><br class="">Professor f?r Komposition f?r digitale Medien<br class="">Musikhochschule Trossingen, mh-trossingen.de &lt;http://mh-trossingen.de/&gt;<br class=""><br class="">/////// &nbsp;/ |&lt; &nbsp;||| | ZKM | Zentrum f?r Kunst und Medien Karlsruhe<br class="">/////// &nbsp;/ |&lt; &nbsp;||| | ZKM | Center for Art and Media Karlsruhe<br class="">/////// &nbsp;/ |&lt; &nbsp;||| | ZKM | Centre d'Art et des M?dias Karlsruhe<br class=""><br class="">Lorenzstr. 19, D-76135 Karlsruhe<br class="">Tel +49-(0)721-8100-1601, Fax +49-(0)721-8100-1699<br class="">E-Mail: ludger.bruemmer@zkm.de &lt;mailto:ludger.bruemmer@zkm.de&gt;<br class="">www.zkm.de<br class=""><br class="">&lt;zkm-cz.jpg&gt;<br class=""><br class=""> &lt;https://zkm.de/critical-zones/&gt;Aktuelle Ausstellungen &lt;http://www.zkm.de/ausstellungen&gt; ? current exhibitions &lt;http://www.zkm.de/en/exhibitions&gt;<br class=""><br class=""><blockquote type="cite" class="">Am 09.09.2020 um 17:25 schrieb Kjetil Matheussen &lt;k.s.matheussen@gmail.com &lt;mailto:k.s.matheussen@gmail.com&gt;&gt;:<br class=""><br class="">On Wed, Sep 9, 2020 at 4:05 PM &lt;bil@ccrma.stanford.edu &lt;mailto:bil@ccrma.stanford.edu&gt;&gt; wrote:<br class=""><blockquote type="cite" class=""><br class="">That is interesting -- thanks for the pointer! &nbsp;I wonder<br class="">if writing raw X code is a good idea -- people say Wayland<br class="">is the future (but they've been saying that for a decade).<br class="">I don't know how toolkits like gtk work with it -- that<br class="">was one reason to stick with gtk for so long.<br class=""></blockquote><br class="">I would say raw X (or Wayland) is a bad idea since it would mostly<br class="">limit Snd to run on Linux only. If you want to make your own widgets,<br class="">and only need a canvas to draw on, gdk, SDL, or JUCE might be good<br class="">alternatives (haven't tried SDL though). Or cairo?<br class="">_______________________________________________<br class="">Cmdist mailing list<br class="">Cmdist@ccrma.stanford.edu &lt;mailto:Cmdist@ccrma.stanford.edu&gt;<br class="">https://cm-mail.stanford.edu/mailman/listinfo/cmdist<br class=""></blockquote><br class="">_______________________________________________<br class="">Cmdist mailing list<br class="">Cmdist@ccrma.stanford.edu<br class="">https://cm-mail.stanford.edu/mailman/listinfo/cmdist<br class=""></blockquote><br class="">-------------- next part --------------<br class="">An HTML attachment was scrubbed...<br class="">URL: &lt;https://cm-mail.stanford.edu/pipermail/cmdist/attachments/20200911/335dca36/attachment-0001.html&gt;<br class=""><br class="">------------------------------<br class=""><br class="">Message: 2<br class="">Date: Fri, 11 Sep 2020 10:25:15 +0200<br class="">From: Tito Latini &lt;tito.01beta@gmail.com&gt;<br class="">To: bil@ccrma.Stanford.EDU<br class="">Cc: cmdist@ccrma.Stanford.EDU<br class="">Subject: Re: [CM] Snd/CLM: experimental version of src and src-channel<br class="">Message-ID: &lt;20200911082515.GA1702@vis.roboris&gt;<br class="">Content-Type: text/plain; charset=us-ascii<br class=""><br class="">On Thu, Sep 10, 2020 at 11:06:01AM -0700, bil@ccrma.Stanford.EDU wrote:<br class=""><blockquote type="cite" class="">Thanks! &nbsp;I see only a subtle difference -- do you have<br class="">a (hopefully small) test case? &nbsp;(Am I right that your<br class="">version is more consistent with the sinc_table initialization?<br class="">It's been a long time since I looked at this code).<br class="">I've merged your changes in, but kept the old way under<br class="">a compile-time switch so it's easy to move back and forth.<br class="">I'll update the ccrma versions tomorrow morning.<br class=""></blockquote><br class="">Currently I have just some examples with sound files and sinusoids, to<br class="">check aliasing and amplitude. I think the resampler is correct if the<br class="">changed code passes all the tests for the original src and src-channel.<br class="">This message for the mailing list is also an informal test for some<br class="">user code.<br class=""><br class="">About the consistence with the sinc_table initialization: the weak<br class="">point of the original version is the table index with non-integer high<br class="">rates:<br class=""><br class=""> &nbsp;&nbsp;&nbsp;x = zf * (srp-&gt;width_1 - srpx);<br class=""> &nbsp;&nbsp;&nbsp;sinc_loc = x + srp-&gt;sinc4;<br class=""><br class="">It means:<br class=""><br class=""> &nbsp;&nbsp;&nbsp;/*<br class=""> &nbsp;&nbsp;&nbsp;&nbsp;* Memo: `width' is half length. It originally was the width<br class=""> &nbsp;&nbsp;&nbsp;&nbsp;* of half sinc (the right side).<br class=""> &nbsp;&nbsp;&nbsp;&nbsp;*/<br class=""> &nbsp;&nbsp;&nbsp;L = SRC_SINC_DENSITY;<br class=""> &nbsp;&nbsp;&nbsp;x = L * (1 - width - frac(rate)) / rate;<br class=""> &nbsp;&nbsp;&nbsp;table_index = x + L * width + padding;<br class=""><br class=""> &nbsp;&nbsp;&nbsp;==&gt; k = padding + L * (1 - frac(rate))<br class=""> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;table_index = L * width * (1 - 1/rate) + k;<br class=""><br class="">If the non-integer rate &gt;1 is near 1, the first table index is low<br class="">and the interpolated sinc is windowed (the approximation depends on rate),<br class="">otherwise...<br class=""><br class=""> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;lim &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;L * width * (1 - 1/rate) = L * width [= main_lobe_peak]<br class=""> &nbsp;&nbsp;&nbsp;rate -&gt; inf<br class=""><br class="">...the sinc is truncated with high values of rate.<br class=""><br class="">The first index in the new version is<br class=""><br class=""> &nbsp;&nbsp;&nbsp;L * (1 - frac(rate)) + padding;<br class=""><br class="">The range is [padding; L + padding].<br class=""><br class="">Padding is necessary with the original version.<br class="">Note: the sinc() begins at the index 0 of the table but the window<br class="">starts at index `padding'.<br class=""><br class="">The window is interpolated, but I think it is possible to remove the<br class="">interpolation for low values of `width'; however that's a minor<br class="">optimization without considerable enhancements. Kaiser window with<br class="">adjustable parameter makes the difference.<br class=""><br class=""><br class="">------------------------------<br class=""><br class="">Message: 3<br class="">Date: Fri, 11 Sep 2020 12:33:23 +0200<br class="">From: Tito Latini &lt;tito.01beta@gmail.com&gt;<br class="">To: bil@ccrma.Stanford.EDU<br class="">Cc: cmdist@ccrma.Stanford.EDU<br class="">Subject: Re: [CM] Snd/CLM: experimental version of src and src-channel<br class="">Message-ID: &lt;20200911103323.GA4772@vis.roboris&gt;<br class="">Content-Type: text/plain; charset=us-ascii<br class=""><br class="">Hey Bill, a copy-and-paste failed in svn. Attached a fix.<br class=""><br class=""><br class="">------------------------------<br class=""><br class="">_______________________________________________<br class="">Cmdist mailing list<br class="">Cmdist@ccrma.stanford.edu<br class="">https://cm-mail.stanford.edu/mailman/listinfo/cmdist<br class=""><br class=""><br class="">End of Cmdist Digest, Vol 148, Issue 14<br class="">***************************************<br class=""></div></div></blockquote></div><br class=""></div></div></div>_______________________________________________<br class="">Cmdist mailing list<br class=""><a href="mailto:Cmdist@ccrma.stanford.edu" class="">Cmdist@ccrma.stanford.edu</a><br class="">https://cm-mail.stanford.edu/mailman/listinfo/cmdist<br class=""></div></blockquote></div><br class=""></div></body></html>