Converts a pretty midi sequence to a boket plot
Project description
Visual MIDI
Converts a pretty midi sequence to a bokeh plot.
Installation
pip install visual_midi
Usage
Python
from visual_midi import Plotter
from pretty_midi import PrettyMIDI
pm = PrettyMIDI("docs/example-01.mid")
plotter = Plotter()
plotter.show(pm, "docs/example-01.html")
Command line
visual_midi "midi_file_01.mid" "midi_file_02.mid"
Flags
The same flags can be used both in Python and on the command line.
visual_midi -h
usage: visual_midi [-h] [--qpm QPM]
[--plot_pitch_range_start PLOT_PITCH_RANGE_START]
[--plot_pitch_range_stop PLOT_PITCH_RANGE_STOP]
[--plot_bar_range_start PLOT_BAR_RANGE_START]
[--plot_bar_range_stop PLOT_BAR_RANGE_STOP]
[--plot_max_length_bar PLOT_MAX_LENGTH_BAR]
[--bar_fill_alphas BAR_FILL_ALPHAS] [--coloring COLORING]
[--show_velocity SHOW_VELOCITY]
[--midi_time_signature MIDI_TIME_SIGNATURE]
[--live_reload LIVE_RELOAD] [--plot_width PLOT_WIDTH]
[--plot_height PLOT_HEIGHT] [--row_height ROW_HEIGHT]
[--show_bar SHOW_BAR] [--show_beat SHOW_BEAT]
[--title_text_font_size TITLE_TEXT_FONT_SIZE]
[--axis_label_text_font_size AXIS_LABEL_TEXT_FONT_SIZE]
[--axis_x_major_tick_out AXIS_X_MAJOR_TICK_OUT]
[--axis_y_major_tick_out AXIS_Y_MAJOR_TICK_OUT]
[--label_y_axis_offset_x LABEL_Y_AXIS_OFFSET_X]
[--label_y_axis_offset_y LABEL_Y_AXIS_OFFSET_Y]
[--axis_y_label_standoff AXIS_Y_LABEL_STANDOFF]
[--label_text_font_size LABEL_TEXT_FONT_SIZE]
[--label_text_font_style LABEL_TEXT_FONT_STYLE]
[--toolbar_location TOOLBAR_LOCATION]
[--stop_live_reload_button STOP_LIVE_RELOAD_BUTTON]
files [files ...]
positional arguments:
files
optional arguments:
-h, --help show this help message and exit
--qpm QPM
--plot_pitch_range_start PLOT_PITCH_RANGE_START
--plot_pitch_range_stop PLOT_PITCH_RANGE_STOP
--plot_bar_range_start PLOT_BAR_RANGE_START
--plot_bar_range_stop PLOT_BAR_RANGE_STOP
--plot_max_length_bar PLOT_MAX_LENGTH_BAR
--bar_fill_alphas BAR_FILL_ALPHAS
--coloring COLORING
--show_velocity SHOW_VELOCITY
--midi_time_signature MIDI_TIME_SIGNATURE
--live_reload LIVE_RELOAD
--plot_width PLOT_WIDTH
--plot_height PLOT_HEIGHT
--row_height ROW_HEIGHT
--show_bar SHOW_BAR
--show_beat SHOW_BEAT
--title_text_font_size TITLE_TEXT_FONT_SIZE
--axis_label_text_font_size AXIS_LABEL_TEXT_FONT_SIZE
--axis_x_major_tick_out AXIS_X_MAJOR_TICK_OUT
--axis_y_major_tick_out AXIS_Y_MAJOR_TICK_OUT
--label_y_axis_offset_x LABEL_Y_AXIS_OFFSET_X
--label_y_axis_offset_y LABEL_Y_AXIS_OFFSET_Y
--axis_y_label_standoff AXIS_Y_LABEL_STANDOFF
--label_text_font_size LABEL_TEXT_FONT_SIZE
--label_text_font_style LABEL_TEXT_FONT_STYLE
--toolbar_location TOOLBAR_LOCATION
--stop_live_reload_button STOP_LIVE_RELOAD_BUTTON
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
Visual MIDI-0.0.2.tar.gz
(8.6 kB
view details)
Built Distributions
Visual_MIDI-0.0.2-py3.7.egg
(19.2 kB
view details)
Visual_MIDI-0.0.2-py3.6.egg
(19.2 kB
view details)
File details
Details for the file Visual MIDI-0.0.2.tar.gz
.
File metadata
- Download URL: Visual MIDI-0.0.2.tar.gz
- Upload date:
- Size: 8.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/42.0.2.post20191203 requests-toolbelt/0.9.1 tqdm/4.40.2 CPython/3.7.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d17dc6d332dbe8dcc2dbb33f1254d0f9ed3839cb9b1d8ffc3abc5b92230223cb |
|
MD5 | 2e07731caeae51ca469471a22c4f2997 |
|
BLAKE2b-256 | c56de74a1b2fdf2d57dfa73af77207ef795ee87686ea36535716d58594e49c17 |
File details
Details for the file Visual_MIDI-0.0.2-py3.7.egg
.
File metadata
- Download URL: Visual_MIDI-0.0.2-py3.7.egg
- Upload date:
- Size: 19.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.4.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3ad93785ec567783792664bd200ab6e8d94217b4a10aecb0df1ee7540eda682d |
|
MD5 | e0865e87b3215502fa74dbbb817ebd8d |
|
BLAKE2b-256 | fa22ce9f512027620a065b549daa1b1c10305b9d3377fbeac5ba86424cf3ef9c |
File details
Details for the file Visual_MIDI-0.0.2-py3.6.egg
.
File metadata
- Download URL: Visual_MIDI-0.0.2-py3.6.egg
- Upload date:
- Size: 19.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/42.0.2.post20191203 requests-toolbelt/0.9.1 tqdm/4.40.2 CPython/3.6.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3ec750660d7699d651e64b5ac792e9f372e63f89895f142470cd55097a92ee17 |
|
MD5 | 383cd2443d7e9bdec0442848cdb0d7e6 |
|
BLAKE2b-256 | dd0c70898e3c6f4e646744909ed9c6b87e4fe260ad1678fe3f83b3123aebcafb |
File details
Details for the file Visual_MIDI-0.0.2-py3-none-any.whl
.
File metadata
- Download URL: Visual_MIDI-0.0.2-py3-none-any.whl
- Upload date:
- Size: 10.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/42.0.2.post20191203 requests-toolbelt/0.9.1 tqdm/4.40.2 CPython/3.7.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 21300e8529acd36dd7946d44cff9738f3ea8dab3f273b45b0747f9fc618f90ee |
|
MD5 | eaf5df447390967df10c8495d2deca65 |
|
BLAKE2b-256 | 773b04e839eb529fc05ce50ebd0473c2ae060d530ead37db8d324ee366b321e6 |