A randomized drum machine.
Play non-repeating drum beats.
This can be used for:
sdl2_image
and sdl2_mixer
)make run
.pkg-config
make
Tested on Arch Linux and macOS.
make
.Press r
to randomize the samples.
Press p
to pause toggle (try holding it down for an interesting effect).
Press space
to toggle pause, with a 200ms fade-out.
Press esc
to quit.
Press a
to play a kick drum sound.
Press w
or f
to play a snare sound.
Press d
to play a crash sound.
Press s
to play a closed hi-hat sound.
Press q
to play a tom sound.
Press e
to play a ride sound.
Press x
to play an open hi-hat sound.
Press return
to play a snare sound with a tiny bit of delay added.
Press m
to increase the tempo.
Press n
to decrease the tempo.
Press y
to use the current settings, don't change the samples.
Press i
to toggle "random beat skip".
Press j
to toggle "use random beat silence".
Press o
to output the current sample indices.
Note that playing too many sounds at the same time does not always work.