Fork me on GitHub
#overtone
<
2019-01-10
>
Eric Clack16:01:48

I'm defining drum loops like this (thanks @ericcervin for the suggestion):

;; Lists of name, num-beats, instrument and amplitudes, 0=mute
(defloop hats   8 hat   [0    0.5  0    0.5  0    0.5   0    0.5])
(defloop kicks  8 kick  [0.7  0    0.2  0    0.7  0.6   0.2  0  ])
But any ideas on how I could support fractional beats? The classic example would be a kick and hat alternating, with the kick on each beat and the hat on the off-beats.

Eric Ervin00:01:46

You use modular synths? My first though is a clock divider. Scanning through the cheat sheet I think pulse-divider looks promising

Eric Clack12:01:40

I was thinking about something like this: (defloop hats (4 2) hat [0 0.5 0 0.5 0 0.5 0 0.5]) where (4 2) means 4 beats in a bar and the data is in half beats.

Eric Clack12:01:04

Or (defloop hats (4 1/2) hat [0 0.5 0 0.5 0 0.5 0 0.5])

Eric Clack12:01:15

Or (defloop hats 4 hat [(0 0.5) (0 0.5) (0.05) (0 0.5)]) where each tuple represents fractions of each beat. So you could also have (defloop kicks 4 kick [1 1 1 1]) for basic on-beat kick.

Eric Ervin21:01:35

I think I'd use something like (defloop hats 0.5 hat [0 0.5 0 0.5 0 0.5 0 0.5])

Eric Clack16:01:59

That's the clearest format I think. I need to include the 4 too as that's the number of beats in each bar.

Eric Clack19:01:29

Here's where I am at the moment, I decided to try both syntaxes 🙂 https://groups.google.com/d/msg/overtone/1nJi8UIduJk/_7e07QywDwAJ

Eric Ervin21:01:35

Hmm....Thinking about how this is laid out on my drum machine, a copy of a TR909. I guess including the 4 is useful to specify what is the "scale" on my machine. Set that to 3 if I want to work with triplets.

giles b16:01:53

super delayed response, but you might get some mileage from some of my repos and posts: https://github.com/gilesbowkett/basic-beat https://github.com/gilesbowkett/arx https://truthindustri.es

Eric Ervin21:01:47

Hmm...just saw something I didn't see the last time I was in your github. Stared for later.

Eric Clack18:01:08

Thanks @UCT58CS1E I'll check those repos out.