One thing that could be great for experiments is Eurorack modules. There are I feel about thousand modules for drum patterns - Euclidean (like https://modulargrid.net/e/vpme-de-euclidean-circles-v2- ), but also plenty others, starting from Mutable Instrument Grids (https://modulargrid.net/e/mutable-instruments-grids). I think it's a much faster way to hands-on experiment than writing code. Also with Eurorack the only interface between modules is analog voltage which means clock, triggers, pulses, low frequency and audio frequency can be freely mixed (a common way to abuse this is to generate lower frequency audio using clock dividers, /2 from 800Hz audio gives you 400Hz square wave etc).
Ah and most of that can be also explored without a physical rack using VCVRack.