Csound Csound-dev Csound-tekno Search About

Re: [Cs-dev] Compress/Distort Opcodes

Date2006-04-22 21:59
FromIstvan Varga
SubjectRe: [Cs-dev] Compress/Distort Opcodes
AttachmentsNone  

Date2006-04-22 22:11
FromIstvan Varga
SubjectRe: [Cs-dev] Compress/Distort Opcodes
AttachmentsNone  

Date2006-04-22 22:16
FromIstvan Varga
SubjectRe: [Cs-dev] Compress/Distort Opcodes
AttachmentsNone  compress.c.gz  

Date2006-04-22 22:36
FromIstvan Varga
SubjectRe: [Cs-dev] Compress/Distort Opcodes
AttachmentsNone  

Date2006-04-22 22:38
FromVictor Lazzarini
SubjectRe: [Cs-dev] Compress/Distort Opcodes
It looks like the csound you are using is incompatible
with the dylib you created. More specifically, the
csound library is. Because you have more than one
version of csound in your machine, these might
have got crossed. If the csound program is dynamically
linked to a csound library, that is even more likely
to be the problem.

Victor

>
> Regarding the Compress and Distort opcodes,
>
> Since I have been unable to perform a complete checkout
> from CVS I  looked at the SConstruct file (via
> SourceForge) and noticed that this  was pretty much the
> only line that was added from the version I already  had:
>
> makePlugin(pluginEnvironment, 'compress',
> ['Opcodes/compress.c'])
>
> I added this to my other SConstruct from my previously
> built Csound5.  Note, I prefer to run Csound5 from the
> build directory rather than  installing since I have older
> versions of Csound installed)
>
> I re-ran SConstruct and everything went fine.
>
> I note that it used the following compilation and linking
> flags  (separated by a newline for legibility):
>
> gcc -Wall -O3 -mcpu=7450 -mtune=7450 -fomit-frame-pointer
> -ffast-math  -DMACOSX -DPIPES -faltivec -fPIC -DBETA
> -DHAVE_FCNTL_H -DHAVE_UNISTD_H  -DHAVE_STDINT_H
> -DHAVE_SYS_TIME_H -DHAVE_SYS_TYPES_H -DHAVE_TERMIOS_H
> -DHAVE_DIRENT_H -I. -IH -I/usr/include/malloc
> -I/opt/local/include/boost-1_32 -I/usr/include/python2.3
> -I/usr/local/include -c -o Opcodes/compress.os
> Opcodes/compress.c
>
> /Developer/Tools/Rez -i APPL -o cswish
> frontends/tclcsound/cswish.r
>
> gcc -framework CoreMidi -framework CoreFoundation
> -framework CoreAudio  -dynamiclib -o libcompress.dylib
> Opcodes/compress.os -L. -L.  -L/usr/local/lib -L. -L.
> -lsndfile
>
> /Developer/Tools/Rez -i APPL -o csound cs5.r
>
>
> *** Yet, for some reason when I run Csound, I get
>
> WARNING: '/Users/daveakbari/CVS/csound5/libcompress.dylib'
> is not a  Csound plugin library
>
> In context:
>
> Localisation of messages is disabled, using default
> language. time resolution is 1000.000 ns
> WARNING: '/Users/daveakbari/CVS/csound5/libcompress.dylib'
> is not a  Csound plugin library
> PortMIDI real time MIDI plugin for Csound
> CoreAudio real-time audio module for Csound
> by Victor Lazzarini
> JACK real-time audio module for Csound by Istvan Varga
> PortAudio real-time audio module for Csound
> [... etc continues as expected]
>
> 1) Why does the API not recognize this newly compiled
> libcompress.dylib  ?
>
> 2) Why is the fact that 'it is not a Csound plugin
> library' reported  before any of the other initializations
> ? Typically when I see this  error it doesn't show up
> until after the audio drivers at least -- like  so:
>
> [dhcp31-9-141:~/CVS/csound5] daveakba% ./csound -z1
> Localisation of messages is disabled, using default
> language. time resolution is 1000.000 ns
> PortMIDI real time MIDI plugin for Csound
> CoreAudio real-time audio module for Csound
> by Victor Lazzarini
> JACK real-time audio module for Csound by Istvan Varga
> PortAudio real-time audio module for Csound
> WARNING: '/Users/daveakbari/CVS/csound5/tclcsound.dylib'
> is not a  Csound plugin library
> 0dBFS level = 32768.0
> Csound version 5.01.1 beta (float samples) Apr 20 2006
> libsndfile-1.0.13
> rtaudio: PortAudio module enabled ... using callback
> interface rtmidi: PortMIDI module enabled
> **** OSC: liblo started ****
> WARNING: '/Users/daveakbari/CVS/csound5/lib_csnd.dylib' is
> not a Csound  plugin library
> 1234 opcodes
> [...]
>
>
> Any help appreciated!
>
>
>
> -David
>
>
>
> -------------------------------------------------------
> Using Tomcat but need to do more? Need to support web
> services, security? Get stuff done quickly with
> pre-integrated technology to make your job easier Download
> IBM WebSphere Application Server v.1.0.1 based on Apache
> Geronimo
>
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel


-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2006-04-22 23:28
FromDavid Akbari
SubjectRe: [Cs-dev] Compress/Distort Opcodes
Thanks a lot, Istvan!

They both now show up in the -z list! I'll have some fun with the 
sounds in a bit

What exactly is different in this version of compress.c ?

I tried getting the following files from the SourceForge viewcvs.py in 
the hopes that it would increment the API to version 5.02.0 beta but 
that alone did not work - only the new compress.c did. In any event 
it's good to also have the new sensekey ^_^

Engine/namedins.c
OOps/bus.c
interfaces/cs_glue.cpp
interfaces/cs_glue.hpp
Engine/entry1.c
Engine/linevent.c
H/aops.h
H/entry1.h
OOps/bus.c
opcodes.dir
Opcodes/pitch.c
Opcodes/pitch.h
Opcodes/spectra.c
Top/csound.c


Thanks again


-David


On Apr 22, 2006, at 5:16 PM, Istvan Varga wrote:

> On Saturday 22 April 2006 22:59, Istvan Varga wrote:
>
>> It is possible that the opcodes were built from older sources
>> where compress.c did not have the plugin interface correctly
>> set up; note that anything downloaded from pserver CVS access
>> is probably very outdated.
>
> After having a look at the files on csounds.com, it is indeed
> apparent that you have an old version of compress.c. Here is
> the current one, it should work better:
> 



-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net