[Csnd] Floss manual examples on Python do not work in CsoundQt
Date | 2020-05-10 17:44 |
From | "Dr. Richard Boulanger" |
Subject | [Csnd] Floss manual examples on Python do not work in CsoundQt |
Hello,
Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here
For some reason, the Python examples in the Floss Manuals, do not work in the latest version of CsoundQt. I thought that they did because the Markov example seems to make some sound, but that seems to be because it is just reading a table, but the probabilities have never been set from the Python code. I have a feeling that this is about the version of Python or the Path to Python. Any advice would be appreciated. Thanks _____________________________________________ Dr. Richard Boulanger Professor of Electronic Production and Design |
Date | 2020-05-10 18:42 |
From | Francois PINOT |
Subject | Re: [Csnd] Floss manual examples on Python do not work in CsoundQt |
Does it display any error message ? If it does, can you post these error messages? François Le dim. 10 mai 2020 à 18:45, Dr. Richard Boulanger <rboulanger@berklee.edu> a écrit :
|
Date | 2020-05-10 19:02 |
From | "Dr. Richard Boulanger" |
Subject | Re: [Csnd] Floss manual examples on Python do not work in CsoundQt |
It does not display anything in the console and no error messages. - PS. All your work Francois on ctcsound is AWESOME and ... as I said, once you get it all set up, it is a really great way of working, teaching, learning, exploring. _____________________________________________ Dr. Richard Boulanger Professor of Electronic Production and Design Professional Writing and Music Technology Division Berklee College of Music ______________________________________________ OFFICE: 1126 Boylston St., Suite 201 (EPD), Suite 208 (Boulanger) ______________________________________________ President of Boulanger Labs - http://boulangerlabs.com Author & Editor of The Csound Book - http://mitpress.mit.edu/books/csound-book Author & Editor of The Audio Programming Book - http://mitpress.mit.edu/books/audio-programming-book ______________________________________________ about: http://www.boulangerlabs.com/#about about: http://www.csounds.com/community/developers/dr-richard-boulanger/ music: http://www.csounds.com/community/developers/dr-richard-boulanger/dr-richard-boulanger-music/ ______________________________________________ email: rboulanger@berklee.edu facebook: https://www.facebook.com/richard.boulanger.58 On Sun, May 10, 2020 at 1:43 PM Francois PINOT <fggpinot@gmail.com> wrote:
|
Date | 2020-05-10 20:06 |
From | Francois PINOT |
Subject | Re: [Csnd] Floss manual examples on Python do not work in CsoundQt |
Thank you Richard for your kind words about ctcsound. The python opcodes examples of chapter 12B in the floss manual are written for Python2.7. You can see the Python version used by CsoundQT by running these commands within the Python console of CsoundQT: import sys sys.version Actually, the Python opcodes plugin of the develop branch of Csound is for Python2.7. I did a port of this plugin for Python 3.x, but it is actually here: https://github.com/csound/plugins. This repository has been set as a template for building opcode plugins. As Steven noted in the discussion about Eduardo Moguillansky'st package manager Risset, with this template repo and the Risset features "it might be possible to have it setup for auto-compilation on multiple platforms". This is very exciting for the future management of plugins in Csound7... For now, it is possible to build my port of the Python opcodes plugin for Python 3.x and to manually replace the dynamic library by this build. Of course, the floss manual examples have to be adapted as well... François Le dim. 10 mai 2020 à 20:02, Dr. Richard Boulanger <rboulanger@berklee.edu> a écrit :
|
Date | 2020-05-10 20:39 |
From | "Dr. Richard Boulanger" |
Subject | Re: [Csnd] Floss manual examples on Python do not work in CsoundQt |
Francois, all of this amazing and important new work by you and the other developers is really fantastic and will open many doors. I do think that the issue is Python2.7 vs Python3.x Now when you say to type those commands into the Python console of CsoundQT do you mean into the Interactive Code Pad? I have typed them in - and then what? - they do not seem to run or render or enter - they appear on line numbers, but that seems to be it. (I have chosen Python mode and not Csound mode.) Obviously, this is another feature of the GUI that I am not particularly familiar with, or that might not be working in this new BETA release of CsoundQt Version 0.9.8-rc1 _____________________________________________ Dr. Richard Boulanger Professor of Electronic Production and Design Professional Writing and Music Technology Division Berklee College of Music ______________________________________________ OFFICE: 1126 Boylston St., Suite 201 (EPD), Suite 208 (Boulanger) ______________________________________________ President of Boulanger Labs - http://boulangerlabs.com Author & Editor of The Csound Book - http://mitpress.mit.edu/books/csound-book Author & Editor of The Audio Programming Book - http://mitpress.mit.edu/books/audio-programming-book ______________________________________________ about: http://www.boulangerlabs.com/#about about: http://www.csounds.com/community/developers/dr-richard-boulanger/ music: http://www.csounds.com/community/developers/dr-richard-boulanger/dr-richard-boulanger-music/ ______________________________________________ email: rboulanger@berklee.edu facebook: https://www.facebook.com/richard.boulanger.58 On Sun, May 10, 2020 at 3:06 PM Francois PINOT <fggpinot@gmail.com> wrote:
|
Date | 2020-05-10 20:47 |
From | "Dr. Richard Boulanger" |
Subject | Re: [Csnd] Floss manual examples on Python do not work in CsoundQt |
I reverted back to CsoundQt Version 0.9.7 and it did at least highlight some of the python commands. _____________________________________________ Dr. Richard Boulanger On Sun, May 10, 2020 at 3:39 PM Dr. Richard Boulanger <rboulanger@berklee.edu> wrote:
|
Date | 2020-05-10 21:31 |
From | Tarmo Johannes |
Subject | Re: [Csnd] Floss manual examples on Python do not work in CsoundQt |
Hi, Not sure if it is relevant but CsoundQt 0.9.8-rc is not built with PythonQt support (yet). Python within csd should work though. Tarmo P, 10. mai 2020 22:47 Dr. Richard Boulanger <rboulanger@berklee.edu> kirjutas:
|
Date | 2020-05-10 22:01 |
From | "Dr. Richard Boulanger" |
Subject | Re: [Csnd] Floss manual examples on Python do not work in CsoundQt |
Thanks Tarmo... so many cool new features in version 9.8. . Thanks for the advice. Dr. Richard Boulanger Professor Electronic Production and Design Berklee College of Music On May 10, 2020, at 4:32 PM, Tarmo Johannes <trmjhnns@gmail.com> wrote:
|