[sndtools] rt_lpc

menno nabob_cd at yahoo.com
Tue Jul 20 08:22:25 EDT 2010


hello Ananya,

i joined the mailinglist now, that's better :)

thanks for your help, adding "#include <stdio.h>" at the top of the RtAudio.cpp did the trick. It works now on Ubuntu.
I see my input signal and the prediction signal and the rest.
Is it normal that i hear very little or distorted output? Or is it meant as a visuliaze app only? How can i set my soundcard (i have 2)?

Anyway, i have an error for you :)
it crashed after tweaking the app with the keyboard:


*** glibc detected *** ./rt_lpc: corrupted double-linked list: 0x0000000001e778f0 ***
======= Backtrace: =========
/lib/libc.so.6(+0x775b6)[0x7fa3f4d6d5b6]
/lib/libc.so.6(+0x7aa25)[0x7fa3f4d70a25]
/lib/libc.so.6(cfree+0x73)[0x7fa3f4d73e53]
./rt_lpc[0x408ee3]
/usr/lib/libglut.so.3(+0x20e0d)[0x7fa3f61b7e0d]
/usr/lib/libglut.so.3(fgEnumWindows+0x39)[0x7fa3f61bb9f9]
/usr/lib/libglut.so.3(glutMainLoopEvent+0x152)[0x7fa3f61b82d2]
/usr/lib/libglut.so.3(glutMainLoop+0xb7)[0x7fa3f61b8c67]
./rt_lpc[0x406e69]
/lib/libc.so.6(__libc_start_main+0xfd)[0x7fa3f4d14c4d]
./rt_lpc[0x4041c9]
======= Memory map: ========
00400000-00416000 r-xp 00000000 08:06 524705                             /home/menno/Downloads/rt_lpc-1.0/src/rt_lpc
00615000-00616000 r--p 00015000 08:06 524705                             /home/menno/Downloads/rt_lpc-1.0/src/rt_lpc
00616000-00617000 rw-p 00016000 08:06 524705                             /home/menno/Downloads/rt_lpc-1.0/src/rt_lpc
00617000-00626000 rw-p 00000000 00:00 0 
01d4a000-01ecd000 rw-p 00000000 00:00 0                                  [heap]
415c0000-4161f000 rw-p 00000000 00:05 1039                               /dev/zero
7fa3e8000000-7fa3e8021000 rw-p 00000000 00:00 0 
7fa3e8021000-7fa3ec000000 ---p 00000000 00:00 0 
7fa3ef1ab000-7fa3ef1ac000 ---p 00000000 00:00 0 
7fa3ef1ac000-7fa3ef9ac000 rw-p 00000000 00:00 0 
7fa3ef9ac000-7fa3ef9b2000 r-xp 00000000 08:05 415294                     /usr/lib/libogg.so.0.6.0
7fa3ef9b2000-7fa3efbb1000 ---p 00006000 08:05 415294                     /usr/lib/libogg.so.0.6.0
7fa3efbb1000-7fa3efbb2000 r--p 00005000 08:05 415294                     /usr/lib/libogg.so.0.6.0
7fa3efbb2000-7fa3efbb3000 rw-p 00006000 08:05 415294                     /usr/lib/libogg.so.0.6.0
7fa3efbb3000-7fa3efbdf000 r-xp 00000000 08:05 415323                     /usr/lib/libvorbis.so.0.4.3
7fa3efbdf000-7fa3efdde000 ---p 0002c000 08:05 415323                     /usr/lib/libvorbis.so.0.4.3
7fa3efdde000-7fa3efddf000 r--p 0002b000 08:05 415323                     /usr/lib/libvorbis.so.0.4.3
7fa3efddf000-7fa3efde0000 rw-p 0002c000 08:05 415323                     /usr/lib/libvorbis.so.0.4.3
7fa3efde0000-7fa3effa3000 r-xp 00000000 08:05 416796                     /usr/lib/libvorbisenc.so.2.0.6
7fa3effa3000-7fa3f01a3000 ---p 001c3000 08:05 416796                     /usr/lib/libvorbisenc.so.2.0.6
7fa3f01a3000-7fa3f01ba000 r--p 001c3000 08:05 416796                     /usr/lib/libvorbisenc.so.2.0.6
7fa3f01ba000-7fa3f01bb000 rw-p 001da000 08:05 416796                     /usr/lib/libvorbisenc.so.2.0.6
7fa3f01bb000-7fa3f0204000 r-xp 00000000 08:05 416782                     /usr/lib/libFLAC.so.8.2.0
7fa3f0204000-7fa3f0404000 ---p 00049000 08:05 416782                     /usr/lib/libFLAC.so.8.2.0
7fa3f0404000-7fa3f0405000 r--p 00049000 08:05 416782                     /usr/lib/libFLAC.so.8.2.0
7fa3f0405000-7fa3f0406000 rw-p 0004a000 08:05 416782                     /usr/lib/libFLAC.so.8.2.0
7fa3f0406000-7fa3f041d000 r-xp 00000000 08:05 140172                     /lib/libnsl-2.11.1.so
7fa3f041d000-7fa3f061c000 ---p 00017000 08:05 140172                     /lib/libnsl-2.11.1.so
7fa3f061c000-7fa3f061d000 r--p 00016000 08:05 140172                     /lib/libnsl-2.11.1.so
7fa3f061d000-7fa3f061e000 rw-p 00017000 08:05 140172                     /lib/libnsl-2.11.1.so
7fa3f061e000-7fa3f0620000 rw-p 00000000 00:00 0 
7fa3f0620000-7fa3f065d000 r-xp 00000000 08:05 129890                     /lib/libdbus-1.so.3.4.0
7fa3f065d000-7fa3f085d000 ---p 0003d000 08:05 129890                     /lib/libdbus-1.so.3.4.0
7fa3f085d000-7fa3f085e000 r--p 0003d000 08:05 129890                     /lib/libdbus-1.so.3.4.0
7fa3f085e000-7fa3f085f000 rw-p 0003e000 08:05 129890                     /lib/libdbus-1.so.3.4.0
7fa3f085f000-7fa3f08bd000 r-xp 00000000 08:05 416811                     /usr/lib/libsndfile.so.1.0.21
7fa3f08bd000-7fa3f0abd000 ---p 0005e000 08:05 416811                     /usr/lib/libsndfile.so.1.0.21
7fa3f0abd000-7fa3f0abf000 r--p 0005e000 08:05 416811                     /usr/lib/libsndfile.so.1.0.21
7fa3f0abf000-7fa3f0ac0000 rw-p 00060000 08:05 416811                     /usr/lib/libsndfile.so.1.0.21
7fa3f0ac0000-7fa3f0ac4000 rw-p 00000000 00:00 0 
7fa3f0ac4000-7fa3f0acd000 r-xp 00000000 08:05 134749                     /lib/libwrap.so.0.7.6
7fa3f0acd000-7fa3f0ccc000 ---p 00009000 08:05 134749                     /lib/libwrap.so.0.7.6
7fa3f0ccc000-7fa3f0ccd000 r--p 00008000 08:05 134749                     /lib/libwrap.so.0.7.6
7fa3f0ccd000-7fa3f0cce000 rw-p 00009000 08:05 134749                     /lib/libwrap.so.0.7.6
7fa3f0cce000-7fa3f0ccf000 rw-p 00000000 00:00 0 
7fa3f0ccf000-7fa3f0d1a000 r-xp 00000000 08:05 416859                     /usr/lib/libpulsecommon-0.9.21.so
7fa3f0d1a000-7fa3f0f19000 ---p 0004b000 08:05 416859                     /usr/lib/libpulsecommon-0.9.21.so
7fa3f0f19000-7fa3f0f1a000 r--p 0004a000 08:05 416859                     /usr/lib/libpulsecommon-0.9.21.so
7fa3f0f1a000-7fa3f0f1b000 rw-p 0004b000 08:05 416859                     /usr/lib/libpulsecommon-0.9.21.so
7fa3f0f1b000-7fa3f0f20000 r-xp 00000000 08:05 416842                     /usr/lib/libXtst.so.6.1.0
7fa3f0f20000-7fa3f1120000 ---p 00005000 08:05 416842                     /usr/lib/libXtst.so.6.1.0
7fa3f1120000-7fa3f1121000 r--p 00005000 08:05 416842                     /usr/lib/libXtst.so.6.1.0
7fa3f1121000-7fa3f1122000 rw-p 00006000 08:05 416842                     /usr/lib/libXtst.so.6.1.0
7fa3f1122000-7fa3f1162000 r-xp 00000000 08:05 416857                     /usr/lib/libpulse.so.0.12.2
7fa3f1162000-7fa3f1362000 ---p 00040000 08:05 416857                     /usr/lib/libpulse.so.0.12.2
7fa3f1362000-7fa3f1363000 r--p 00040000 08:05 416857                     /usr/lib/libpulse.so.0.12.2
7fa3f1363000-7fa3f1364000 rw-p 00041000 08:05 416857                     /usr/lib/libpulse.so.0.12.2
7fa3f157a000-7fa3f157b000 rw-s 81000000 00:05 4269                       /dev/snd/pcmC1D0c
7fa3f157b000-7fa3f157c000 r--s 80000000 00:05 4269                       /dev/snd/pcmC1D0c
7fa3f157c000-7fa3f157d000 rw-s 81000000 00:05 4268                       /dev/snd/pcmC1D0p
7fa3f157d000-7fa3f157e000 r--s 80000000 00:05 4268                       /dev/snd/pcmC1D0p
7fa3f157e000-7fa3f1585000 r--s 00000000 08:05 425924                     /usr/lib/gconv/gconv-modules.cache
7fa3f1585000-7fa3f1785000 rw-s 66acd000 00:05 4793                       /dev/nvidia0Aborted
menno at ubuntu:~/Downloads/rt_lpc-1.0/src$ 



Regarding implementation in Csound i know Csound is LGPL, while rt_lpc is GPL.
"Csound is now free software released under the GNU Lesser General Public License." 
 That might be a problem. So maybe it is to early to ask other people about intergration of parts of the program into newly written opcodes for Csound. 
First i want to make sure everything works as i think it should, that means with sounds i hear from the speakers..then we must look into the legal things i think.  Do you agree?

bye and thanks,
Menno


--- On Tue, 7/20/10, Ananya Misra <amisra at CS.Princeton.EDU> wrote:

> From: Ananya Misra <amisra at CS.Princeton.EDU>
> Subject: Re: rt_lpc
> To: "menno" <nabob_cd at yahoo.com>
> Cc: "ge" <ge at ccrma.stanford.edu>, "Perry R Cook" <prc at CS.Princeton.EDU>
> Date: Tuesday, July 20, 2010, 12:12 AM
> Hi Menno,
> 
> Thanks for your email!
> 
> 1: Does it work if you add "#include <stdio.h>" at
> the top of the
> RtAudio.cpp (or RtAudio.h)?
> 
> 2: I don't have any objections if the licenses are
> compatible, but I'm
> cc-ing the other creators of rt_lpc for their input.
> 
> Thanks!
> 
> -Ananya
> 
> On Fri, Jul 16, 2010 at 2:42 PM, menno <nabob_cd at yahoo.com>
> wrote:
> > Hallo Ananya Misra,
> >
> > i have 2 questions that you might be able to help me
> with.
> > First, i try to make rt_lpc for Ubuntu but get this
> error. What can be missing?
> >
> >
> > menno at ubuntu:~/Downloads/rt_lpc-1.0/src$ make
> linux-alsa
> > make -f makefile.alsa
> > make[1]: Entering directory
> `/home/menno/Downloads/rt_lpc-1.0/src'
> > gcc -D__LINUX_ALSA__  -O3 -c RtAudio.cpp
> > RtAudio.cpp: In member function ‘void
> RtApi::openStream(int, int, int, int, RtAudioFormat, int,
> int*, int)’:
> > RtAudio.cpp:234: error: ‘sprintf’ was not declared
> in this scope
> > RtAudio.cpp:239: error: ‘sprintf’ was not declared
> in this scope
> > RtAudio.cpp:244: error: ‘sprintf’ was not declared
> in this scope
> > RtAudio.cpp:250: error: ‘sprintf’ was not declared
> in this scope
> > RtAudio.cpp:257: error: ‘sprintf’ was not declared
> in this scope
> > RtAudio.cpp:339: error: ‘sprintf’ was not declared
> in this scope
> > RtAudio.cpp:341: error: ‘sprintf’ was not declared
> in this scope
> > RtAudio.cpp: In member function ‘RtAudioDeviceInfo
> RtApi::getDeviceInfo(int)’:
> > RtAudio.cpp:355: error: ‘sprintf’ was not declared
> in this scope
> > make[1]: *** [RtAudio.o] Error 1
> > make[1]: Leaving directory
> `/home/menno/Downloads/rt_lpc-1.0/src'
> > make: [linux-alsa] Error 2 (ignored)
> > menno at ubuntu:~/Downloads/rt_lpc-1.0/src$
> >
> >
> > Question 2: i like to work with Csound but i think the
> LPC opcodes in Csound are not very stable and tend to blow
> up. Also what i like about rt_lpc is the streaming sound.
> > I am not a developer but maybe someone in csound could
> make use of rt_lpc and ,make it suitable for Csound. If you
> agree can i propose thsat to the Csound people?
> >
> > thanks
> > Menno Knevel
> >
> >
> >
> >
> >
>



      



More information about the sndtools mailing list