Sequence MIDI messages using a Flask-style interface.
Project description
Sequence MIDI messages using a Flask
-style interface. Very much a work-in-progress.
Installation
[todo]
Usage
from lucier import Sequencer, MidiController, utils
s = Sequencer()
@s.register([MidiController(0)])
async def low_melody(ctrl, tick):
if utils.every_n_ticks(50, tick):
await ctrl.play_note(60, 60, .5)
@s.register([MidiController(1)])
async def high_melody(ctrl, tick):
if utils.every_n_ticks(50, tick, offset=25):
await ctrl.play_note(72, 60, .5)
s.play()
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
lucier-0.0.1.tar.gz
(4.4 kB
view details)
Built Distribution
File details
Details for the file lucier-0.0.1.tar.gz
.
File metadata
- Download URL: lucier-0.0.1.tar.gz
- Upload date:
- Size: 4.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.9.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a56837ce9e29d1805c4c210cd53222232bd1dd2f72d26a92fb614ae14129a12e |
|
MD5 | b7e211758df79cfae8e1a83b756c3eb7 |
|
BLAKE2b-256 | 384b1b2df30c8b10713c5f4a34b7f7de83835fa1d1a2ffd976c547ae38979e8e |
File details
Details for the file lucier-0.0.1-py3-none-any.whl
.
File metadata
- Download URL: lucier-0.0.1-py3-none-any.whl
- Upload date:
- Size: 4.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.9.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c1a930fb87eb2a5c33b7d1fe10451f5515d0aa8a5b1a0eca7a509cc5dc6f75c9 |
|
MD5 | 4e0c57a1a139fec29e4712ad9b219199 |
|
BLAKE2b-256 | 0ed71a93a0ef765a9d1ec5e44fe51a3a3ceb10197411cc737cba3b5c345fa7eb |