Definitely!<p>Though you may already know, aligning notes to exact subdivisions of the beat is called quantization.<p><a href="https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Quantization_%28music%29" rel="nofollow">https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Quantization_%28music%29</a><p>Quantized music feels noticeably less organic and lively, to me at least. Audio sequencers like Linux&#x27;s Hydrogen give you the capability to mess with &quot;lead&quot; and &quot;lag&quot;, but it must be done individually for each note and so is fairly tedious.<p>I&#x27;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&#x27;t capture how human performers implement lead and lag.<p>I absolutely recommend pydub as an easy way to manipulate sound files.<p><a href="https:&#x2F;&#x2F;github.com&#x2F;jiaaro&#x2F;pydub" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;jiaaro&#x2F;pydub</a>