Skip to content

A MIDI Music generator based on python-rtmidi implementaton.

License

Notifications You must be signed in to change notification settings

bminahan73/midiMusicGenerator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

midiMusicGenerator

A MIDI Music generator based on python-rtmidi implementaton.

requirements

You will need python3 for this. also preferred is virtualenv and latest version of pip installed.

setup

  1. clone this repo
  2. create a python virtual env for python3, and activate it:
virtualenv -p $(which python3) <repo location>
source <repo location>/bin/activate
  1. install all of the requirements:
pip install -r /path/to/repo/requirements.txt
  1. find the list of available midi devices on your machine via the provided method, and take note of the one you wish to send output to:
cd src
python listmidiports.py
  1. set the MIDI_PORT environment variable to whatever device you wish to send output to:
export MIDI_PORT='name of midi port device from step 4'

this step is not strictly necessary. If the port is left empty, the output will be sent omni (to all exposed midi devices taking output).

  1. run the test to ensure everything is working. your MIDI output device should be sent a scale as well as some random notes:
cd src
python test.py

contributing

please feel free to contribute in any way you see fit.

About

A MIDI Music generator based on python-rtmidi implementaton.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published