image thumbnail

Diffusion Music

version 1.1.0.0 (18.9 KB) by Valerio Biscione
Create and play a midi file based on several diffusion processes

274 Downloads

Updated 09 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 (2022). 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

Community Treasure Hunt

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

Start Hunting!