Skip to content
fggp edited this page Jun 13, 2016 · 1 revision

csoundmagics is an extension for the Jupyter Notebook. It adds magic commands to the notebook, functions, and an ICsound class which is an adaptation of Andrés Cabrera's icsound module, using the new ctcsound wrapper module for Python to the Csound API. ctcsound is included in the csound sources since version 6.07.

Installation

You should have a proper installation of Jupyter on your system (see Installing Jupyter Notebook).
Download the csoundmagics directory from github on your system, and from this directory run the command:

    python installCsoundmagics.py

This will copy the csoundmagics extension in the user's ipython dir, and copy the csound.js mode in the codemirror mode directory of the Jupyter tree.

Usage

The following notebook shows how to use magic commands to edit csd's, orchestras, and scores in code cells, and how to play them:

This other notebook is an adaptation of Andrés Cabrera's icsound example to csoundmagics:

Credits

csoundmagics was written by François Pinot and uses work from Jacob Joaquin and Andrés Cabrera.