hey hey!
not at all – when playing Molly the Polly with a grid, there’s a fixed velocity value (0.8 out of 1.0, which translates to ~102 velocity).
the grid is just calling this function directly and the function’s code handles note_on and note_off. the note number (note_num) is dynamically assigned when you press a pad, but the second value (0.8) could also be dynamic – you just need to tell the script how you’d like to assign that value.
i’m really sorry to hear about the nerve damage – I think we can totally land on an accessible solution, depending on your comfort level (I’m happy to work on modifying code with you, if that’d help
).
you already identified a really good way to dynamically assign velocity – you could connect a USB expression pedal and add a small function to the script that listens to the CC messages generated by the pedal, scale them down (Molly requires 0. to 1.), and assign them to a variable that replaces the fixed 0.8 argument in the grid-generated note_on function.
i think it comes down to your preference – is a footpedal your most desirable solution? i also have some ideas about how we could change the grid interface to create a smaller playable zone on one side with some meta controls for velocity + octave assignment on the other. lemme know how you’re feeling!