Re: [CM] newbie - how to build and run

2024-07-19 Thread John Rigg
On Fri, Jul 19, 2024 at 11:09:17PM +1200, adam wrote:
> Installed the libmotif-dev package. Get a new make error as below.
> 
> Perhaps this is X libs missing. Perhaps I should apt-get build-dep snd 
> just to get all X sources?

If you do that you'll end up with all the GTK3 development stuff, which
is huge and not required here. 

As Bil pointed out you'll need libxpm-dev and libxt-dev, maybe some others
(check the docs).

John 
___
Cmdist mailing list
Cmdist@ccrma.stanford.edu
https://cm-mail.stanford.edu/mailman/listinfo/cmdist


Re: [CM] newbie - how to build and run

2024-07-18 Thread John Rigg
On Fri, Jul 19, 2024 at 05:07:08PM +1200, adam wrote:
> Thank you. It was --with-motif I was looking for. 
> 
> Strangely or not, I can't see libmotif-dev package after
> $ sudo apt-get build-dep snd 
> 
> 
> The following packages will be REMOVED:
>   adlplug:i386 jackd2 jackd2-firewire libjack-jackd2-0 libjack-jackd2-0:i386
> The following NEW packages will be installed:
>   cdbs dh-translations gir1.2-harfbuzz-0.0 icu-devtools intltool jackd1 jq 
> libatk-
> bridge2.0-dev libatk1.0-dev libatspi2.0-dev libdatrie-dev libdbus-1-dev
>   libegl-dev libegl1-mesa-dev libepoxy-dev libfribidi-dev 
> libgdk-pixbuf2.0-dev libgl-dev
> libgl1-mesa-dev libgles-dev libgles1 libglvnd-dev libglx-dev libgmp-dev
>   libgmpxx4ldbl libgraphite2-dev libgsl-dev libgtk-3-dev libharfbuzz-dev 
> libharfbuzz-
> gobject0 libicu-dev libjack-dev libjack0 libjq1 libmpc-dev libmpfr-dev
>   libonig5 libopengl-dev libpango1.0-dev libthai-dev libwayland-bin 
> libwayland-dev
> libxcomposite-dev libxcursor-dev libxdamage-dev libxfixes-dev libxft-dev
>   libxi-dev libxinerama-dev libxkbcommon-dev libxmu-dev libxmu-headers 
> libxrandr-dev
> libxtst-dev libzita-alsa-pcmi0 libzita-resampler1 pango1.0-tools
>   python3-scour scour wayland-protocols x11proto-input-dev x11proto-randr-dev 
> x11proto-
> record-dev x11proto-xinerama-dev xutils-dev
> 0 upgraded, 65 newly installed, 5 to remove and 14 not upgraded.

Looks like Ubuntu is using an older version of snd with the optional GTK3 GUI.
That option was removed in recent versions of snd. Current version uses Motif.

John 
___
Cmdist mailing list
Cmdist@ccrma.stanford.edu
https://cm-mail.stanford.edu/mailman/listinfo/cmdist


Re: [CM] newbie - how to build and run

2024-07-18 Thread John Rigg
On Thu, Jul 18, 2024 at 11:48:17PM +1200, adam wrote:
> snd-x0.h:4:10: fatal error: Xm/XmAll.h: No such file or directory
> 4 | #include 
>   |  ^~~~

You need to install libmotif-dev package.
Use --with-motif.

John
___
Cmdist mailing list
Cmdist@ccrma.stanford.edu
https://cm-mail.stanford.edu/mailman/listinfo/cmdist


Re: [CM] 22.4: Issues building with pulseaudio

2022-06-11 Thread John Rigg
On Sat, Jun 11, 2022 at 11:02:26AM +0200, David Runge wrote:
> Hi!
> 
> I'm maintaining snd for Arch Linux.
> Upon upgrading to 22.4 I ran into issues and am unable to build the
> project.
> 
> I noticed that `pulseaudio_sample_types` is implicitly declared:
> 
> ```
> audio.c: In function ???mus_audio_device_sample_type???:
> audio.c:5689:5: warning: implicit declaration of function 
> ???pulseaudio_sample_types???; did you mean ???alsa_sample_types 
> [-Wimplicit-function-declaration]
>  5689 | pulseaudio_sample_types(dev, mixer_vals);
>   | ^~~
>   | alsa_sample_types
> ```
> 
> Later on the linker is not able to find the reference:
>

FWIW snd-22.4 builds without a problem here on a week-old snapshot
of Void Linux (gcc-10.2) using --with-alsa and --with-jack. (I don't
have any pulseaudio development stuff installed).

John.
___
Cmdist mailing list
Cmdist@ccrma.stanford.edu
https://cm-mail.stanford.edu/mailman/listinfo/cmdist


Re: [CM] gtk in snd?

2020-09-09 Thread John Rigg
On Wed, Sep 09, 2020 at 07:04:59AM -0700, b...@ccrma.stanford.edu 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).

Several Linux audio developers have moved away from big
GUI toolkits like GTK in the last few years. OpenGL and
Cairo seem quite popular.

Robin Gareus wrote his own toolkit for x42-plugins:
https://github.com/x42/robtk

The LSP-Plugins project switched from GTK to their own
toolkit:
https://github.com/sadko4u/lsp-plugins

J. Liles, the developer of Non DAW made his own port of
FLTK (NTK) with Cairo support:
https://github.com/original-male/ntk 

John
___
Cmdist mailing list
Cmdist@ccrma.stanford.edu
https://cm-mail.stanford.edu/mailman/listinfo/cmdist


Re: [CM] gtk in snd?

2020-09-09 Thread John Rigg
On Mon, Sep 07, 2020 at 05:59:47AM -0700, b...@ccrma.stanford.edu wrote:
> Would anyone greatly object if I remove all gtk support
> from Snd?  

No objection here. I've always used the Motif version.

John
___
Cmdist mailing list
Cmdist@ccrma.stanford.edu
https://cm-mail.stanford.edu/mailman/listinfo/cmdist


Re: [CM] [snd] Any way to limit no. of sndlib in/out ports?

2020-04-04 Thread John Rigg
On Sat, Apr 04, 2020 at 09:11:28PM +0200, Kjetil Matheussen wrote:
> On Sat, Apr 4, 2020 at 8:59 PM John Rigg  wrote:
> >
> > Is there a way to limit the number of input and output
> > jack ports that are created automatically when running
> > snd with jackd? It can get quite awkward when using an
> > audio interface with a lot of channels, eg. a MADI card
> > with 64 inputs and 64 outputs.
> >
> 
> Set the environment variable SNDLIB_NUM_JACK_CHANNELS
> (https://ccrma.stanford.edu/software/snd/snd/grfsnd.html#sndandjack)

Thanks!

John
___
Cmdist mailing list
Cmdist@ccrma.stanford.edu
https://cm-mail.stanford.edu/mailman/listinfo/cmdist



[CM] [snd] Any way to limit no. of sndlib in/out ports?

2020-04-04 Thread John Rigg
Is there a way to limit the number of input and output
jack ports that are created automatically when running
snd with jackd? It can get quite awkward when using an
audio interface with a lot of channels, eg. a MADI card
with 64 inputs and 64 outputs.

John
___
Cmdist mailing list
Cmdist@ccrma.stanford.edu
https://cm-mail.stanford.edu/mailman/listinfo/cmdist



Re: [CM] snd 19.7 gtk-effects menu not working

2019-09-15 Thread John Rigg
On Sat, Sep 14, 2019 at 02:47:02PM +0200, Koen De Turck wrote:
> Does anyone use the combo arch+motif? on openbsd I use motif and it works
> great, but on my arch machine I tried to get motif to work (with different
> versions
> iirc), but I failed so I settled with gtk instead, thinking that this was
> the standard option
> anyway (and forgot to document my different attempts so I can't recall
> exactly which version of
> motif I tried)
> Koen

I'm not an Arch user but I notice they currently use motif-2.3.8
(which appears to be from ICS despite the package name openmotif).
That version is also in OpenBSD 6.4 and 6.5.

My DAW systems are running Debian 9 with motif-2.3.4. Debian 10
uses motif-2.3.8 but I haven't tried it yet.

I don't know if choice of window manager is relevant. I used
Window Maker for many years and recently switched to cwm. Both
have worked well with snd and motif. Also of unknown relevance:
none of my systems run dbus or systemd.

BTW I was incorrect about Void using Open Motif; it uses lesstif
0.95, released in 2009. IIRC that was used in earlier versions
of Debian and was quite crash-prone when used with snd.

John 
___
Cmdist mailing list
Cmdist@ccrma.stanford.edu
https://cm-mail.stanford.edu/mailman/listinfo/cmdist



Re: [CM] snd 19.7 gtk-effects menu not working

2019-09-14 Thread John Rigg
On Fri, Sep 13, 2019 at 04:11:01AM -0700, b...@ccrma.stanford.edu wrote:
> The gtk version of Snd is caught in-between versions.
> I thought gtk 4 was "right around the corner" years
> ago and started trying to port everything to it.
> Since the changes between version 3 and 4 are enormous,
> and (it turned out) gtk 4 really isn't ready yet,
> I got trapped.  Snd itself works (though I am not
> happy with it) in gtk 2/3 but does not work in 4,
> and the *.scm files are not in any consistent version.
> I use motif which is still (thank goodness) available
> from debian and fedora.  I suppose I could return to
> the gtk3 scheme files.  The real problem is that I
> think the gtk interface is ugly, so it's hard to
> get up the energy to work on it.

Another motif user here. It's much nicer IMO than the GTK
interface. The ICS version of motif as used by Debian is
still actively maintained (some Linux distros eg. Void
still use the Open Motif version, which is unmaintained
and buggy).

John
___
Cmdist mailing list
Cmdist@ccrma.stanford.edu
https://cm-mail.stanford.edu/mailman/listinfo/cmdist



Re: [CM] snd: srate implicitly corrected in play ?

2018-11-06 Thread John Rigg
On Mon, Nov 05, 2018 at 04:22:52PM -0800, b...@ccrma.stanford.edu wrote:
> I think we could add a compile-time switch there, if you like.

That would be useful here. I'd rather not have implicit SRC as
it makes it too easy (for me) to make mistakes.

John
___
Cmdist mailing list
Cmdist@ccrma.stanford.edu
https://cm-mail.stanford.edu/mailman/listinfo/cmdist



Re: [CM] snd: srate implicitly corrected in play ?

2018-11-05 Thread John Rigg
On Mon, Nov 05, 2018 at 05:05:52PM +0100, Kjetil Matheussen wrote:
> Warning, sample-rate differs between snd and jack.
> Sound will not be played correctly!

I'd regard playback at the wrong pitch as correct in this
situation ;-)

John
___
Cmdist mailing list
Cmdist@ccrma.stanford.edu
https://cm-mail.stanford.edu/mailman/listinfo/cmdist



[CM] [snd] Font colour in Save window (Motif)

2018-02-23 Thread John Rigg
I'm using the Motif version of snd, set up with dark
background colours (eg. white waveform on black
background) as I find it easier on the eyes when
working for long periods.

One problem with this is that in the 'Save as' window
the text field for typing in the destination filename
uses white text on a dark background (which is fine)
until the mouse is clicked on the field to select it
for typing in. Then the background goes white and the
text stays white too, so it isn't possible to see
what's being typed. Is there an easy way to change
the colour of the font (or highlighted background)
here?

If not it isn't a big deal, as I can use save-sound-as
in the listener; I just wondered if it was possible
as it could save a small amount of time.

John
___
Cmdist mailing list
Cmdist@ccrma.stanford.edu
https://cm-mail.stanford.edu/mailman/listinfo/cmdist



[CM] [snd] Download link still points to 17.4

2017-07-28 Thread John Rigg
Just noticed the source tarball download link on the Snd
web page at https://ccrma.stanford.edu/software/snd/
still points to 17.4.

John
___
Cmdist mailing list
Cmdist@ccrma.stanford.edu
https://cm-mail.stanford.edu/mailman/listinfo/cmdist



Re: [CM] snd gtk background colors

2017-03-20 Thread John Rigg
On Sun, Mar 19, 2017 at 11:53:13AM -0700, b...@ccrma.stanford.edu wrote:
> I think gtk wants to present a "brand" -- the "theme"
> writer conjures up a style, including all color choices,
> widget geometries, etc, and every program is constrained
> to march in step.  snd-gutils.c has a couple attempts
> to get around this, but since the gtk developers are
> busily subverting it, there's almost no hope it will
> work.  The way a theme is defined changes
> radically every few months, and it is a large task.
> gtk4 will be even worse -- I'll go down fighting...
>
> (Why do they think someone would develop a heavily-graphical
> program, and not care what it looks like?)

This is why I use the motif version of snd.

John
___
Cmdist mailing list
Cmdist@ccrma.stanford.edu
https://cm-mail.stanford.edu/mailman/listinfo/cmdist



[CM] Snd download link still 17.0

2017-01-22 Thread John Rigg
Just noticed the download link for Snd source tarball on the CCRMA
web page still points to 17.0.

John
___
Cmdist mailing list
Cmdist@ccrma.stanford.edu
https://cm-mail.stanford.edu/mailman/listinfo/cmdist



Re: [CM] [snd] Is there a way to add dc offset to a file?

2015-08-24 Thread John Rigg
Thanks for the quick replies. Both methods will be useful here.

John
___
Cmdist mailing list
Cmdist@ccrma.stanford.edu
https://cm-mail.stanford.edu/mailman/listinfo/cmdist



[CM] [snd] Is there a way to add dc offset to a file?

2015-08-24 Thread John Rigg
Snd newb here. I'm editing some impulse files for use in a convolver and
some of them have unwanted LF superimposed on them. As a result the
part of the impulse I'm interested in is further away from zero than
I'd like, making it difficult to trim the ends without a discontinuity.
I tried a HPF but it changes the shape of the impulse too much. Is there
a simple way to add a constant dc value to every sample?

Wonderful program BTW.

John
___
Cmdist mailing list
Cmdist@ccrma.stanford.edu
https://cm-mail.stanford.edu/mailman/listinfo/cmdist