Skip to content

Pattern: PDict

Construct a pattern from a dict of arrays, or an array of dicts.

The below are equivalent: PDict([ { "note" : 60, "velocity" : 64 }, { "note" : 67, "velocity" : 32 }, ... ]) PDict({ "note" : [ 60, 67 ], "velocity" : [ 64, 32 ]}) Thanks to Dan Stowell http://www.mcld.co.uk/