Jellevanderwerff / thebeat

thebeat: Rhythms in Python for science
https://thebeat.readthedocs.io
GNU General Public License v3.0
19 stars 1 forks source link

Rhythm.generate_random_rhythm() does deep-first search every time #52

Open Jellevanderwerff opened 6 months ago

Jellevanderwerff commented 6 months ago

Another option would be to cache a list of all the combinations of different Rhythms.

YannickJadoul commented 6 months ago

That might take up a lot of memory, though. Let's see if there's a better way of generating a random rhythm on the fly?