Csound Csound-dev Csound-tekno Search About

Re: [Cs-dev] libsndfile wrapper (was Re: Status Update Request)

Date2007-01-10 23:53
From"Michael Gogins"
SubjectRe: [Cs-dev] libsndfile wrapper (was Re: Status Update Request)
In addition to csnd.Soundfile, you can obtain the ctypes module and then you 
can call ANY C or C++ library with exported functions from Python, such as 
libsndfile. I use this at work.

With Python 2.5, ctypes is a standard part of the Python distribution, so 
when we move Csound to Python 2.5, this kind of thing will become 
increasingly easy.

Regards,
Mike

----- Original Message ----- 
From: "Michael Gogins" 
To: ; "Developer discussions" 

Sent: Wednesday, January 10, 2007 5:15 PM
Subject: Re: [Cs-dev] libsndfile wrapper (was Re: Status Update Request)


> There has been a Python wrapper for libsndfile in the Csound 5 
> distribution for some time.
>
> It is csnd.Soundfile.
>
> Regards,
> Mike
>
> -----Original Message-----
>>From: Victor Lazzarini 
>>Sent: Jan 10, 2007 4:16 PM
>>To: Developer discussions 
>>Subject: [Cs-dev] libsndfile wrapper (was Re:  Status Update Request)
>>
>>By the way, Erik, would you be able to provide
>>Python wrapper for libsndfile? It would be a
>>very nice addition. If it already exists could you
>>point me to it?
>>
>>I'm not sure whether I already said it here, but
>>libsndfile is such a nice piece of software, and
>>really useful. It's
>>also very didactical, I use it a lot in my courses.
>>
>>Victor
>>
>>>
>>> Michael Gogins wrote:
>>>
>>> > -- Change the CSOUND structure to a proper C++ class.
>>> > This would make it much easier both to extend, and to
>>> > maintain, Csound and the Csound API. It would not make
>>> Csound slower.
>>>
>>> Creating bindings for other high level languages is
>>> usually far easier when wrapping C than when wrapping C++.
>>>
>>> MY personal favourite among the high level languages is
>>> Ocaml. I am in the prcoess of creating a binding for
>>> libsndfile and its really not very difficult. I have also
>>> looked into wrapping a C++ library and found that to be a
>>> complete nightmare, so much so that I probably won't
>>> pursure it any futher.
>>>
>>> Erik
>>> --
>>> +---------------------------------------------------------
>>> --+
>>>   Erik de Castro Lopo
>>> +---------------------------------------------------------
>>> --+ "The question of whether a computer can think is no
>>> more interesting  than the question of whether a submarine
>>> can swim." -- edsger dijkstra
>>>
>>> ----------------------------------------------------------
>>> --------------- Take Surveys. Earn Cash. Influence the
>>> Future of IT Join SourceForge.net's Techsay panel and
>>> you'll get the chance to share your opinions on IT &
>>> business topics through brief surveys - and earn cash
>>>
>>http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
>>> _______________________________________________
>>> Csound-devel mailing list
>>> Csound-devel@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>
>>-------------------------------------------------------------------------
>>Take Surveys. Earn Cash. Influence the Future of IT
>>Join SourceForge.net's Techsay panel and you'll get the chance to share 
>>your
>>opinions on IT & business topics through brief surveys - and earn cash
>>http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
>>_______________________________________________
>>Csound-devel mailing list
>>Csound-devel@lists.sourceforge.net
>>https://lists.sourceforge.net/lists/listinfo/csound-devel
>
>
>
>
> -------------------------------------------------------------------------
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share 
> your
> opinions on IT & business topics through brief surveys - and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel 


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net