Diffusion Music
Version 1.1.0.0 (18.9 KB) by
Valerio Biscione
Create and play a midi file based on several diffusion processes
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 (2026). Diffusion Music (https://uk.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 LinuxCategories
Find more on Simulation, Tuning, and Visualization in Help Center and MATLAB Answers
Tags
Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
