Csound Csound-dev Csound-tekno Search About

Re: [Csnd] Installing the python plugins on Linux

Date2023-06-04 17:48
FromPrent Rodgers
SubjectRe: [Csnd] Installing the python plugins on Linux
David, Michael,
Thank you for the suggestions. I appreciate your input.

My algorithm is written in python, and it does a lot beyond a table lookup. It examines all the intervals in the current chord, and optimizes the lowest numerator and denominator in each interval, then moves notes around until the entire chord has the sum of the lowest integer ratios for that chord. Then it transposes the chord if the cent values differ from what was used previously for important notes in the entire piece. I select the anchor notes that I want to avoid moving if at all possible. It evaluates all the intervals in every chord to optimize the cent values consistent with maintaining reasonable closeness to the original 12 tone equal temperament note. It's optimizing several factors, but the most important one is low number ratios. It chooses from valid ratios in the tonality diamond to an arbitrary limit, in my case the 31-limit. 

Long way to say that I can't do it all in csound. I looked at the https://github.com/csound/plugins/tree/develop/py instructions, but all I find there is "To build these opcodes, you will need to install Python from www.python.org, or the devel package (on linux)." I have python already. I just don't understand what it means "to build these opcodes". How do I build them?

I see this in the source code directory: "BEFORE COMPILING To generate the source code for the Python opcodes just run the pycall-gen.py and pyx-gen.py scripts in this directory."
After cloning the repo, I executed those two python scripts, and they created plugins/py/CMakeLists.txt, I just don't know what the next step would be. 


Prent Rodgers

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

Date2023-06-04 18:37
FromMichael Gogins
SubjectRe: [Csnd] Installing the python plugins on Linux
Go the root of the repository then do:

mkdir build
cd build
cmake ..
make

Probably won't work the first time. Get back to us with error messages.


-----------------------------------------------------
Michael Gogins
Irreducible Productions
http://michaelgogins.tumblr.com
Michael dot Gogins at gmail dot com


On Sun, Jun 4, 2023 at 12:48 PM Prent Rodgers <prent.rodgers@gmail.com> wrote:
David, Michael,
Thank you for the suggestions. I appreciate your input.

My algorithm is written in python, and it does a lot beyond a table lookup. It examines all the intervals in the current chord, and optimizes the lowest numerator and denominator in each interval, then moves notes around until the entire chord has the sum of the lowest integer ratios for that chord. Then it transposes the chord if the cent values differ from what was used previously for important notes in the entire piece. I select the anchor notes that I want to avoid moving if at all possible. It evaluates all the intervals in every chord to optimize the cent values consistent with maintaining reasonable closeness to the original 12 tone equal temperament note. It's optimizing several factors, but the most important one is low number ratios. It chooses from valid ratios in the tonality diamond to an arbitrary limit, in my case the 31-limit.

Long way to say that I can't do it all in csound. I looked at the https://github.com/csound/plugins/tree/develop/py instructions, but all I find there is "To build these opcodes, you will need to install Python from www.python.org, or the devel package (on linux)." I have python already. I just don't understand what it means "to build these opcodes". How do I build them?

I see this in the source code directory: "BEFORE COMPILING To generate the source code for the Python opcodes just run the pycall-gen.py and pyx-gen.py scripts in this directory."
After cloning the repo, I executed those two python scripts, and they created plugins/py/CMakeLists.txt, I just don't know what the next step would be.


Prent Rodgers

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
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