[Csnd] [OT]- Sound in Python
Date | 2014-03-23 15:51 |
From | John ffitch |
Subject | [Csnd] [OT]- Sound in Python |
Not really Csound but I am investigating an algorithmic composition system that is written in python for windows, and I would like to run it on Linux and OSX as well (even Android?). I am currently stuck on a simple issue -- it includes a module called winsound which seems to be a Windows-only thing. It is only use in one place, to play a wav file generated by csound winsound.PlaySound(filename, winsound.SND_FILENAME|winsound.SND_ASYNC) Is there a generic replacement? ==John ffitch Send bugs reports to the Sourceforge bug trackers csound6: https://sourceforge.net/p/csound/tickets/ csound5: https://sourceforge.net/p/csound/bugs/ Discussions of bugs and features can be posted here To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound" |
Date | 2014-03-23 17:22 |
From | Rory Walsh |
Subject | Re: [Csnd] [OT]- Sound in Python |
I'm no Python expert, but perhaps you could use Victor's SndObj library, or why not just use Csound's Python interface? On 23 March 2014 15:51, John ffitch <jpff@codemist.co.uk> wrote:
|
Date | 2014-03-23 17:22 |
From | David Worrall |
Subject | Re: [Csnd] [OT]- Sound in Python |
Hi John, Many people swear by PyAudio, which uses Portaudio: however…. if all you want to do is play an existing file, why not use the subprocess module in the stdlib to do it: eg
cheers, D On 23.03.2014, at 16:51, John ffitch <jpff@codemist.co.uk> wrote: Not really Csound but I am investigating an algorithmic composition ______________________________________ Prof. Dr. David Worrall Emerging Audio Research (EAR) Audio Department International Audio Laboratories Erlangen Fraunhofer-Institut für Integrierte Schaltungen IIS Am Wolfsmantel 33 91058 Erlangen Telefon +49 (0) 91 31 / 7 76-62 44 Fax +49 (0) 91 31 / 7 76-20 99 E-Mail: david.worrall@iis.fraunhofer.de Internet: www.iis.fraunhofer.de --- Adjunct Senior Research Fellow School of Music, Australian National University |