[CM] analog-filter.scm

2015-02-28 Thread James Hearon


> Date: Sat, 28 Feb 2015 11:51:43 -0800
> From: "Bill Schottstaedt" 
> Subject: Re: [CM] analog-filter.scm
> To: James Hearon ,  "cmdist@ccrma.Stanford.EDU"
>   
> Message-ID: <20150228195009.m14...@ccrma.stanford.edu>
> Content-Type: text/plain; charset=iso-8859-1
> 
> They're in mus-config.h.  SNDLIB_CONFIG_path is very obsolete --
> it has no effect on anything.  I tried fc21 with all those settings
> and it worked fine.  I don't know what the problem is.

Hi,
Thanks Bill.  I tried this and it seems working now.

./configure  --with-s7 --with-gsl --with-motif --with-alsa 
CFLAGS=HAVE_COMPLEX_NUMBERS CFLAGS=HAVE_COMPLEX_TRIG 
CFLAGS="-I/usr/include/linux/param.h" SNDLIB_CONFIG_path=/opt/sndlib

--
(load "/opt/snd-15.4/analog-filter.scm")

(define (filter-sweep flt)
  (let ((phase 0.0)
(freq 0.0)
(incr (/ (* 2 pi) 144000.0))
(samps (seconds->samples 0.5)))
(do ((i 0 (+ i 1)))
((= i samps))
  (let ((sval (* .8 (sin phase
(set! phase (+ phase freq)) 
(set! freq (+ freq incr))
(outa i (flt sval)) 
(outb i (flt sval))  

(with-sound (:output "test.wav" :srate 48000 :channels 2
 :header-type  mus-riff)
  ;(filter-sweep (make-butterworth-lowpass 8 .1))
  (filter-sweep (make-bessel-lowpass 8 .2))
  ;(filter-sweep (make-chebyshev-lowpass 8 .1))
  ;(filter-sweep (make-inverse-chebyshev-lowpass 8 .1))
  ;(filter-sweep (make-elliptic-lowpass 8 .01))
  )




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


Re: [CM] analog-filter.scm

2015-02-28 Thread Bill Schottstaedt
They're in mus-config.h.  SNDLIB_CONFIG_path is very obsolete --
it has no effect on anything.  I tried fc21 with all those settings
and it worked fine.  I don't know what the problem is.

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



[CM] analog-filter.scm

2015-02-28 Thread James Hearon

> Message: 3
> Date: Fri, 27 Feb 2015 10:49:33 -0800
> From: "Bill Schottstaedt" 
> Subject: Re: [CM] analog-filter.scm
> To: James Hearon ,  "cmdist@ccrma.Stanford.EDU"
>   
> Message-ID: <20150227184704.m76...@ccrma.stanford.edu>
> Content-Type: text/plain; charset=iso-8859-1
> 
> gsl-roots needs HAVE_COMPLEX_NUMBERS and HAVE_COMPLEX_TRIG
> in s7, which means it can't work in Windows, c++, or FreeBSD.
> If you aren't in that group, I need to know how you built Snd,
> and what those flags are.  gsl-roots is used in the Bessel filter
> section, but is not related to the gsl Bessel function stuff.

Hi,
Thanks for the info.  I've built Snd-15.4 on f21, and not seeing anything about 
HAVE_COMPLEX_NUMBERS or HAVE_COMPLEX_TRIG from the build output.  Is that 
something I need to add when running make or gcc?


[jhearon@localhost snd-15.4]$ ./configure --with-s7 --with-gsl --with-motif 
--with-alsa SNDLIB_CONFIG_path=/opt/sndlib
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for a BSD-compatible install... /usr/bin/install -c
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking whether byte ordering is bigendian... no
checking size of void *... 8
checking for pkg-config... /usr/bin/pkg-config
checking for fftw3... yes
checking for gsl... yes
checking for X... libraries , headers 
checking for gethostbyname... yes
checking for connect... yes
checking for remove... yes
checking for shmat... yes
checking for IceConnectionNumber in -lICE... yes
checking for oggdec... /usr/bin/oggdec
checking for oggenc... /usr/bin/oggenc
checking for mpg123... no
checking for mpg321... no
checking for speexdec... no
checking for speexenc... no
checking for flac... no
checking for timidity... no
checking for ttaenc... no
checking for wavpack... /usr/bin/wavpack
checking for wvunpack... /usr/bin/wvunpack
checking for audio system... ALSA
configure: creating ./config.status
config.status: creating makefile
config.status: creating mus-config.h
config.status: mus-config.h is unchanged

  Options selected
  -
  Snd version ...: 15.4
  CFLAGS : -O2 -I. -g -O2
  LDFLAGS ...: -Wl,-export-dynamic
  LIBS...:  -lm -ldl
  prefix.: /usr/local
  extension language.: s7
  audio system...: ALSA
  graphics toolkit...: Motif
  optional libraries.: fftw3 gsl
  random features:
  environs...: x86_64-unknown-linux-gnu gcc

[jhearon@localhost snd-15.4]$ make
gcc -c -DSCRIPTS_DIR=\"/usr/local/share/snd\"   -O2 -I. -g -O2  s7.c
gcc -c -DSCRIPTS_DIR=\"/usr/local/share/snd\"   -O2 -I. -g -O2  headers.c
gcc -c -DSCRIPTS_DIR=\"/usr/local/share/snd\"   -O2 -I. -g -O2  audio.c
gcc -c -DSCRIPTS_DIR=\"/usr/local/share/snd\"   -O2 -I. -g -O2  io.c
gcc -c -DSCRIPTS_DIR=\"/usr/local/share/snd\"   -O2 -I. -g -O2  sound.c
gcc -c -DSCRIPTS_DIR=\"/usr/local/share/snd\"   -O2 -I. -g -O2  clm.c
gcc -c -DSCRIPTS_DIR=\"/usr/local/share/snd\"   -O2 -I. -g -O2  xen.c
gcc -c -DSCRIPTS_DIR=\"/usr/local/share/snd\"   -O2 -I. -g -O2  vct.c
gcc -c -DSCRIPTS_DIR=\"/usr/local/share/snd\"   -O2 -I. -g -O2  sndlib2xen.c
gcc -c -DSCRIPTS_DIR=\"/usr/local/share/snd\"   -O2 -I. -g -O2  clm2xen.c
gcc -c -DSCRIPTS_DIR=\"/usr/local/share/snd\"   -O2 -I. -g -O2  snd-io.c
gcc -c -DSCRIPTS_DIR=\"/usr/local/share/snd\"   -O2 -I. -g -O2  snd-utils.c
gcc -c -DSCRIPTS_DIR=\"/usr/local/share/snd\"   -O2 -I. -g -O2  
snd-listener.c
gcc -c -DSCRIPTS_DIR=\"/usr/local/share/snd\"   -O2 -I. -g -O2  
snd-completion.c
gcc -c -DSCRIPTS_DIR=\"/usr/local/share/snd\"   -O2 -I. -g -O2  snd-menu.c
gcc -c -DSCRIPTS_DIR=\"/usr/local/share/snd\"   -O2 -I. -g -O2  snd-axis.c
gcc -c -DSCRIPTS_DIR=\"/usr/local/share/snd\"   -O2 -I. -g -O2  snd-data.c
gcc -c -DSCRIPTS_DIR=\"/usr/local/share/snd\"   -O2 -I. -g -O2  snd-fft.c
gcc -c -DSCRIPTS_DIR=\"/usr/local/share/snd\"   -O2 -I. -g -O2  snd-marks.c
gcc -c -DSCRIPTS_DIR=\"/usr/local/share/snd\"   -O2 -I. -g -O2  snd-file.c
gcc -c -DSCRIPTS_DIR=\"/usr/local/share/snd\"   -O