Binary sequencer with data structures Re: Input binary values by mouse
Simon Iten <[email protected]> Thu, 19 Feb 2026 18:30:51 +0100
| Newsgroups | gmane.comp.multimedia.puredata.general |
|---|---|
| Message-ID | <[email protected]> |
I had a go with data-structures and hacked something up with the great examples in the PD help (particularly 04.append.pd and 09.sequencer.pd from 4. data.structures). Find attached my WIP I am struggling to get the duration of the sequences right. If somebody with knowledge of data-structures, and the examples could have a look I would be very thankful. Currently I just have two „lanes“ of data, each lane triggering an oscillator on and off, this is just for debugging. What works: The UI for the most part, but I am not sure if my „trick“ with forcing the y position of segments is advisable. The onset of segments is correct and the tempo can be adjusted correctly What does not work: -the duration (length of drawn segments in my UI) is not exactly linked to the sequenced time. Hence an overlapping segment in the UI can still cut-off before the next segment begins or vice versa. It depends on the tempo that is set. I am not sure how I can link the length of the bars (the z variable in my struct) to the time set by the tempo numbox. The delay simply delays the next pointer lookup, which is the next start of an event. I somehow need to link the length of the polygon drawn at that pointer to the delay. In my first attempt I simply multiplied the length by the delay-time (as in the rest of the sequencer patch) but that does not work correctly. -I would like to implement a timeline i.e. a hslider that increments position along the x axis, but again I have no idea how I would link the time set by the numberbox to the position so it actually corresponds to the drawn polygons… It could also well be that this is not possible this way, then a short message would also be great :) Thanks Simon > Am 18.02.2026 um 23:20 schrieb Simon Iten <[email protected]>: > > Hi list, > > I am looking for a way to input binary values via mouse input. > > Basically I want a sequencer like structure to turn on and off a bunch of relays on a RPI. > > It would be nice to use something like an array for each output, so the user can draw in the state of the output over time. > > For that it would be great to only allow inputs that are: > > 1) in range (so mouse-movement outside the object does not draw outside the visible array, but constrains to the max or min) > 2) round the values to only integer input, in my case 0 and 1. > > An array would be nice since it would allow very fast (no clicking needed) entry of many points and the state of each output would immediately be visible… > > Maybe there is some external that allows something like that? > > Thanks for any hints > > --- [email protected] - the Pure Data mailinglist https://lists.iem.at/hyperkitty/list/[email protected]/message/3GSEBM3ODAGK3ZMDNDJ75NPBPZ7X4SBK/ To unsubscribe send an email to [email protected] mailing list UNSUBSCRIBE and account-management -> https://lists.iem.at/
binarysequencer.pd
(application/octet-stream, 8.8 KB) - not displayed