demo video of my ds-noteeditor:
-
purr-data: ds-noteeditor
-
ups, wrong forum section, sorry. should be moved to output~. thanks
-
2nd demo video of noteeditor.
@jancsika
It's a pitty that {setsize] of ds-arrays is slow. -
Oh, I had [setsize] triggered from a counter in an [until] loop. That was why the Gui-updating was so slow.
Fixed that now as you can see in my new demo video. -
I just added note-off events to my noteeditor. Now note events can have variable lenght. Time for a new demo video .
-
Nice.
When you click on a cell are you creating a new scalar/array element?
-
Yes exactly. The gridlines themselves are made of an array of lines. So I grab x/y from a big rectangle and then quantize the array-elements for note events to the grid. Every click [setsize] of the array is called. Moreover I use a combination of [text] and [cyclone/coll] for sequencing. [coll] mainly because it has a built-in sorting and renumber function.
I want to add velocity too, Then I will share the patch. -
@sensn One possibility is to use [setsize] at load time to load the maximum number of elements that can be used in the grid. Keep them out of view until the user clicks on the grid.
That way you don't get a performance penalty in Pd and the GUI for creating a new datum.
-
I was thinking about this possibilty, but for now I'm just glad it works. I added note-velocity, now i need to try to clean up the patch.... then I want to turn it into an abstraction for multiple channels. Thats gotta be some work.
So here is another demo video with note-velocity: