Skip to main content

music21 / MIDI and Python

If you like to generate music with Python, the last time I checked, we have module for ChucK and also for Pi Sonic. They both require server to talk to Python, there might be slight latency and delay, but they are quite fun and easy to setup.

And... there is also this fully Python module that deals with music: (a bit hard to use I found)
http://ajaxsoundstudio.com/software/pyo/

I like the idea of being able to generate music on the fly via Python. Would be nice if realtime, and if I could connect it to ... Blender 3D for example.

Anyhow, I remember apart from SYNTH there is also MIDI, and maybe Music Generation does not have to be realtime, if we can code certain BEAT and TRIGGER to match the animation or sampling of other stuff that we can visualize.

PYTHON AND MIDI

By some kind of magic I actually stumbled into this 'music21' module for Python.
http://web.mit.edu/music21/doc/about/what.html

I look through this 'music21' quickly and found lots of interesting and pleasing surprises! MIDI is a kind of format that I think should be simpler to use and to visualize.

Well, probably there are many apps out there that can already process, display MIDI, etc in interesting way, but here we are using Python in 2017 to generate MIDI and perhaps study MIDI.



You need to install Muse Score app in order to display the musical notations:
https://musescore.org

Currently I am still reading documentation about this MIDI and Python. So I guess I will give that a look and will post more interesting stuff as I go along.

Comments

Popular posts from this blog

PYTHON PROCESSING / It only really begins ...

Back into Processing again, with Python! While Daniel Shiffman is continuously inspiring us with his CODING TRAIN series on YouTube, using Processing with Java and Javascript language, I decided to free my mind and trying to really do something using Processing and Python language. Installing Python language version on Processing 3 is easy enough, just first download the latest Processing and install the Python language mode via Add Mode button. Other link that might help: https://github.com/jdf/processing.py http://py.processing.org/tutorials/ BLANK MODE As soon as Processing Python Mode, opens up and running I am presented with a  blank environment. Suddenly I recalled my journey in learning programming from zero until now... With Python, outside Processing, commonly people will be introduced to Python IDE or IDLE environment. Something that looks like Console Window or Command Prompt, where we type single liners command. Python Command Line and IDE normally have t

PYTHON / OpenCV, Recreate Uncanny Manga - Anime Style

Can you tell what it is? Computer Vision. Yesterday, I spend almost whole day exploring this opencv module using Python. What I discovered was revealing. Even at the very basic level, I could produce some interesting Image and Video manipulation using all the code collected from documentation and many, many blog tutorials. If you are a total noob like me, I am still getting used to knowing that the CV in OpenCV means Computer Vision! Actuallly, I recalled that I did try to get into OpenCV few years back ago, when I knew no Python and when Python opencv module was probably still early. It was all C++ code and it was a little bit too hard for me. I read a couple of books about opencv at the library, I did not understand a single thing. That was back then. Today, for strange reason, with a bit of knowledge of Python, I can go a little further. EDGE DETECT IN OPENCV Me holding you know what. What leads me this far is my curiosity on how we can replicate Wolfram Langu

WOLFRAM / Making Text With Rainbow Color

Continuing with my Wolfram Mathematica Trial Experience... I watched and went through some more Mathematica introduction videos, read lots of Mathematica documentation and also going through the Wolfram Lab Online again a few times. There are some major learning curves and Mathematica is a lot different from normal programming language. Sometimes there is a lot of interesting "shortcuts", say like: FindFaces[] , WordCloud[] . Sometimes I got a little confused on how one can do iterations. Normally FOR LOOP concept is introduced early, but in Wolfram, because everything is EXPRESSIONS and ENTITY (like OBJECTS), sometimes it gets quite quirky. Mind you I am still in the first impression and having to look at many tutorials. Lots of NEAT EXAMPLES from documentation, but sometimes I got lost. I found Wolfram to be really awesome with LIST and generating list. It's almost too easy when it works visually. I cannot explain them with my own words yet, but there are