You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/csound-python.md
+11-13Lines changed: 11 additions & 13 deletions
Original file line number
Diff line number
Diff line change
@@ -4,31 +4,29 @@ title: Csound Python
4
4
permalink: /csound-python.html
5
5
---
6
6
7
-
François Pinot's ctcsound (= Ctypes Csound) is a very effective and powerful binding for the Csound host API in Python.
7
+
## ctcsound and csoundmagics
8
+
9
+
François Pinot's [`ctcsound`](https://github.com/csound/ctcsound) (= Ctypes Csound) is a very effective and powerful binding for the Csound host API in Python.
8
10
Each release of Csound has it's own version of ctcsound named *ctcsound.py*, which is installed in the Python path. So, if Python is already installed on your system and if Csound is correctly installed, you only have to install [numpy](https://numpy.org/install/), which is needed by ctcsound, to get it working.
9
11
12
+
In Csound 7.0, the host API has been entirely refactored, breaking backward compatibility. To emphasize this, it has been decided to rewrite ctcsound for Csound 7.0 following the naming convention of the [PEP 8 – Style Guide for Python Code](https://peps.python.org/pep-0008/#naming-conventions). So now, functions name are lowercase, with words separated by underscores (e.g. `SetOption` in ctcsound 6.x becomes `set_option` in ctcsound 7.0). Examples for this new version of ctcsound can be seen [here](https://github.com/csound/csoundAPI_examples/tree/master/7.x/python).
13
+
Victor Lazzarini wrote a [document](https://github.com/csound/csound/blob/develop/doc/API_Migration_Guide_Csound_6_to_7.md) about the host API migration from 6.x to 7.0.
14
+
15
+
On top of ctcsound, François Pinot has also written a *csoundmagics* class for the use in Jupyter notebooks, including Andrés Cabrera's *iCsound*, and many instructive examples.
16
+
10
17
<div>
11
18
<ahref="https://csound.com/docs/ctcsound"class="btn btn-lg btn-secondary">ctcsound Docs for Csound 6.x</a>
In Csound 7.0, the host API has been entirely refactored, breaking backward compatibility. To emphasize this, it has been decided to rewrite ctcsound for Csound 7.0 following the naming convention of the [PEP 8 – Style Guide for Python Code](https://peps.python.org/pep-0008/#naming-conventions).
17
-
So now, functions name are lowercase, with words separated by underscores (e.g. `SetOption` in ctcsound 6.x becomes `set_option` in ctcsound 7.0).
18
-
Examples for this new version of ctcsound can be seen [here](https://github.com/csound/csoundAPI_examples/tree/master/7.x/python).
19
-
Victor Lazzarini wrote a [document](https://github.com/csound/csound/blob/develop/doc/API_Migration_Guide_Csound_6_to_7.md) about the host API migration from 6.x to 7.0.
20
22
21
-
<br>
23
+
## libcsound and csoundengine
22
24
23
25
Eduardo Moguillansky has used ctcsound for an own wrapper called [`libcsound`](https://github.com/csound-plugins/libcsound) which attempts to work for both, Csound 6.18 and Csound 7, and is installable via [pip](https://pypi.org/project/libcsound/).
0 commit comments