Welcome to %s forums

BrainModular Users Forum

Login Register

Bezier_Mapper

Discussions about add-ons, announcements
Post Reply
23fx23
Member
Posts: 2545
Contact:

Unread post by 23fx23 » 17 Apr 2015, 21:28

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

User avatar
nay-seven
Site Admin
Posts: 5684
Location: rennes France
Contact:

Unread post by nay-seven » 17 Apr 2015, 22:03

Whao
nice one Fox !
will be a useful module for sure

23fx23
Member
Posts: 2545
Contact:

Unread post by 23fx23 » 17 Apr 2015, 22:05

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

User avatar
nay-seven
Site Admin
Posts: 5684
Location: rennes France
Contact:

Unread post by nay-seven » 17 Apr 2015, 22:23

Thanks

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

23fx23
Member
Posts: 2545
Contact:

Unread post by 23fx23 » 17 Apr 2015, 22:25

yeah im still a noob in wiki haha^^ will try to improve

23fx23
Member
Posts: 2545
Contact:

Unread post by 23fx23 » 17 Apr 2015, 23:37

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.

sephult
Member
Posts: 1144
Contact:

Unread post by sephult » 18 Apr 2015, 01:36

Very cool...I can't wait to check out, might have to harass you for some module lessons while I am at :)

-S
"Every act of creation is first an act of destruction." -Picasso

23fx23
Member
Posts: 2545
Contact:

Unread post by 23fx23 » 18 Apr 2015, 02:27

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 :)

23fx23
Member
Posts: 2545
Contact:

Unread post by 23fx23 » 18 Apr 2015, 20:39

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

Post Reply

Who is online

Users browsing this forum: No registered users and 8 guests