taube | 1 Dec 2008 17:18
Favicon

cm3 builds on linux

The latest CM3 tarball now compiles and links on linux using the very latest  sndlib.tar.gz. many thanks to
bill an his malloc debugging wizardry! 

http://camil.music.uiuc.edu/Software/grace/downloads/cm3-081201_0952.tgz

note the time tag on the cm tarball, this is there mainly to help keep nando's blood pressure down :)

also added some fixes to protect agains segfaults, but everthing is still pretty experimental! i tested
all the midi port, file and sndlib examples on osx and they work (ect/examples.scm etc/examples.sal) 

i cant test on linux because I cant start the app remotely on ccrma because of some stupid x display issue.

i will need someone's help figureing out how to handle all the alsa jack etc lib linking for cm

if you start cm on linix id like to know if the (ports) returns anything (ie if you see midi inputs and outputs...)

here is how I build at ccrma:

wget ftp://ccrma-ftp.stanford.edu/pub/Lisp/sndlib.tar.gz
tar -zxf sndlib.tar.gz
cd sndlib
./configure CC=g++
make
cd ..

wget http://camil.music.uiuc.edu/Software/grace/downloads/cm3-081201_0952.tgz
tar -zxf cm3-081201_0952.tgz
cd cm3
premake --verbose --target gnu --juce ../juce --sndlib ../sndlib
make
(Continue reading)

Bill Schottstaedt | 1 Dec 2008 21:07
Picon

Re: cm3 builds on linux

> i will need someone's help figuring out how to handle all the alsa jack etc lib linking for cm 

when sndlib builds, it creates the script sndlib-config which is supposed to
tell what load/compile flags are needed, but:

/home/bil/test/sndlib/ sndlib-config --libs
-L/usr/lib -lm -lm

which is incomplete -- this particular build will also require -lgsl -lgslcblas.
Good intentions?  (If I remember right, the gsl stuff came after the sndlib-config
work, and I never noticed it was out-of-date).

> if you start cm on linix id like to know if the (ports) returns anything 

cm> (ports)
(("midi.port"))
taube | 2 Dec 2008 00:25
Favicon

Re: cm3 builds on linux

>which is incomplete -- this particular build will also require -lgsl -lgslcblas.
>Good intentions?  (If I remember right, the gsl stuff came after the sndlib-config work, and I never
noticed it was out-of-date).

thanks for the info. i added those libs by hand for linux, but i dont know hat to do for alsa or jack builds,
maybe i should just add a '--otherlibs xxx xxx xx' option to my premake and people can add what they need on linux.

>> if you start cm on linix id like to know if the (ports) returns anything 
>
>cm> (ports)
>(("midi.port"))

ok there are no devices listed. maybe thats a jack or alsa thing too
errordeveloper | 2 Dec 2008 13:30
Face
Picon
Gravatar

Classic graphical eq

Hello ..

another thing that could be great to build
would be a classic eq widget!
with varieble Q. the filter in the controls pannel is great,
but it doesn't let you amplify ..also sometimes the classic analogue
like interface makes a lot more sense!

has anyone done something like that?
or may be somebody could give me a hint on how to do it ..
especially the gui stuff is looks very difficult to me ;((

cheers,
--

-- 
ilua .d 
Bill Schottstaedt | 2 Dec 2008 15:10
Picon

Re: cm3 builds on linux

> people can add what they need on linux.

I think sndlib-config is fixed now:

  /home/bil/test/sndlib/ ./sndlib-config --libs
  -L/usr/lib -lm -L/usr/local/lib -lgsl -lgslcblas -lm -lm

but I don't know how that fits with premake.  I borrowed this
style of config script from GSL.  In that context, you'd use
it in your autoconf input file something like:

  SNDLIB_LIBS=`$SNDLIB_CONFIG --libs`

where SNDLIB_CONFIG comes from AC_PATH_PROG:

  AC_PATH_PROG(SNDLIB_CONFIG, sndlib-config, no)

which assumes it's in some directory in the current path.
Esben Stien | 5 Dec 2008 02:43
Favicon

Re: Loop Selection

"Kjetil S. Matheussen" <k.s.matheussen@...> writes:

> here's a working function:

Thank you. Works nice. A little noise when recreating the selection,
but doesn't bother me now;).

--

-- 
Esben Stien is b0ef <at> e     s      a             
         http://www. s     t    n m
          irc://irc.  b  -  i  .   e/%23contact
           sip:b0ef <at>    e     e 
           jid:b0ef <at>     n     n
Esben Stien | 5 Dec 2008 02:44
Favicon

Re: Play (snd-ls RT)

"Kjetil S. Matheussen" <k.s.matheussen@...> writes:

> c-play
> c-stop
> c-pause
> c-continue
> c-play-selection

Thank you. Zipper noise free;). 

--

-- 
Esben Stien is b0ef <at> e     s      a             
         http://www. s     t    n m
          irc://irc.  b  -  i  .   e/%23contact
           sip:b0ef <at>    e     e 
           jid:b0ef <at>     n     n
Esben Stien | 5 Dec 2008 02:48
Favicon

Default Save File Format (Snd-rt)

If I open a file in Snd, using open-sound, then I make-selection and
then I save-selection, the file output is a different format. 

input: RIFF (little-endian) data, WAVE audio, stereo 96000 Hz
output: Sun/NeXT audio data: stereo, 96000 Hz

I guess these are just settings, but is there a way to always save in
the same format as the file itself?.

--

-- 
Esben Stien is b0ef <at> e     s      a             
         http://www. s     t    n m
          irc://irc.  b  -  i  .   e/%23contact
           sip:b0ef <at>    e     e 
           jid:b0ef <at>     n     n
Kjetil S. Matheussen | 5 Dec 2008 16:34
Picon

Re: Default Save File Format (Snd-rt)


On Fri, 5 Dec 2008, Esben Stien wrote:

> If I open a file in Snd, using open-sound, then I make-selection and
> then I save-selection, the file output is a different format.
>
> input: RIFF (little-endian) data, WAVE audio, stereo 96000 Hz
> output: Sun/NeXT audio data: stereo, 96000 Hz
>

That is strange. snd_conffile.scm should set default format
to mus-riff/2ch/float, at least for new files:

(c-define c-default-output-header-type mus-riff)
(set! (default-output-header-type) c-default-output-header-type)

(c-define c-default-output-chans 2)
(set! (default-output-chans) c-default-output-chans)

(c-define c-default-output-data-format mus-lfloat)
(set! (default-output-data-format) c-default-output-data-format)

> I guess these are just settings, but is there a way to always save in
> the same format as the file itself?.
>

I actually thought it did...?
Esben Stien | 5 Dec 2008 21:31
Favicon

Re: Default Save File Format (Snd-rt)

"Kjetil S. Matheussen" <k.s.matheussen@...> writes:

> That is strange. snd_conffile.scm should set default format to
> mus-riff/2ch/float, at least for new files:

Right, if I do: 

save-sound-as

..it will write: 

RIFF (little-endian) data, WAVE audio, stereo 96000 Hz

, but if I do 

save-selection

, it will write: 

Sun/NeXT audio data: stereo, 96000 Hz

The file I've loaded with open-sound, is of the same type as
save-sound-as

> (c-define c-default-output-header-type mus-riff)
> (set! (default-output-header-type) c-default-output-header-type)
>
> (c-define c-default-output-chans 2)
> (set! (default-output-chans) c-default-output-chans)
>
(Continue reading)


Gmane