Mathias Gatti
  • home
  • archives
  • about
  • reviews

Scraping drum patterns from PDF

Pocket JSON Ops is a rhythm dictionary taken from the book Pocket Operations, which compiles different percussion rhythms.

Why we did this?

In order to use the different rhythms compiled with different livecoding languages, convert the PDF into a beautiful JSON for the modern music computer. This was generated from an HTML version, generated from the PDF, and then analyzed using the Python Beautiful Soup 4 library.

How to listen the patterns?

The dpattern2foxdot.py script contains an example of how patterns can be read and reproduced within FoxDot, Python’s live music framework.