Skip to main content

risset

risset: a package manager for csound

This is the repository of risset, a package manager for csound external plugins and user-defined-opcodes. The index aggregating all available packages is kept at risset-data.

Installation

risset requires csound 7 or later; csound 6 is no longer supported.

Outside of csound, risset depends only on git and python (>= 3.9) being installed. risset itself is a python program and can be installed as a any other python package. In general, The most convenient way to install risset is via uv.

MacOS / linux

# Install uv itself
curl -LsSf https://astral.sh/uv/install.sh | sh

# Install risset
uv tool install risset

# To upgrade risset itself:
uv tool upgrade risset

Windows

powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex"

uv tool install risset

# To upgrade risset itself:
uv tool upgrade risset

Quick start

List all defined packages

$ risset list

- else /2.0.0          | Miscellaneous plugins
- pathtools /2.0.0     | Cross-platform path handling and string opcodes
- klib /2.0.0          | A hashtable for csound
- beosc /2.0.0         | Band-enhanced oscillators implementing the sine+noise synthesis model
- jsfx /2.0.0          | jsfx support for csound
- poly /2.0.0          | Multiple (parallel or sequential) instances of an opcode
- sndmeta /2.0.0       | opcodes using libsndfile
- risset /2.0.0        | Opcodes to access risset package metadata
- poodle /2.0.0        | Faust plugins ported to csound

Install some packages

$ risset install else poly

Show information about a specific package

$ risset show poly

Plugin        : poly
Author        : Eduardo Moguillansky (eduardo.moguillansky@gmail.com)
URL           : https://github.com/csound-plugins/csound-plugins.git
Version       : 1.18.2

Installed     : Unknown (path: /home/xx/.local/lib/csound/7.0/plugins64/libpoly.so)
Manifest      : No manifest (installed manually)
Abstract      : Multiple (parallel or sequential) instances of an opcode
Description:
    Multiple (parallel or sequential) instances of an opcode
Opcodes:
    defer, poly, poly0, polyseq
Binaries:
    * linux/csound>=7.0
    * macos/csound>=7.0
    * macos-arm64/csound>=7.0
    * windows/csound>=7.0

Remove a plugin

$ risset remove poly

Show manual page for an opcode (installed or not)

$ risset man poly
# mtro

## Abstract

an accurate version of metro


## Description

`mtro` is a drop-in replacement of `metro` without the
drifting over time. `metro` is implemented by adding a phase
each cycle, which results in drifting over time due to rounding errors.
`mtro` avoids this problem by keeping a counter and doing multiplication
so that the error is limited.

Following metro's implementation by default `mtro` is triggered at time=0. This
is because `i_initphase` is set to 1 by default. It is possible to make `mtro` skip the
0 trigger by setting `i_initphase` to 0.

## Syntax


    kout mtro kfreq, i_initphase=1


## Arguments

* **kfreq**: the frequency of the trigger
* **i_initphase**: the initial phase (a value between 0 and 1). If set to 0, there is no trigger at time 0.
        If set to 1, `mtro` triggers at time=0, similar to `metro`

## Output

* **kout**: 1 if the mtro has triggered, 0 otherwise

## Execution Time

* Performance

Commands and options

Run risset --help or risset <command> --help for command-line help. Global options go before the command name:

risset [global-options] <command> [command-options] [arguments]

Global options

  • --debug: Print debug information.
  • --no-color: Disable colored output.
  • --update: Update the plugin data before running the command.
  • --stop-on-error: Stop parsing plugin data when an error is detected.
  • --user-plugins-path PATH: Use PATH as the user plugin directory (same as setting CS_USER_PLUGINDIR).
  • --version: Print the risset version and exit.

Risset also reads these environment variables:

  • LIBCSOUNDPATH: Path to the Csound shared library.
  • LIBCSOUND_VERSION: Csound version as <major>.<minor> (e.g. 7.0). When set, risset uses it instead of locating and querying the library. This is meant for applications embedding Csound (e.g. CsoundQt) that call risset and can provide the version themselves.
  • CS_USER_PLUGINDIR: Override the user plugin directory.
  • OPCODE7DIR64: Path to Csound's system opcodes.

Package commands

update

Update the local plugin index and metadata:

risset update

list

List plugins available for the current platform and Csound version. By default, plugins without a matching binary are omitted.

risset list [options]

Options:

  • --all: Include plugins without a binary for the current platform or Csound version.
  • --json: Output the plugin list as JSON.
  • -o, --outfile FILE: Write output to a file (only applies with --json).
  • --nameonly: Print only plugin names.
  • --installed: List only installed plugins.
  • --upgradeable: List only installed plugins that can be upgraded.
  • --noheader: Omit extra information in the list output.
  • -1, --oneline: Print each plugin on one line.

show

Show information about a plugin. --full includes additional information, including the binary URL.

risset show [--full] <plugin>

install

Install or update one or more plugins into the user plugin directory; no administrator privileges are normally needed. Plugin names may be glob patterns; quote patterns so the shell does not expand them first.

risset install [--force] <plugin> [<plugin> ...]

--force forces a reinstall, including when the installed version is unknown.

remove

Remove one or more installed plugins:

risset remove <plugin> [<plugin> ...]

upgrade

Upgrade all installed plugins for which a newer indexed version is available:

risset upgrade

download

Move a plugin's binary to a directory without installing it. The destination directory must already exist.

risset download [--path DIRECTORY] [--platform PLATFORM] <plugin>
  • --path DIRECTORY: Destination directory (default: current directory).
  • --platform PLATFORM: Select linux, linux-arm64, macos, macos-arm64, or windows (default: current platform).

resetcache

Clear the cached manual pages. --full also removes the local plugin index and cloned plugin repositories.

risset resetcache [--full]

Opcode and documentation commands

listopcodes

List installed opcodes. --all includes opcodes from plugins that are not installed; -l, --long also prints each opcode's plugin and description.

risset listopcodes [--all] [-l | --long]

man

Display an opcode's manual page. Multiple opcode names and quoted glob patterns are accepted. With no opcode argument, risset opens the generated documentation index.

risset man [options] [<opcode> ...]
  • -p, --path: Print <opcode>:<path> for each manual page.
  • -s, --simplepath: Print only each manual-page path.
  • --example: Print the first complete CSD example from the opcode's manual page (an example enclosed in <CsoundSynthesizer> tags), with syntax highlighting when writing to a terminal. Combined with --simplepath, the example is saved to a temporary .csd file and that path is printed instead.
  • -m, --markdown: Use the Markdown page (the default format).
  • --html: Open the HTML page in the default browser. --html and --markdown are mutually exclusive.
  • -e, --external: Open the Markdown page in the default application instead of displaying it in the terminal.
  • --theme THEME: Markdown display style: dark (default), light, gruvbox-dark, gruvbox-light, material, fruity, or native.

makedocs

Build documentation for plugin opcodes (requires mkdocs):

risset makedocs [--onlyinstalled] [--split-index] [--minimal] [-o DIRECTORY]
  • --onlyinstalled: Build documentation only for installed plugins.
  • --split-index: Generate one index page per plugin (index-<plugin>.md). The general index.md then starts with a bullet list of plugins, each with its abstract and a link to the plugin's section. Each plugin section has a heading linking to the plugin's own index page, followed by the author, the long description and a comma-separated list of its opcodes (at most 20). The plugin's own page contains author/email, url, the long description and a table of its opcodes with their abstracts.
  • --minimal: Build the HTML docs with a minimal mkdocs configuration (default mkdocs theme, only the index page in the navigation). This makes the mkdocs build considerably faster, since the full navigation tree is no longer rendered into every page.
  • -o, --outfolder DIRECTORY: Write documentation to this directory.

Run risset --debug makedocs to print per-phase timings (index parsing, doc compilation, opcodes.xml generation and the mkdocs build).

info

Print environment and installation information as JSON. The output can be used by other applications, including CsoundQt.

risset info [--full] [--outfile FILE]
  • --full: Include information about all available plugins.
  • --outfile FILE: Save the JSON output to a file instead of stdout.

validate

Validate a risset.json plugin definition and the manual pages for its opcodes:

risset validate <infile>

Csound and developer commands

csound install

Install Csound using getcsound's installer. On Windows, run from an Administrator session. Use --force to reinstall an existing Csound installation.

risset csound install [--force]

dev

Developer utilities are grouped under risset dev:

  • risset dev opcodesxml [--outfile FILE]: Generate opcodes.xml; use --outfile stdout to print it to stdout.
  • risset dev opcodemap [--outfile FILE]: Print a JSON map of every plugin together with its latest version and its list of opcodes, or save it to FILE.
  • risset dev codesign: Code-sign installed plugin binaries (macOS only).
  • risset dev completions [--fish | --bash | --zsh] [--install]: Print shell completions, or install them with --install. The shell is detected when possible; specify a shell option if detection fails. Supported on Linux and macOS.

Plugin Documentation

Documentation for all plugins can be found here: https://csound-plugins.github.io/risset-docs/


Contributing

In order to add/modify a plugin, clone risset-data

At the root of the repository there is an index file rissetindex.json, with the form:

{
    "version": "1.0.0",
    "plugins": {
        "else": {
            "url": "https://github.com/csound-plugins/csound-plugins.git",
            "path": "src/else"
        },
        "pathtools": {
            "url": "https://github.com/csound-plugins/csound-plugins.git",
            "path": "src/pathtools"
        },
        "klib": {
            "url": "https://github.com/csound-plugins/csound-plugins.git",
            "path": "src/klib"
        },
        "beosc": {
            "url": "https://github.com/csound-plugins/csound-plugins.git",
            "path": "src/beosc"
        },
        "vst3": {
            "url": "https://github.com/csound-plugins/vst3-risset.git"
        }
    }
}

To add a plugin to the index, just extend the plugins dict. The url should point to a valid git repository, the path attribute can be used to indicate where risset.json manifest is within this repository. This allows to define multiple plugins within one repository.

Manifest

Each plugin has an accompanying manifest in the .json format. The name of this file is always risset.json See one of the examples in https://github.com/csound-plugins/csound-plugins/tree/master/src for more information

Metadata

Release files for risset 4.2.1

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

Source distribution (sdist)

Source distribution for risset 4.2.1
File Size Uploaded Provenance Actions
risset-4.2.1.tar.gz 158.9 kB Without provenance Details for risset-4.2.1.tar.gz

Built distribution (wheel)

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

Total release size: 269.7 kB

Release files / risset-4.2.1.tar.gz

Download URL risset-4.2.1.tar.gz
Size 158.9 kB
Tags Source
SHA-256 checksum
How to use checksums
cf4faaf5a2ef6b3a9b4a99f69c426135770ca88b09a0cefd9f8e922db0bc8090
BLAKE2b-256 checksum
How to use checksums
2993b701b5f9c3c5514f6fe31e0e34584393e807618499bb755aa467fd058285
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.11.31 {"installer":{"name":"uv","version":"0.11.31","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / risset-4.2.1-py3-none-any.whl

Download URL risset-4.2.1-py3-none-any.whl
Size 110.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
62da6033a559e6394c0b71355771bdbf114d3b08ffcf32ddeb9dcc5adf2c0eb5
BLAKE2b-256 checksum
How to use checksums
bafa13379e3c43c4a266bf8c64b74438ffa41e091c3ba914c416b658878ad1db
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.11.31 {"installer":{"name":"uv","version":"0.11.31","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Security for risset 4.2.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

4.2.1 This release

2 release files No provenance

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