Support

If you have a problem or need to report a bug please email : support@dsprobotics.com

There are 3 sections to this support area:

DOWNLOADS: access to product manuals, support files and drivers

HELP & INFORMATION: tutorials and example files for learning or finding pre-made modules for your projects

USER FORUMS: meet with other users and exchange ideas, you can also get help and assistance here

NEW REGISTRATIONS - please contact us if you wish to register on the forum

ultimate shape editor (workflow)

For general discussion related FlowStone

ultimate shape editor (workflow)

Postby tester » Mon Sep 12, 2022 2:01 pm

I'm building a shape editor for one of my projects, and... Well, over the years (a decade or so), I saw many interesting concepts, solutions and ideas that could fit in. For some of them - I don't remember the keywords that would allow to find something that was already done in FS. So, what I'd like to ask - let's gather here various links, that direct to specific solutions, that were created and used somewhere. I will put some modules too, if I find them in my history.

For now, my basic concept will include following topics, for which I'd like to find and/or make elegant solutions.

drawing modes:

- Free draw curve. I don't know if here could be something creative. Maybe (as an on/off option) some delayed curving on the line, that follows the pointer, so that the line is continuous, not so shaky.

- Step draw (like on step lfo or fft editor). Inputs: qty of step, external aray of amplitudes. Outputs: array or scaled array, on/off smoothing?

- spline curves: Then input ary is loaded, and on that graph - points can be added and curves modelled. Inputs: some ary for control points points, so that these could be loaded/directed externally. Basically it's something that often was used in filters, I guess.

non-drawing modes:
- morphing and mixing shapes.
- batch text converter (normalization of values, splitting if these come from single text).
- bitmap to graph
- audio capture
- some numeric way

other?

apart from that, I'm going to add some randomizers for each mode and symmetrization routines.
Last edited by tester on Sat Oct 08, 2022 10:50 am, edited 1 time in total.
Need to take a break? I have something right for you.
Feel free to donate. Thank you for your contribution.
tester
 
Posts: 1786
Joined: Wed Jan 18, 2012 10:52 pm
Location: Poland, internet

Re: ultimate shape editor (workflow)

Postby tester » Mon Sep 12, 2022 10:23 pm

My sarting point.
It's just a sketch of a part of a sketch, nothing real inside yet.

// v2
notes on where it's going, some initial adjustments

// v3
some more resources included

// v4
added some goodies, specified some specs, and started wiring few wires.

// v7
conceptual mockup continues plus some adjustments

// v15
conceptual gui is mostly finished, started some initial wirings.
stepdrawer is replaced by green version due to some ruby issues.
converting graphs to arrays (composite version) and sonification of photos on RGBSV composite channels is mostly complete

// v18
initial works on audio capture (live audio capture modules are ready) for wavecycle and FFT graph output
FreeDraw (optimized green) is ready
initial works on symmetrized editor (stepdraw implementation for testing)
and some minor adjustments

// v20
most of the guts to the batch processor added
most of the guts to the math processor added
Attachments
_shapeeditor-020.fsm
(376.16 KiB) Downloaded 315 times
Last edited by tester on Sun Oct 16, 2022 9:20 pm, edited 8 times in total.
Need to take a break? I have something right for you.
Feel free to donate. Thank you for your contribution.
tester
 
Posts: 1786
Joined: Wed Jan 18, 2012 10:52 pm
Location: Poland, internet

Re: ultimate shape editor (workflow)

Postby tester » Tue Sep 13, 2022 11:36 am

From what I see for now, I may have a problem with CurveEditor (last one). I found this one, but it's not exactly what I look for.

Does anyone have such graph editor, but:
- with editable nodes around points (I think filters ofter have these), like in vector apps
- with externalized (as inputs and outputs) coordinates of points and curve controls? (this is most important here)
?
Last edited by tester on Sat Oct 08, 2022 10:51 am, edited 1 time in total.
Need to take a break? I have something right for you.
Feel free to donate. Thank you for your contribution.
tester
 
Posts: 1786
Joined: Wed Jan 18, 2012 10:52 pm
Location: Poland, internet

Re: ultimate shape editor (workflow)

Postby tulamide » Tue Sep 13, 2022 1:50 pm

tester wrote:Does anyone have such graph editor, but:
- with editable nodes around points (I think filters ofter have these), like in vector apps
- with externalized (as inputs and outputs) coordinates of points and curve controls? (this is most important here)
?

For 2 months or so I am working on a spline graph editor for a project, based on my spline class. You could use that class as well. It offers everything you need to draw splines, including output of coordinates as arrays in any length, or form. You are also free to make any changes to the library, as you need.

http://www.dsprobotics.com/support/viewtopic.php?f=3&t=2890&hilit=spline+class
"There lies the dog buried" (German saying translated literally)
tulamide
 
Posts: 2686
Joined: Sat Jun 21, 2014 2:48 pm
Location: Germany

Re: ultimate shape editor (workflow)

Postby Tepeix » Tue Sep 13, 2022 3:27 pm

Here's some interpolation/smoothing of array.

The tool is a little experimental but seams to work fine ;)

(Not sure that the loop end option will make a good wavetable.. But maybe ?
It try to interpolate with the loop end, but maybe it's better that the array has already the same first and last value ?)

(bias and tension are for the Hermite interpolation)
Attachments
Array interpolate smooth.fsm
(23.2 KiB) Downloaded 345 times
Tepeix
 
Posts: 350
Joined: Sat Oct 16, 2021 3:11 pm

Re: ultimate shape editor (workflow)

Postby tester » Tue Sep 13, 2022 10:52 pm

Tepeix - thanks.
Is there a ruby version for this?
on 4k arrays this one seems to be relatively slow.

tulamide - thanks.
But I'm afraid, making such fellow drawer from scratch is beyond my ruby skills (and free time).
I'm guessing you don't have a working (vector, no gui) template for CurveDraw equivalent with externalized coordinate in/outs?
Need to take a break? I have something right for you.
Feel free to donate. Thank you for your contribution.
tester
 
Posts: 1786
Joined: Wed Jan 18, 2012 10:52 pm
Location: Poland, internet

Re: ultimate shape editor (workflow)

Postby tester » Wed Sep 14, 2022 10:21 am

Universal Randomizer concept - base form.

There are two domains: rnd values and rnd spread.

Domain 1: RND values:
- set multiple ranges (how many samples in 1-st minmax range, how many samples in 2nd-minmax range, etc)
- set min/max per each range above
* 3 graph overlays, 5 editboxes

After each range is generated, there are 3 options - append all ranges, and: randomize list, sort ascending, sort descending.

Domain 2: RND spread:
- set ranges (time steps, from a to b, from b to c, and so on)
- spread per each range above (how many samples or steps/groups, randomly chosen in a range - are randomized with RND values; other ones remain untouched)
* 1 graph overlay, 3 editboxes
Last edited by tester on Sat Oct 08, 2022 10:51 am, edited 1 time in total.
Need to take a break? I have something right for you.
Feel free to donate. Thank you for your contribution.
tester
 
Posts: 1786
Joined: Wed Jan 18, 2012 10:52 pm
Location: Poland, internet

Re: ultimate shape editor (workflow)

Postby tulamide » Wed Sep 14, 2022 1:26 pm

tester wrote:tulamide - thanks.
But I'm afraid, making such fellow drawer from scratch is beyond my ruby skills (and free time).
I'm guessing you don't have a working (vector, no gui) template for CurveDraw equivalent with externalized coordinate in/outs?

A fully featured one, no. But the provided example schematics provide you with a template. Give it a try. It really is made as easy as possible. You just add nodes to the spline and tell it to draw and/or send an array. It's as easy as this:

Code: Select all
s = Spline.new
s.addNode(some x value, some y value)
...
s.draw(view to draw to)
myarray = s.send(look at pdf to see options to tell send, what array you like to have)
"There lies the dog buried" (German saying translated literally)
tulamide
 
Posts: 2686
Joined: Sat Jun 21, 2014 2:48 pm
Location: Germany

Re: ultimate shape editor (workflow)

Postby tester » Wed Sep 14, 2022 11:15 pm

"Don't ask the cook to be an electrical engineer or vice versa".

Ruby is for ruby writers, not for concept designers. While I can re-edit to some degree an existing program, don't expect me to know how to write one from scratch. It doesn't work that way. People are not abstract constructs. To put it simply, not all assumptions which are logically correct - can or will fit the reality.

Besides, I have approx 2 weeks or so, to make this projects, then only time for small adjustments, not for heavy thinking.
Need to take a break? I have something right for you.
Feel free to donate. Thank you for your contribution.
tester
 
Posts: 1786
Joined: Wed Jan 18, 2012 10:52 pm
Location: Poland, internet

Re: ultimate shape editor (workflow)

Postby Tepeix » Thu Sep 15, 2022 2:22 pm

Hum as said my module is a little experimental.. And i don't know how to rubyfy it..

I spot a little problem, there's a sort of shift that appear at the end like the result seams to read 1 sample later.
Maybe not so bad in some situation ? I did not try yet the end loop too (if it sound right).

For the speed are you sure that you really need 4000k ?
I was making an array reader with 4000k in mind, but finally i go to 512 and it seams ok.

They must be some way to make it a little faster.. But would it really be a lot better ?
- if you know which part of the array change, it must be possible to only calculate for those..

- Maybe it would be better if it doesn't try to do all the array in one cycle,
like 0-127 then 128 to 255 then 256 to 383 ... ...
But even like this, i don't know if it could interrupt some sound if they are present...
(Which could be acceptable as the user don't attempt the possibility to change those option live)

Maybe one another way could be to do this in blue... :o :(
But needing to use mem address... which is hard..
Or maybe a blend of the last array to the new one when it's done ?
Tepeix
 
Posts: 350
Joined: Sat Oct 16, 2021 3:11 pm

Next

Return to General

Who is online

Users browsing this forum: No registered users and 47 guests