I'm trying to use midi controllers with the slice function. I'd like to use different knobs to control:
(1) which sample to slice
(2) the amount of slices
(3) which slice is played
(4) the speed of playback
(5) the gain
d1 $ fast ((segment 1 $ cT 1 "4") * 8) $ slice (segment 1 $ range 1 8 $ cI 0 "2") (segment 1 $ range 1 8 (cI 0 "3"))
$ s "break" # n (segment 1 $ range 1 16 $ cN 0 "1")
# gain (segment 1 $ range 0 2 $ cF 1 "5")
I had used midi before so I was familiar with (5) cF for gain. It took me a long time to figure out that (1) needs cN, (4) needs cT. But I can't get (2) and (3) to work in the above code. I'm not getting an error, it just seems there's only 2 states: either 8 when the knob is almost all the way up and 1 when the knob is in any other position. What am I doing wrong? Am I not understanding how cI works ??