Page 1 of 1

Posted: 17 Apr 2015, 21:28
by 23fx23
Image


working on a Bezier Splines based serie of several modules (lfo/step/kick maker ect..)

This first one is somehow a remake of .Mapper Values module, but instead of having a coeff setting, the mapping is set via a bezier curve.
remaps in to out regarding max/min ranges and shape of the curve. works with arrays.

possibility to change nb of bezier points, to it will reinit the curve.

as bezier are quadratic functions, there is an inside algorithm to convert back to time domain 'linear' function based on newton's method iterative seach/approwimation, can set desired float precision and nb of iterations. while this method seemed to be the best cpu/result ratio, note it can lead to artefacts with to much tweaked input tangents.

let me know if working ok for ya.

add/on data tools

Posted: 17 Apr 2015, 22:03
by nay-seven
Whao
nice one Fox !
will be a useful module for sure

Posted: 17 Apr 2015, 22:05
by 23fx23
thx nay, yours seems very cool to gonna dl!.

i made a basic wiki if need more precisions
http://www.sensomusic.org/wiki3/doku.ph ... ier_mapper

edit i forgot: tangents are linked by defult, press Shift whille tweaking one if wanna break

Posted: 17 Apr 2015, 22:23
by nay-seven
Thanks

btw, i've edit your seealso link in the wiki page ;)

Posted: 17 Apr 2015, 22:25
by 23fx23
yeah im still a noob in wiki haha^^ will try to improve

Posted: 17 Apr 2015, 23:37
by 23fx23
found a slight bug in the way i split in multiple bezier seqments, the splitting of dots/internal is not accurate and really equal for each seqment, so that make last part of curve can behave tiny weird cause of this. sry, its fixed now but ill investigate deeper to check all and repost and updated version soon.

Posted: 18 Apr 2015, 01:36
by sephult
Very cool...I can't wait to check out, might have to harass you for some module lessons while I am at :)

-S

Posted: 18 Apr 2015, 02:27
by 23fx23
i can try to help, but honestly im really really at the early stage with lot of trial and errors, coffes/net search and long nights headaches^^ and still many obscures areas in c++ lol , that's just 3 weeks i started to get into the whole c++ / sdk thing , for exemple i had first made this module completely as a delphi script, was much easier, then i tried to convert looking at martin's great provided exemples.
think posting question here in the sdk forum area some will be bedtter advicers than me (like master martin^^) but if i know the answer of course ill help :)

Posted: 18 Apr 2015, 20:39
by 23fx23
Update 18-04-15 Re-uploaded
/////////////////////////////////////////////

_Fixed Inid bug that displays bezier now when dropping module for first time
_Fixed Bezier Function that could Lead to artefacts at the end of segment.
_Added New 'Algoritm' ListBox parameter to chose Between 2:
the old one Newton iterative search, more cpu efficient but that can behave weird with some tan settings,
Created a new one " Divide & Conquer' much more safier and accurate, but tiny more Cpu demanding.
_Increased Nb of possible max Iteration and reduced possible float precision for more accuracy if needed.
_Updated wiki

add/on data tools.
http://www.sensomusic.org/wiki3/doku.ph ... ier_mapper

Image