| 1 | # 01_Intro.py |
| 2 | |
| 3 | # The q object contains all the functions of the Python API |
| 4 | # For CsoundQt. You can run these functions from a Python file |
| 5 | # or from the interactive Python Console. |
| 6 | # The Scripts menu runs Python scripts directly, which allows |
| 7 | # running scripts to operate directly on selected text and other |
| 8 | # features of the currently open document, which could be a csd |
| 9 | # file. |
| 10 | |
| 11 | # You can access many actions from the CsoundQt interface, as well |
| 12 | # as interacting with the text editors, or the running Csound |
| 13 | # instances from any of the open documents. |
| 14 | |
| 15 | # You can also open documents or switch to them through this API |
| 16 | # For example, this script opens itself in the editor! |
| 17 | # (calling a Script from the Scripts menu runs it but doesn't |
| 18 | # open it in an editor tab) |
| 19 | |
| 20 | q.loadDocument("01_Intro.py") |