Skip to content

Commit 1f76afa

Browse files
author
joachimheintz
committed
formatting
1 parent 6cc736c commit 1f76afa

File tree

1 file changed

+11
-13
lines changed

1 file changed

+11
-13
lines changed

docs/csound-python.md

Lines changed: 11 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -4,31 +4,29 @@ title: Csound Python
44
permalink: /csound-python.html
55
---
66

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.
810
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.
911

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+
1017
<div>
1118
<a href="https://csound.com/docs/ctcsound" class="btn btn-lg btn-secondary">ctcsound Docs for Csound 6.x</a>
19+
<a href="https://github.com/csound/ctcsound/tree/master/cookbook" class="btn btn-lg btn-secondary">Example collection</a>
1220
</div>
1321

14-
<br>
15-
16-
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.
2022

21-
<br>
23+
## libcsound and csoundengine
2224

2325
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/).
2426

25-
<div>
26-
<a href="https://libcsound.readthedocs.io/en/latest/index.html" class="btn btn-lg btn-secondary">libcsound Docs</a>
27-
</div>
28-
29-
3027
On top of ctcsound, Eduardo Moguillansky has written [csoundengine](https://pypi.org/project/csoundengine/).
3128

3229
<div>
30+
<a href="https://libcsound.readthedocs.io/en/latest/index.html" class="btn btn-lg btn-secondary">libcsound Docs</a>
3331
<a href="https://csoundengine.readthedocs.io/en/latest/index.html" class="btn btn-lg btn-secondary">csoundengine Docs</a>
3432
</div>

0 commit comments

Comments
 (0)