Just last night I hacked together a pattern reading script which is built on jah/stepmod.lua but I am handling the patterns by reading from a data file.
In short - it pre-loads a patterning into step.
I’ve got something mostly working with known drum samples in common/ and using a data text file formatted like this:
Pattern|TheFunkyDrummer
808-BD.wav|1,0,1,0,0,0,1,0,0,0,1,0,0,1,0,0
808-SD.wav|0,0,0,0,1,0,0,1,0,1,0,1,1,0,0,1
808-CH.wav|1,1,1,1,1,1,1,0,1,1,1,1,1,0,1,1
808-OH.wav|0,0,0,0,0,0,0,1,0,0,0,0,0,1,0,0
When the script loads, all the patterns get split read into a big array - ideally I can make a way to select the patterns.
The patterns load into the grid step sequencer and you can then change the patterns from the grid as you would normally with step.lua
I went this was because I was pretty confused by @jah 's bitwise operations/number storing and I thought it’d be easier to read a pattern with a set of 0’s and 1’s.
Saving and loading patterns by name are my next tasks.
EDIT - I asked this over in the scripting thread, but I’ll ask here too:
What kind of data can be stored with params:set()?
I could not figure out how to store a string. The docs could use some more love in this area.