gogins / csound-ac

A C++ library for algorithmic composition, designed to be used with Csound, with both C++ and Python interfaces.
GNU Lesser General Public License v2.1
6 stars 0 forks source link

Computer music playpen, again #12

Closed gogins closed 1 year ago

gogins commented 1 year ago

I'm resurrecting this project, based on the following observations:

HTML5 pieces must, as far as possible, make identical calls to the Csound API. I am making another attempt to use Visual Studio Code. It should be possible to reuse playpen.ini and playpen.py.

gogins commented 1 year ago

Not familiar with running Python pieces in Visual Studio Code, but I'm sure it will work with some additional configuration. It assumes a virtual Python environment is being used, I don't know for sure how to install packages in such.

Not that hard. In the home directory:

sudo cp /System/Volumes/Data/opt/homebrew/Cellar/csound/6.18.1_4/lib/python3.12/site-packages/ctcsound.py .venv/lib/python3.12/site-packages
source .venv/bin/activate  
python3 -m pip install --upgrade pip
python3 -m pip --version
python3 -m pip install numpy

Python with ctcsound works now from Visual Studio Code.

gogins commented 1 year ago

https://stackoverflow.com/questions/41022725/launch-and-attach-to-nw-js-program-from-visual-studio-code https://stackoverflow.com/questions/42017617/how-to-install-vs-code-extension-manually https://code.visualstudio.com/api/references/contribution-points

Apparently, it is not possible to add a new menu or menu item, except in context menus. That should be good enough, however.

gogins commented 1 year ago

Menu Design

Csound files

Html files

C++ files

Reference

gogins commented 1 year ago

Customizing VS Code is not intuitive. I would however prefer something that a user can simply install and that does not involve doing excessive configurationl.

gogins commented 1 year ago

I got the reference documentation working.

I got the "Render .csd as audio" command working.

gogins commented 1 year ago

Find out how to:

gogins commented 1 year ago

No doubt there will be bugs and changes, but I'm going to let that happen in the course of use.