Diffusion Music

Create and play a midi file based on several diffusion processes
Updated 9 May 2015

View License

Have you ever wondered how a stochastic diffusion process sounds like? Here you can find the answer (spoiler: horrible!)
In the code, you can change the number of "voices" used (the num. of diff. processes), or the distribution of drift rate, starting tone , starting time, and length for each voice. Play around with this parameter and try to see if you can come up with anything reasonable. I couldn't!
thanks to the midi library by Ken Schutte http://www.kenschutte.com/midi

Cite As

Valerio Biscione (2024). Diffusion Music (https://www.mathworks.com/matlabcentral/fileexchange/50791-diffusion-music), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2014b
Compatible with any release
Platform Compatibility
Windows macOS Linux
Find more on Simulation, Tuning, and Visualization in Help Center and MATLAB Answers

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Published Release Notes