A simple class for sending MIDI messages
Project description
fts-rtmidi
My name is Ferdinand Tonby-Strandborg, and I am creating this library as I want an easy, quick class for sending midi messages.
A lot of the functions are implemented in a way that is unnecessarily complex. This is simply as I wanted to test features of Python I haven't used before.
Usage Example
from rtmidi import MidiOut
from ftsmidi import MidiSender
from time import sleep
## Print available MIDI channels using rtmidi class
print(MidiOut().get_ports())
## Connect to MIDI channel "Microsoft GS Wavetable Synth 0"
midi = MidiSender("Microsoft GS Wavetable Synth 0")
## Trigger note middle-C with velocity 120 for 1 second
midi.note_on(60, 120)
sleep(1)
midi.note_off(60)
MIDI protocol
For an in-depth explanation of the MIDI format, please see: https://www.cs.cmu.edu/~music/cmsip/readings/davids-midi-spec.htm
rtmidi
This uses the python-rtmidi library, which is currently available through pypi. All classes here simply wrap the rtmidi classes, and handle formatting the messages.
To learn more about RtMidi, visit their PyPi page or their GitHub repository.
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
Built Distribution
Hashes for fts_rtmidi-0.0.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 42391f2aa1f92c36ffce3a1daaf07b68409ef0b091f6ee3b23b9cf7688c2195c |
|
MD5 | bd70b2bd0990d3a37257657454f320d3 |
|
BLAKE2b-256 | dab5a0a5be67423f9d8be596d3e58941ba604ead533b5048539cf0df93db3d60 |