Skip to main content

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

pip install lucier

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


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.2.tar.gz (4.3 kB view details)

Uploaded Source

Built Distribution

lucier-0.0.2-py3-none-any.whl (4.8 kB view details)

Uploaded Python 3

File details

Details for the file lucier-0.0.2.tar.gz.

File metadata

  • Download URL: lucier-0.0.2.tar.gz
  • Upload date:
  • Size: 4.3 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

Hashes for lucier-0.0.2.tar.gz
Algorithm Hash digest
SHA256 3366c3aaea57deec81b9b24fafa59f5f9d1d21d7315512a00efc22893340eb03
MD5 7cc37f9802bc10b647744ab99757134e
BLAKE2b-256 48c3d7fe2fab4b0d56478222af5209f80e3508c5b45f772605dc179de47bbcf9

See more details on using hashes here.

File details

Details for the file lucier-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: lucier-0.0.2-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

Hashes for lucier-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 4537aad4309fad4dc474be5223808643c00845ef982f724abf65770ce96134ff
MD5 9ae81bab7724193e5640d5d62c91fc00
BLAKE2b-256 4ad603027bd1d0502b31cb9de4ea267ccf512e9289afe0df5f436bb06c951aba

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page