gtk in snd?  

Matti,

On my Mac-Systems Fftw is only recognised when the port fftw-single is 
installed:

sudo port install fftw-single

One needs to specify the Architecture to get rid of the X-error:

This works for me:
./configure -prefix=/opt/snd-s7 CFLAGS="-arch x86_64 -I/opt/X11/include" 
LDFLAGS="-L/opt/X11/lib -lmx -bind_at_load" -with-gsl -with-gtk -with-s7

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. 

All the best, 
Daniel

> Am 11.09.2020 um 12:27 schrieb [email protected] 
> <[email protected]>:
> 
> Send Cmdist mailing list submissions to
>       [email protected]
> 
> To subscribe or unsubscribe via the World Wide Web, visit
>       https://cm-mail.stanford.edu/mailman/listinfo/cmdist
> or, via email, send a message with subject or body 'help' to
>       [email protected]
> 
> You can reach the person managing the list at
>       [email protected]
> 
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of Cmdist digest..."
> 
> 
> Today's Topics:
> 
>   1. Re: gtk in snd? (Matti Koskinen)
>   2. Re: Snd/CLM: experimental version of src and src-channel
>      (Tito Latini)
>   3. Re: Snd/CLM: experimental version of src and src-channel
>      (Tito Latini)
> 
> 
> ----------------------------------------------------------------------
> 
> Message: 1
> Date: Fri, 11 Sep 2020 03:13:41 +0300
> From: Matti Koskinen <[email protected]>
> To: ludger br?mmer <[email protected]>
> Cc: commonmusic-Mailing-List List <[email protected]>
> Subject: Re: [CM] gtk in snd?
> Message-ID: <[email protected]>
> Content-Type: text/plain; charset="utf-8"
> 
> I got snd + motif working on macOS Catalina. 
> 
> I installed homebrew openmotif and Mac xorg X . Then  this was my ./configure
> 
> CFLAGS='-I/usr/X11/include' LDFLAGS='-L/usr/X11/lib' ./configure --with-motif 
> --with-x
> 
> And snd got build without errors.
> 
> Adding homebrew vorbis-tools, mpg123, mpg321 nade snd even happier. Fftw3 I 
> had already, flac also. 
> 
> Misleading was, that  these were completely ignored, so I ended up on X-error
> 
> X features:
>  --x-includes=DIR    X include files are in DIR
>  --x-libraries=DIR   X library files are in DIR
> 
> HTH
> 
> -n
> 
> 
>> On 9. Sep 2020, at 19.11, ludger br?mmer <[email protected]> wrote:
>> 
>> Hi all
>> 
>> 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. 
>> 
>> 
>> viele Gr??e / all the best
>> Ludger Br?mmer
>> 
>> -- 
>> Prof. Ludger Br?mmer
>> Leitung | Head of Department
>> Hertz-Labor | Hertz-Lab
>> 
>> Professor f?r Komposition f?r digitale Medien
>> Musikhochschule Trossingen, mh-trossingen.de <http://mh-trossingen.de/>
>> 
>> ///////  / |<  ||| | ZKM | Zentrum f?r Kunst und Medien Karlsruhe
>> ///////  / |<  ||| | ZKM | Center for Art and Media Karlsruhe
>> ///////  / |<  ||| | ZKM | Centre d'Art et des M?dias Karlsruhe
>> 
>> Lorenzstr. 19, D-76135 Karlsruhe
>> Tel +49-(0)721-8100-1601, Fax +49-(0)721-8100-1699
>> E-Mail: [email protected] <mailto:[email protected]>
>> www.zkm.de
>> 
>> <zkm-cz.jpg>
>> 
>> <https://zkm.de/critical-zones/>Aktuelle Ausstellungen 
>> <http://www.zkm.de/ausstellungen> ? current exhibitions 
>> <http://www.zkm.de/en/exhibitions>
>> 
>>> Am 09.09.2020 um 17:25 schrieb Kjetil Matheussen <[email protected] 
>>> <mailto:[email protected]>>:
>>> 
>>> On Wed, Sep 9, 2020 at 4:05 PM <[email protected] 
>>> <mailto:[email protected]>> wrote:
>>>> 
>>>> That is interesting -- thanks for the pointer!  I wonder
>>>> if writing raw X code is a good idea -- people say Wayland
>>>> is the future (but they've been saying that for a decade).
>>>> I don't know how toolkits like gtk work with it -- that
>>>> was one reason to stick with gtk for so long.
>>> 
>>> I would say raw X (or Wayland) is a bad idea since it would mostly
>>> limit Snd to run on Linux only. If you want to make your own widgets,
>>> and only need a canvas to draw on, gdk, SDL, or JUCE might be good
>>> alternatives (haven't tried SDL though). Or cairo?
>>> _______________________________________________
>>> Cmdist mailing list
>>> [email protected] <mailto:[email protected]>
>>> https://cm-mail.stanford.edu/mailman/listinfo/cmdist
>> 
>> _______________________________________________
>> Cmdist mailing list
>> [email protected]
>> https://cm-mail.stanford.edu/mailman/listinfo/cmdist
> 
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: 
> <https://cm-mail.stanford.edu/pipermail/cmdist/attachments/20200911/335dca36/attachment-0001.html>
> 
> ------------------------------
> 
> Message: 2
> Date: Fri, 11 Sep 2020 10:25:15 +0200
> From: Tito Latini <[email protected]>
> To: [email protected]
> Cc: [email protected]
> Subject: Re: [CM] Snd/CLM: experimental version of src and src-channel
> Message-ID: <[email protected]>
> Content-Type: text/plain; charset=us-ascii
> 
> On Thu, Sep 10, 2020 at 11:06:01AM -0700, [email protected] wrote:
>> Thanks!  I see only a subtle difference -- do you have
>> a (hopefully small) test case?  (Am I right that your
>> version is more consistent with the sinc_table initialization?
>> It's been a long time since I looked at this code).
>> I've merged your changes in, but kept the old way under
>> a compile-time switch so it's easy to move back and forth.
>> I'll update the ccrma versions tomorrow morning.
> 
> Currently I have just some examples with sound files and sinusoids, to
> check aliasing and amplitude. I think the resampler is correct if the
> changed code passes all the tests for the original src and src-channel.
> This message for the mailing list is also an informal test for some
> user code.
> 
> About the consistence with the sinc_table initialization: the weak
> point of the original version is the table index with non-integer high
> rates:
> 
>    x = zf * (srp->width_1 - srpx);
>    sinc_loc = x + srp->sinc4;
> 
> It means:
> 
>    /*
>     * Memo: `width' is half length. It originally was the width
>     * of half sinc (the right side).
>     */
>    L = SRC_SINC_DENSITY;
>    x = L * (1 - width - frac(rate)) / rate;
>    table_index = x + L * width + padding;
> 
>    ==> k = padding + L * (1 - frac(rate))
>        table_index = L * width * (1 - 1/rate) + k;
> 
> If the non-integer rate >1 is near 1, the first table index is low
> and the interpolated sinc is windowed (the approximation depends on rate),
> otherwise...
> 
>       lim        L * width * (1 - 1/rate) = L * width [= main_lobe_peak]
>    rate -> inf
> 
> ...the sinc is truncated with high values of rate.
> 
> The first index in the new version is
> 
>    L * (1 - frac(rate)) + padding;
> 
> The range is [padding; L + padding].
> 
> Padding is necessary with the original version.
> Note: the sinc() begins at the index 0 of the table but the window
> starts at index `padding'.
> 
> The window is interpolated, but I think it is possible to remove the
> interpolation for low values of `width'; however that's a minor
> optimization without considerable enhancements. Kaiser window with
> adjustable parameter makes the difference.
> 
> 
> ------------------------------
> 
> Message: 3
> Date: Fri, 11 Sep 2020 12:33:23 +0200
> From: Tito Latini <[email protected]>
> To: [email protected]
> Cc: [email protected]
> Subject: Re: [CM] Snd/CLM: experimental version of src and src-channel
> Message-ID: <[email protected]>
> Content-Type: text/plain; charset=us-ascii
> 
> Hey Bill, a copy-and-paste failed in svn. Attached a fix.
> 
> 
> ------------------------------
> 
> _______________________________________________
> Cmdist mailing list
> [email protected]
> https://cm-mail.stanford.edu/mailman/listinfo/cmdist
> 
> 
> End of Cmdist Digest, Vol 148, Issue 14
> ***************************************

_______________________________________________
Cmdist mailing list
[email protected]
https://cm-mail.stanford.edu/mailman/listinfo/cmdist

Reply via email to