Tuesday, 12 January 2016

Automatic Breakbeat Generator -PureData

In this post we’ll create an automatic Breakbeat cutter that will play randomised selections from a sampled drum loop. We’ll also use this together with a Markov melody generator. You can hear some sample algorithmic composition output in this example and download the patch at the end of the post:

A Quick Recap
We have used objects, messages, numbers, buttons and toggles. All of these (and more) can be inserted by double clicking in a blank space or using the keyboard shortcut.
pd recap
Breakbeat Generator
We’ll now start building the breakbeat generator.
We’re going to create an automatic breakbeat generator patch. This will patch will chop up drum loops. This patch will create a breakbeat effect by chopping a sample into 8 and rather than playing straight through in order, playing:
  • 3 consecutive parts chosen from a random start point.
  • 3 consecutive parts chosen from a random start point.
  • 2 consecutive parts chosen from a random start point.
e.g. from the 8 sections of our loop, some 3+3+2 examples could include:
  • 2 3 4 / 6 7 8 / 3 4
  • 5 6 7 / 1 2 3 / 5 6
  • 4 5 6 / 2 3 4 / 6 7
  • 6 7 8 / 5 6 7 / 2 3 etc
Create this patch. This will load, play and cutup our drum loop sample.
breakbeat-pd1
Note: ‘pd’ stands for subpatch in PureData. Double click on this object and we can edit what’s inside it. Add this to the inside of the subpatch:
breakbeat-pd2
breakbeat-pd3
The breakbeat generator and markov chain generator are both connected to a toggle so they can be started at the same time.
breakbeat-pd4
You can download the patch here. Patches for older posts will also be uploaded soon.

No comments:

Post a comment