Hi Dan,

I had a crack based on Joe's and used this solver with your data to get
a close-enough polynomial for expr:

http://www.arachnoid.com/polysolve/

Cheers,

Chris.

On 23/10/14 06:16, Joe White wrote:
> Hey Dan,
> 
> Does the attached patch do what you want? It's a bit crude but you get
> the same graph output, I suppose you could always smooth the data if you
> didn't want it linear as well.
> 
> Cheers,
> Joe
> 
> On 22 October 2014 20:22, Jonathan Wilkes via Pd-list
> <[email protected] <mailto:[email protected]>> wrote:
> 
>     Why not just draw what you want the curve to be in an array?
> 
>     -Jonathan
> 
> 
>     On Wednesday, October 22, 2014 2:04 PM, Dan Wilcox
>     <[email protected] <mailto:[email protected]>> wrote:
> 
> 
>     Howdy all,
> 
>     I’m *almost* done with my rjlib compatible s_minimoog abstraction
>     for the rc-patches, but I need help finding the right curve for the
>     ADSR controls. I used block diagrams and the Minimoog Service Manual
>     to build the dsp chain. What I have now can give a *reasonably*
>     accurate rendition of Minimoog patches from sheets found online (ELP
>     Aquatarkus, for instance). What I did notice in comparing it to the
>     Arturia Mini V AudioUnit minimoog simulation, is that the knob
>     curves for frequency are different form what I’ve been able to do,
>     so some patches aren’t quite *right* yet. 
> 
>     Basically, I’ve tried a number of different exponential and power
>     curves but can’t get one that has the long, low slope on the low
>     end. All of my curves rise too quickly. In any case, this is a curve
>     fitting problem and this is the data I’m working with. The mapping I
>     want is 0 - 1 to 20 0 20kHz. And no, I don’t to just stick a log hsl
>     in there :D
> 
>     Any help would be appreciated so I can get this out there and start
>     using it!
> 
>     posfreq
>     0.0000
>     0.12583
>     0.250362
>     0.375456
>     0.500768
>     0.6251750
>     0.7506300
>     0.87512750
>     1.00025000
> 
> 
> 
> 
>     --------
>     Dan Wilcox
>     @danomatika
>     danomatika.com
>     robotcowboy.com
> 
> 
> 
> 
> 
> 
>     _______________________________________________
>     [email protected] mailing list
>     UNSUBSCRIBE and account-management ->
>     http://lists.puredata.info/listinfo/pd-list
> 
> 
> 
>     _______________________________________________
>     [email protected] <mailto:[email protected]> mailing list
>     UNSUBSCRIBE and account-management ->
>     http://lists.puredata.info/listinfo/pd-list
> 
> 
> 
> 
> -- 
> Follow me on Twitter @diplojocus
> 
> 
> _______________________________________________
> [email protected] mailing list
> UNSUBSCRIBE and account-management -> 
> http://lists.puredata.info/listinfo/pd-list
> 


-- 
http://mccormick.cx/
#N canvas 411 71 896 623 10;
#X obj 35 92 hsl 101 15 0 100 0 0 empty empty empty -2 -8 0 10 -262144
-1 -1 10000 1;
#X obj 35 484 hsl 128 15 0 25000 0 0 empty empty empty -2 -8 0 10 -262144
-1 -1 12692 1;
#X obj 32 391 t f;
#X obj 374 154 until;
#X obj 374 184 f;
#X obj 404 184 + 1;
#X obj 374 214 t f f;
#X obj 303 481 tabwrite array1;
#X msg 415 154 0;
#N canvas 0 50 450 278 (subpatch) 0;
#X array array1 100 float 1;
#A 0 -0.00204709 -0.000872562 0.000268955 0.00137258 0.00243388 0.00344892
0.00441421 0.00532675 0.00618398 0.00698382 0.00772469 0.00840542 0.00902536
0.00958431 0.0100825 0.0105207 0.0109002 0.0112225 0.0114898 0.0117048
0.0118705 0.0119905 0.0120688 0.0121098 0.0121185 0.0121004 0.0120613
0.0120076 0.0119462 0.0118842 0.0118296 0.0117904 0.0117755 0.011794
0.0118555 0.0119702 0.0121486 0.0124017 0.0127411 0.0131788 0.0137273
0.0143993 0.0152084 0.0161684 0.0172936 0.0185988 0.0200992 0.0218107
0.0237494 0.025932 0.0283755 0.0310977 0.0341166 0.0374507 0.0411191
0.0451413 0.0495371 0.054327 0.0595319 0.0651732 0.0712726 0.0778525
0.0849357 0.0925453 0.100705 0.109439 0.118772 0.128729 0.139336 0.150619
0.162603 0.175317 0.188788 0.203043 0.218111 0.23402 0.250801 0.268483
0.287096 0.306671 0.327239 0.348831 0.371481 0.39522 0.420081 0.446099
0.473307 0.501739 0.531431 0.562418 0.594736 0.628421 0.66351 0.70004
0.738049 0.777576 0.818658 0.861336 0.905649 0.999339;
#X coords 0 1 99 0 200 140 1 0 0;
#X restore 542 232 graph;
#X msg 374 94 100;
#X obj 359 248 / 100;
#X obj 303 456 / 25000;
#X obj 374 124 t f b;
#X obj 32 291 expr -51.1772 + 2973.21 * $f1 + -3461.46 * pow($f1 \,
2) + -23293.7 * pow($f1 \, 3) + 48816.6 * pow($f1 \, 4);
#X obj 32 112 t f f;
#X obj 32 134 / 100;
#X floatatom 139 137 5 0 0 0 - - -;
#X connect 0 0 15 0;
#X connect 2 0 1 0;
#X connect 2 0 12 0;
#X connect 3 0 4 0;
#X connect 4 0 5 0;
#X connect 4 0 6 0;
#X connect 5 0 4 1;
#X connect 6 0 11 0;
#X connect 6 1 7 1;
#X connect 8 0 4 1;
#X connect 10 0 13 0;
#X connect 11 0 14 0;
#X connect 12 0 7 0;
#X connect 13 0 3 0;
#X connect 13 1 8 0;
#X connect 14 0 2 0;
#X connect 15 0 16 0;
#X connect 15 1 7 1;
#X connect 15 1 17 0;
#X connect 16 0 14 0;
_______________________________________________
[email protected] mailing list
UNSUBSCRIBE and account-management -> 
http://lists.puredata.info/listinfo/pd-list

Reply via email to