SynthMaker

How to draw an unknown number of objects?

Archive · 2006 5 old posts

From the original SynthMaker forum (2004–2014), with its members’ names and dates.

dugbert ·

i'm parsing a string which contains an unknown number of draw locations, then i want to draw a line at each location

i haven't had any luck with the with the 'view loop' module (it seems to update the display in the thumbnails at the top of the screen but not in the schematic view)

but i don't want to use the view loop module because i am doing this within the parser anyway. (the loop module doesn't work for updating the display anyway, because if i move the slider too fast it sends to many triggers than it thinks an infinite loop is happening and freezes the link)

i made a display using the PALines, however it's hard to read because there isn't an option to use straight lines instead of curves.

i'm writing a midi data sequencer, so i want the peaks to be different colors if the step represents a note or CC command.

here's how it looks right now:

and here's an example of what i want to do:

infuzion ·

Not a full explaination, but some things to look at: * dasdeck's guiloop.osm uses Loop & a float array for placements * jorge's drawWave.osm

oddson ·

Until and unless the devs add a 'draw histogram' primitive you can use draw graphs to make a pretty convincing histogram of single point events if there are sufficient data points on the horizontal...

You just need to maintain an array of CC events. If you want it to scroll with time, however, that might get tricky... although the 'Graph Selection' primitive might even make that doable.

mdk ·

i dont know if this will help but i've made a scrolling graph module.

you can grab it from this schematic here :

http://relivethefuture.com/music/patche ... _graph.osm

the principle for scrolling things should be the same whichever display technique you use. I've done a similar thing to create a scrolling bitmap display as well (but the schematic is very untidy at the moment..)

dugbert ·

thanks dudes

i kind of took a short hiatus from working on this display to finish another component of the sequencer

but now i've started working on it again, here's what i've come up with: (just playing with the View Loop module, haven't integrated this idea into my project yet)

http://sense.unif.com/temp/sm_osm/pat_graph_gen.osm now if i use this with an array instead of the bus, i could have an undefined number of elements which can be toggled from a note (two blue lines) or a CC command (one red line)

should work great in theory, but i think that view loop + the custom parser is gonig to crash A LOT

Wrote something here? To have a post removed or your name hidden, write to [email protected].

Before your first post

A few rules keep this a friendly place. You agree to them once.

Shown next to what you post, here and in the app. It doesn’t have to be your real name: 3–24 lower-case letters, digits or _ (capitals become lower case, spaces become _).

    Then your post goes up straight away.

    Delete this reply?

    Open it in SynthMaker?

    It goes on the track you’re editing there, in place of that track’s sound, and into My sounds. Your other tracks stay as they are.

    Want to keep that track’s sound? Start a new song in SynthMaker first (Song › New song), then open this.

    Report this reply?

    Only the developer reads reports. The person isn’t told who reported them.

    What’s wrong with it?

    Block this person?

    You won’t see their posts and replies here any more. They aren’t told, and you can unblock them at any time.

    People you’ve blocked

    Their posts and replies are hidden from you. Unblock someone to see them again.

    The community rules

    A few rules keep this a friendly place. Everyone agrees to them once, before their first post.