Metadata-Version: 2.1
Name: lucier
Version: 0.0.2
Summary: Sequence MIDI messages using a Flask-style interface.
Home-page: https://github.com/jacoblurye/lucier
Author: Jacob Lurye
License: UNKNOWN
Platform: UNKNOWN
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.6
Description-Content-Type: text/markdown
Requires-Dist: mido (==1.2.9)
Requires-Dist: python-rtmidi (==1.4.6)

Sequence MIDI messages using a [`Flask`](https://github.com/pallets/flask)-style interface. Very much a work-in-progress.

### Installation

```
pip install lucier
```

### Usage

```python
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()
```


