Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Definitely!

Though you may already know, aligning notes to exact subdivisions of the beat is called quantization.

https://en.wikipedia.org/wiki/Quantization_%28music%29

Quantized music feels noticeably less organic and lively, to me at least. Audio sequencers like Linux's Hydrogen give you the capability to mess with "lead" and "lag", but it must be done individually for each note and so is fairly tedious.

I've used the Python module pydub along with a random number generator to set samples slightly ajar, but, while it helps, a purely random approach doesn't capture how human performers implement lead and lag.

I absolutely recommend pydub as an easy way to manipulate sound files.

https://github.com/jiaaro/pydub



Thanks for the info, pydub looks nice! And I suppose that when you have music represented by a text file, as is the case in Alda, you can then use other programs to operate on the text file (for example, you could probably write a script to vary note/rest lenghts a bit using the quant attribute).




Consider applying for YC's Summer 2026 batch! Applications are open till May 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: