Take the 2-minute tour ×
Music: Practice & Theory Stack Exchange is a question and answer site for musicians, students, and enthusiasts. It's 100% free, no registration required.

I'm looking for a software drum machine that's easy to work with programatically. My goal is to use this as an intelligent metronome for creating drills to practice against.

Simplistically, I want to be able to lay out a drum pattern, then be able to code against it sort of like this:


tempo = 40 while tempo <= 40 play pattern 30 times tempo = tempo + 1 end

Does anybody know of anythicn like this which already exists?

share|improve this question

closed as off topic by American Luke, Monica Cellio, Dr Mayhem, Wheat Williams, Andrew Mar 4 '13 at 21:35

Questions on Music: Practice & Theory Stack Exchange are expected to relate to music practice, performance, composition, technique, theory, or history within the scope defined by the community. Consider editing the question or leaving comments for improvement if you believe the question can be reworded to fit within the scope. Read more about reopening questions here.If this question can be reworded to fit the rules in the help center, please edit the question.

You might find the answers to this question useful. –  luser droog Jan 18 '13 at 4:52
In case you're totally lost, I'd start with a MIDI synth (like IIRC timidity but google-around you know?), and look for a midi library that lets you build sequences and dispatch them. –  luser droog Jan 18 '13 at 7:13
I would guess that pretty much all (software) drum machines and sequencers are controllable through MIDI, so using some MIDI API (for Ruby) you should be able to feed them appropriate tempo change messages at times of your choice by also listening to timing messages from the MIDI device. –  Ulf Åkerstedt Jan 18 '13 at 15:56
Per the FAQ, shopping recommendations are off-topic. –  American Luke Jan 21 '13 at 19:25

3 Answers 3

Try `beats' library(gem) of Ruby scripts. http://beatsdrummachine.com

share|improve this answer

Not exactly what you want, but perhaps useful: Midge. It creates midi files from textual description. It should be easy to use any language you want to create the text files as input for midge.

share|improve this answer

For Ruby: Archaeopteryx and Midilib

share|improve this answer
Can you explain why these would be good choices? –  American Luke Feb 13 '13 at 22:40
While this link may answer the question, it is better to include the essential parts of the answer here and provide the link for reference. Link-only answers can become invalid if the linked page changes. –  Dave Jun 7 '13 at 13:59

Not the answer you're looking for? Browse other questions tagged or ask your own question.