Skip to main content

microcsound

TO INSTALL:


  • Make sure you have Python and Csound installed

  • Choose as install method, pip or git (pip is recommended if you have it)

From pip:

    pip install microcsound

From git:

Either download from the 'dist' directory here, or:

    git clone https://github.com/akjmicro/microcsound

Once downloaded, in the 'microcsound' directory:

    python -m pip install .

  • Files will be installed into a Python lib directory on your system. E.G., on a Linux system, something like /usr/local/lib/Python3.11

  • Copy .microcsound.toml to your home user directory, edit the values to your preferences

ABOUT:

Microcsound implements the following features:

  • an intuitive, clean shorthand syntax that allows one to both easily write CSound scores

  • a focus on flexible entry of microtonal music, the emphasis being on enabling one to compose in various equal-temperaments and just intonation.

  • symbols for various microtonal commas, so that extended just intonation harmony is easily accessible in a convenient intuitive way.

  • implementation of chord notation using brackets

  • implementation of a 'time pointer' notation which allows arbitrary number of counterpoint layers in a single 'voice'

See the example 'ciconia.mc' (a rendering of a medieval piece, given in the repo path microcsound/share/data/ciconia.mc) and the tutorials/docs for an understanding of how to use the syntax for your own compositions.

To use:

It's best to start by seeing all the command-line options, so first, try:

         $ microcsound -h

After writing a little example in a file you might name 'yourfile.mc', try this:

         $ microcsound yourfile.mc

The script outputs a wave file to the current directory, by default the wave is called 'microcsound_out.wav', but you can change this using the '-o' command line switch. If you use the '-s', it will avoid the final step of compiling the orc/score pair and just put a csound score to standard out. To put this output into a file, use redirection like so:

         $ microcsound -s yourfile.mc > yourcsoundscore.sco

You could also use an editor like 'joe' or 'emacs' that allows the capture of the text output of a process, and call the script from within the editing session of a .csd (orc+sco) file; in this way one can be between the and tags and fill the space with the script output.

For realtime experimentation, just call the script with the name of a csound '.orc' file, you can edit the variables at the top of the script so that it automatically looks for orchestra files in a default directory.

For instance:

	$ microcsound -i --orc fat_moog.orc

will give you a prompt, and you can type in a microcsound 'score', and when you want it rendered, hit return and type 'done' and then hit return again. In this example above, it will search in the directory I provided in the script for the 'fat_moog.orc' file.

See the csound documentation for how to use all the options and command line switches to get the final audio output from csound. The csound command called by the script can be changed at the top of the script in the "user variables" area.

Enjoy!

Aaron Krister Johnson

Please report bugs and successes to aaron@untwelve.org

Metadata

Release files for microcsound 2.0.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for microcsound 2.0.4
File Size Uploaded
microcsound-2.0.4.tar.gz 36.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for microcsound 2.0.4
File Interpreter ABI Platform
microcsound-2.0.4-py3-none-any.whl Python 3 none any Details

Total release size: 77.8 kB

Release files / microcsound-2.0.4.tar.gz

Download URL microcsound-2.0.4.tar.gz
Size 36.8 kB
Tags Source
SHA-256 checksum
How to use checksums
d4cdde8389a1ad1e5b8b34ae6df85e941184f4346b0c8ed1578930ad95a93cbf
BLAKE2b-256 checksum
How to use checksums
4efeac7ef309a3269a8aa443a0cf981fc978d4c187509d3907ca85318fa5f975
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.12.5

Release files / microcsound-2.0.4-py3-none-any.whl

Download URL microcsound-2.0.4-py3-none-any.whl
Size 41.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d05bc5c18eee47126f2184646ac393585825beda2dcaa7a7671a8b265b2c6774
BLAKE2b-256 checksum
How to use checksums
ca9c660fcecce9776ec9f699e015c82354646b2be57579a372c2626ed7b25d72
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.12.5

Release history Release notifications | RSS feed

This release

2.0.4 This release

2 release files

2.0.3

2 release files

2.0.2

1 release file

2.0.1

1 release file

2.0.0

1 release file

1.5.1

1 release file

1.4.2

1 release file

1.4.1

2 release files

1.4.0

2 release files

1.3.1

2 release files

1.3.0

2 release files

1.2.2

2 release files

1.2.1

2 release files

1.2.0

2 release files

1.1.1

2 release files

1.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page