[Csnd] Csound and Python noob on Mac
Date | 2011-11-01 15:09 |
From | gary hiebner |
Subject | [Csnd] Csound and Python noob on Mac |
I am wanting to start learning python so that I can incorporate it with CSound. I am currently running a Mac with 10.6.8 and CSound 5.14. I see my Mac has Python 2.6.1 installed. Should I upgrade my python to the latest 3.2.2? Will it be more of a benefit for me to start learning python 3 as opposed to python 2.6?
Your guys help will be much appreciated in approaching python in the right direction. Thanks.
|
Date | 2011-11-01 15:14 |
From | andreas russo |
Subject | [Csnd] pvstanal not installed? |
I've been trying to use the pvstanal opcode, but without success. the opcode just doesn't seem to be there. whene I type it, it doesn't autocomplete, and even if I type all the parameters myself, it remains in "regular" black colored, non-bold font. when I run Csound it doesn't give me an error or crash. I'm running version 5.14. pvstanal DOES show in the list of installed opcodes in the terminal. I'm running this simple code: turnon 1 gifil ftgen 0, 0, 0, 1, "become.wav", 0, 0, 1 instr 1 anoise gauss 10 ares5 sndwarp .9, 80, 1, 5, 0, 1024, 882, 1, 1, 0 fdest pvsanal ares5, 1024, 1024/4, 1024, 0 fsrc pvsanal anoise, 1024, 1024/4, 1024, 0 fdest1 pvstanal 1,1,1,gifil fsig pvscross fsrc, fdest, 0, 1 ares pvsadsyn fsig, 512, .25 out ares endin am I doing something wrong or do I have some sort of problem? are there any other pvs time-stretching opcodes in Csound? andreas |
Date | 2011-11-01 15:19 |
From | Adam Puckett |
Subject | Re: [Csnd] pvstanal not installed? |
It's an issue with whatever front end you're using. If you can compile your code from the terminal, it's there, just not recognized by your front end. On 11/1/11, andreas russo |
Date | 2011-11-01 15:24 |
From | andreas russo |
Subject | Re: [Csnd] pvstanal not installed? |
so it should be a problem with my CsoundQT 0.6 On Nov 1, 2011, at 11:19, Adam Puckett wrote: > It's an issue with whatever front end you're using. If you can compile > your code from the terminal, it's there, just not recognized by your > front end. > > On 11/1/11, andreas russo |
Date | 2011-11-01 15:24 |
From | Adam Puckett |
Subject | Re: [Csnd] Csound and Python noob on Mac |
Hi Gary, I use Python 3 for Csound orchestra and score generation, but if you want to use the Csound Python binding, you need Python 2. Since I don't use the binding, I use Python 3, which does have benefits for me, such as a more elegant syntax among other things you will learn as you go. Hope this helps. Adam On 11/1/11, gary hiebner |
Date | 2011-11-01 15:29 |
From | "Dr. Richard Boulanger" |
Subject | Re: [Csnd] pvstanal not installed? |
I don't think so. I just tried with my CsoundQt 0.7 and with the latest "float" build of Csound5.14.1 on Mac OSX10.6.8... It doesn't seem to be there. -dB ___________________________________ Richard Boulanger, Ph.D. Professor of Electronic Production and Design Professional Writing and Music Technology Division Berklee College of Music 1140 Boylston Street Boston, MA 02215-3693 617-747-2485 (office) 774-488-9166 (cell) ____________________________________ ____________________________________ ____________________________________ On Nov 1, 2011, at 11:24 AM, andreas russo wrote:
|
Date | 2011-11-01 15:31 |
From | Anthony Palomba |
Subject | Re: [Csnd] Csound and Python noob on Mac |
I have been using python 2.6/2.7 for some time. Works great, on mac and pc. I think there are many packages out there that still do not support python 3. To be honest with you I don't know of any feature or ability in python 3 that is a must have for doing work with csound. Anyone out there that knows of one, please correct me. I think having python 3 just increase the chance of finding some incompatibility. -ap On Tue, Nov 1, 2011 at 10:09 AM, gary hiebner <garycsound@gmail.com> wrote: I am wanting to start learning python so that I can incorporate it with CSound. I am currently running a Mac with 10.6.8 and CSound 5.14. |
Date | 2011-11-01 15:31 |
From | Adam Puckett |
Subject | Re: [Csnd] pvstanal not installed? |
Have you tried using the terminal? On 11/1/11, Dr. Richard Boulanger |
Date | 2011-11-01 15:34 |
From | "Dr. Richard Boulanger" |
Subject | Re: [Csnd] pvstanal not installed? |
the opcode is "listed" when I do csound -z from the terminal. interesting? Andreas? Thoughts? -dB On Nov 1, 2011, at 11:31 AM, Adam Puckett wrote: > Have you tried using the terminal? > > On 11/1/11, Dr. Richard Boulanger |
Date | 2011-11-01 15:39 |
From | Adam Puckett |
Subject | Re: [Csnd] Csound and Python noob on Mac |
Well, my philosophy is that no language feature is a must-have. This is why I love Csound, because it's "incomplete" as a language and stretches my mind. On the other hand, Python is a great language for rapidly generating huge Csound compositions despite its (lack of) speed, but I think it's an implementation detail (or perhaps a thousand or so). On 11/1/11, Anthony Palomba |
Date | 2011-11-01 15:40 |
From | Victor Lazzarini |
Subject | Re: [Csnd] Csound and Python noob on Mac |
Csound still uses 2.6 on the mac. We'll probably move to 2.7, but I don't see us going soon to 3.x . Victor On 1 Nov 2011, at 15:09, gary hiebner wrote: > I am wanting to start learning python so that I can incorporate it > with CSound. I am currently running a Mac with 10.6.8 and CSound 5.14. > > I see my Mac has Python 2.6.1 installed. Should I upgrade my python > to the latest 3.2.2? Will it be more of a benefit for me to start > learning python 3 as opposed to python 2.6? > > Your guys help will be much appreciated in approaching python in the > right direction. > > Thanks. Dr Victor Lazzarini Senior Lecturer Dept. of Music NUI Maynooth Ireland tel.: +353 1 708 3545 Victor dot Lazzarini AT nuim dot ie Send bugs reports to the Sourceforge bug tracker https://sourceforge.net/tracker/?group_id=81968&atid=564599 Discussions of bugs and features can be posted here To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound" |
Date | 2011-11-01 15:42 |
From | Victor Lazzarini |
Subject | Re: [Csnd] pvstanal not installed? |
The opcode is there. Just run csound -z. Don't trust autocompletion. On 1 Nov 2011, at 15:29, Dr. Richard Boulanger wrote:
Dr Victor Lazzarini Senior Lecturer Dept. of Music NUI Maynooth Ireland tel.: +353 1 708 3545 Victor dot Lazzarini AT nuim dot ie |
Date | 2011-11-01 15:42 |
From | Victor Lazzarini |
Subject | Re: [Csnd] pvstanal not installed? |
It's probably not in CsoundQt's opcode list. On 1 Nov 2011, at 15:34, Dr. Richard Boulanger wrote: > the opcode is "listed" when I do csound -z from the terminal. > interesting? > > Andreas? Thoughts? > > -dB > > On Nov 1, 2011, at 11:31 AM, Adam Puckett wrote: > >> Have you tried using the terminal? >> >> On 11/1/11, Dr. Richard Boulanger |
Date | 2011-11-02 09:57 |
From | mantaraya36@gmail.com |
Subject | Re: [Csnd] pvstanal not installed? |
Hi, It sound like it just might be a problem with auto complete and syntax highlighting. It is likely your version of CsoundQt has an older opcode list than the Csound you have installed. Is the opcode producing the output you expect? Do you get an invalid opcode message when you use it? Cheers, AndresOn 01/11/2011 15:14 andreas russo wrote: turnon 1 gifil ftgen 0, 0, 0, 1, "become.wav", 0, 0, 1 instr 1 anoise gauss 10 ares5 sndwarp .9, 80, 1, 5, 0, 1024, 882, 1, 1, 0 fdest pvsanal ares5, 1024, 1024/4, 1024, 0 fsrc pvsanal anoise, 1024, 1024/4, 1024, 0 fdest1 pvstanal 1,1,1,gifil fsig pvscross fsrc, fdest, 0, 1 ares pvsadsyn fsig, 512, .25 out ares endin Send bugs reports to the Sourceforge bug tracker https://sourceforge.net/tracker/?group_id=81968&atid=564599 Discussions of bugs and features can be posted here To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound" |
Date | 2011-11-02 17:29 |
From | andreas russo |
Subject | Re: [Csnd] pvstanal not installed? |
thanks all for the reply. unfortunately, as I wrote in the first mail, I am not getting any output, BUT I don't get error messages. Csound runs, it just doesn't produce an output. the arguments I put in the opcode seem pretty simple to me... unless I'm doing something wrong... andreas On Nov 2, 2011, at 05:57, mantaraya36@gmail.com wrote: > Hi, > > It sound like it just might be a problem with auto complete and syntax highlighting. It is likely your version of CsoundQt has an older opcode list than the Csound you have installed. Is the opcode producing the output you expect? Do you get an invalid opcode message when you use it? > > Cheers, > AndresOn 01/11/2011 15:14 andreas russo wrote: > turnon 1 > > gifil ftgen 0, 0, 0, 1, "become.wav", 0, 0, 1 > > > > instr 1 > > > > anoise gauss 10 > ares5 sndwarp .9, 80, 1, 5, 0, 1024, 882, 1, 1, 0 > > fdest pvsanal ares5, 1024, 1024/4, 1024, 0 > fsrc pvsanal anoise, 1024, 1024/4, 1024, 0 > > fdest1 pvstanal 1,1,1,gifil > > fsig pvscross fsrc, fdest, 0, 1 > ares pvsadsyn fsig, 512, .25 > > > > out ares > > endin > > > Send bugs reports to the Sourceforge bug tracker > https://sourceforge.net/tracker/?group_id=81968&atid=564599 > Discussions of bugs and features can be posted here > To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound" > Send bugs reports to the Sourceforge bug tracker https://sourceforge.net/tracker/?group_id=81968&atid=564599 Discussions of bugs and features can be posted here To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound" |
Date | 2011-11-02 18:54 |
From | peiman khosravi |
Subject | Re: [Csnd] pvstanal not installed? |
I don't think the problem is with pvstanal. Try this (don't forget to change the soundfile). If it works (works here) then the issue is elsewhere in your instrument. P |
Date | 2011-11-02 22:16 |
From | andreas russo |
Subject | Re: [Csnd] pvstanal not installed? |
peman, your code does work, it must have been an error in my code. thanks a lot! On Nov 2, 2011, at 14:54, peiman khosravi wrote: <CsoundSynthesizer> |