Software sequencer
Project description
Cadence
Cadence is a minimalist software music sequencer written in Python.
Getting started
- Install package:
$ pip install -e .
- Play sequence:
$ python sequences/seq1.py
- Launch visual interface:
$ cadence go
Usage
Cadence consists of a Python API, a command-line interface, and a visual user interface.
Python API usage
See sequences/seq1.py for an example of how to use the Cadence Python API to play a sound sequence.
Command-line interface
After installation, run
$ cadence --help
to see the available CLI commands.
Visual interface
Run the command
$ cadence go
in your terminal to launch the visual interface.
Saving and loading projects
A project can be saved in two ways:
- by calling the
cadence.save_project()function (see example at the bottom ofsequences/seq1.py) - via the "Save project..." button in the UI
A saved project consists of a folder called projectname.cadence/ with the following structure:
projectname.cadence/
├─ project.json # metadata and sound timings
└─ sounds/ # contains all sound files
├─ sound1.wav
├─ sound2.wav
└─ ...
Once saved, a project can be loaded in three ways:
- by calling the
load_project()function - by running the command
cadence load projectname.cadenceto launch the project in the UI - by clicking the "Load project..." button within the UI
Sounds
The sounds/ directory includes a set of built-in sound files to use in your projects. You can also use your own sound files, as long as they meet the following requirements:
- Sounds must be
.wavfiles - All sounds used in a single project must have the same sample rate, bit depth, and number of channels (mono or stereo).
The ffmpeg command line utility can be used for converting sound files to the correct format.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file cadence_seq-0.1.0.tar.gz.
File metadata
- Download URL: cadence_seq-0.1.0.tar.gz
- Upload date:
- Size: 16.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d4e49425f7f27c1d7191a577b89ee83d65a0a5a83d3b7973e92ffdc86a66622c
|
|
| MD5 |
3fb06d59272455ce35ca343ba4a1c1b8
|
|
| BLAKE2b-256 |
12e1edc2b54088e5fdbcda736be2b265f649960460cd9c4ef34327da36672625
|
File details
Details for the file cadence_seq-0.1.0-py3-none-any.whl.
File metadata
- Download URL: cadence_seq-0.1.0-py3-none-any.whl
- Upload date:
- Size: 18.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
144a24e590119ad044f91ba4b1430a48633b24b984ecead67d6542c84c56f454
|
|
| MD5 |
35846ccf6575caa389c3ef7749ac82bb
|
|
| BLAKE2b-256 |
33ca4d64be244326676853a6ace1929c24c5a7c0c258150663c2f3f83577cdde
|