Sequencing samples as integers

Hi again!
I'm looking for a method of sequencing which will allow me to sequence a list of samples as a pattern of integers. This will allow me to swap samples in and out without affecting the pattern itself.
Something like:

d1 $ pattern (bd, cp, hh) ("0 0 1 [0 2] 1 0 2")

I'll try to make this the last silly question for the day. Thanks so much to everyone for their assistance.

iirc :

d1 $ s (fmap (["bd","sd","hh"]!!) $ "0 1 0 2")

There's also fit:

fit 3 ["bd", "cp", "hh"] "0 0 1 [0 2] 1 0 2"
2 Likes