Changing Individual Values in a Pattern (through a GUI)?

I’m trying to change individual values within a Pseq. Next to the ‘amp2’ argument, there are two Pseq’s that play. I would like to change the 0’s and 1’s, being able to choose which value I like within that “slot”, either a 0 or a 1. Is it possible to make a button GUI so I can change each individual number? I’d appreciate any help.

(
Pbind(
\instrument, \bufferlooper2,
\buf, ~a,
\start, 0,
\end, 28800,
\f, 0.3,
\dur, 1/16,
\rate, 0.midiratio,
\stretch, 2.0,
\pos, 0,
\amp2, Pseq([Pseq([1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0], 1), Pseq([1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0], 1)], inf),
).play(t, quant:4);
)

Simply for 0 or 1 amps you have there, I think there was some kind of “check-box gui sequencer” that someone made, but alas I don’t remember right now what it was called.

Is it this: https://doc.sccode.org/Classes/CheckBox.html ?

That’s the gui class, someone wrote a crude drum-like sequencer using that, but I can’t remember whom did it or what it was called. (I think it was in a academic paper that I saw it.)

Actually you are in luck, I didn’t have that many pdf files downloaded recently at it was among them:

SC-HACKS: A LIVE CODING FRAMEWORK FOR GESTURAL PERFORMANCE AND
ELECTRONIC MUSIC by Iannis Zannos

I’m not sure if this Sc-hacks is available for download somewhere though. Might wanna contact its author. http://lac.linuxaudio.org/2019/doc/zannos.pdf

The code is actually on github, so happy hacking