to infinity and beyond (Re: ArtsCompressor state)



On Tue, 7 Sep 2004, Stefan Westerfeld wrote:

> There is no scale in beast currently which allows infinity on it,
> currently, though. Maybe 100 or 20 is a good enough approximation for
> infinity in practice.

i'm not sure what "infinity" is here. suppose you have a scale ranging
from +12 to -96 (dB), do you:

a) want the GUI to only do s/-96/-oo/ ?
   (this could easily be done with a property hint)

b) want the GUI to provide a normal slider intervall [+12,-96[ but at
   position -96 display -oo and pass -G_MAXDOUBLE to the module?
   (this would better be done by (a) and implementing the
   -96 => -oo substitution in the module)

c) want the GUI to do a *real* interpolation to oo? say we subtitute
   "only" 1000 for oo: we still get major oscillations. i have attached
   two files with spline interpolations of the given fix point sets:
   oo-ymil.dots: pixels / dB:
     {0,12}, {1,6}, {2,3}, {3,0}, {4,-3}, {5,-6}, {6,-12}, {7,-24}, {8,-48}, {9,-96}, {10,-1000}
   oo-xmil.dots: dB / pixels (this is what our dB scales actually use):
     {12,0}, {6,1}, {3,2}, {0,3}, {-3,4}, {-6,5}, {-12,6}, {-24,7}, {-48,8}, {-96,9}, {-1000,10}
   you can view them with:
   $ echo 'plot "oo-ymil.dots"; pause 300' | gnuplot -
   $ echo 'plot "oo-xmil.dots"; pause 300' | gnuplot -
   the oscillation here basically means that you can't find a continuous
   monotonic transition to such large values anymore. you can help that
   dilemma by lengthening the last segment that transitions to oo (in
   this case, to transition from -96 to -1000, 3 to 4 extra segments
   suffice), but the larger the value you substitute for oo is, the
   more extra segments you need, leaving you with scales like:
     {0,0}, {1,-25e-4}, {2,-50e-4}, {3,-75e-4}, {4,-1e-6}
   to fade to just a million, i.e. you spend all your scale estate fading
   to oo, far beyond the interesting range of +48 to -96.


as a consequence, beast currently supplies a usable scale down to a comparatively
small dB value (most dB scales out there don't actually scale down to -96), but
doesn't cheat by simply displaying "-96" as "-oo".


> Comments? Thoughts? Ideas?
>
>     Cu... Stefan

---
ciaoTJ
+0                       +12                     
+0.0500000000000000028   +11.6603138498242096    
+0.100000000000000006    +11.3212244838615881    
+0.149999999999999994    +10.9833286863253061    
+0.200000000000000011    +10.6472232414285326    
+0.25                    +10.31350493338444      
+0.299999999999999989    +9.9827705464061971     
+0.349999999999999978    +9.65561686470697111    
+0.400000000000000022    +9.33264067249993268    
+0.450000000000000011    +9.01443875399825423    
+0.5                     +8.70160789341510466    
+0.550000000000000044    +8.39474487496365285    
+0.599999999999999978    +8.09444648285706769    
+0.650000000000000022    +7.80130950130851897    
+0.699999999999999956    +7.51593071453118       
+0.75                    +7.23890690673821702    
+0.800000000000000044    +6.97083486214280068    
+0.849999999999999978    +6.71231136495810077    
+0.900000000000000022    +6.46393319939728794    
+0.949999999999999956    +6.2262971496735311     
+1                       +6                      
+1.05000000000000004     +5.78541675037669467    
+1.10000000000000009     +5.58203526395093697    
+1.14999999999999991     +5.38912161965687719    
+1.19999999999999996     +5.20594189642866656    
+1.25                    +5.03176217320045449    
+1.30000000000000004     +4.86584852890639397    
+1.35000000000000009     +4.70746704248063619    
+1.39999999999999991     +4.55588379285733236    
+1.44999999999999996     +4.41036485897063102    
+1.5                     +4.27017631975468515    
+1.55000000000000004     +4.13458425414364594    
+1.60000000000000009     +4.00285474107166461    
+1.64999999999999991     +3.87425385947289147    
+1.69999999999999996     +3.74804768828147727    
+1.75                    +3.62350230643157367    
+1.80000000000000004     +3.49988379285733142    
+1.85000000000000009     +3.37645822649290217    
+1.89999999999999991     +3.25249168627243668    
+1.94999999999999996     +3.1272502511300857     
+2                       +3                      
+2.04999999999999982     +2.87014414866901113    
+2.10000000000000009     +2.73763446033466362    
+2.14999999999999991     +2.60255983504718635    
+2.20000000000000018     +2.46500917285680243    
+2.25                    +2.32507137381374074    
+2.29999999999999982     +2.18283533796822615    
+2.35000000000000009     +2.03838996537048267    
+2.39999999999999991     +1.89182415607073962    
+2.45000000000000018     +1.74322681011922009    
+2.5                     +1.59268682756615299    
+2.54999999999999982     +1.44029310846176273    
+2.60000000000000009     +1.28613455285627398    
+2.64999999999999991     +1.13030006079991563    
+2.70000000000000018     +0.972878532342910995   
+2.75                    +0.813958867535488628   
+2.79999999999999982     +0.65362996642787341    
+2.85000000000000009     +0.491980729070289724   
+2.89999999999999991     +0.329100055512966505   
+2.95000000000000018     +0.165076845806126998   
+3                       +0                      
+3.04999999999999982     -0.165993345052736718   
+3.10000000000000009     -0.332573105289592941   
+3.14999999999999991     -0.499360959845620789   
+3.20000000000000018     -0.665978587855878379   
+3.25                    -0.832047668455417777   
+3.29999999999999982     -0.997189880779295712   
+3.35000000000000009     -1.16102690396256869    
+3.39999999999999991     -1.323180417140289      
+3.45000000000000018     -1.48327209944751437    
+3.5                     -1.64092363001929731    
+3.54999999999999982     -1.79575668799069432    
+3.60000000000000009     -1.94739295249676192    
+3.64999999999999991     -2.09545410267255239    
+3.70000000000000018     -2.23956181765312357    
+3.75                    -2.37933777657352818    
+3.79999999999999982     -2.51440365856882231    
+3.85000000000000009     -2.64438114277406244    
+3.89999999999999991     -2.7688919083243011     
+3.95000000000000018     -2.88755763435459611    
+4                       -3                      
+4.04999999999999982     -3.10617076845806084    
+4.09999999999999964     -3.20734203917629257    
+4.15000000000000036     -3.30511599566470249    
+4.20000000000000018     -3.40109482143329211    
+4.25                    -3.49688069999206963    
+4.29999999999999982     -3.59407581485104011    
+4.34999999999999964     -3.69428234952020862    
+4.40000000000000036     -3.79910248750958335    
+4.45000000000000018     -3.91013841232916581    
+4.5                     -4.02899230748896375    
+4.54999999999999982     -4.15726635649898224    
+4.59999999999999964     -4.29656274286922635    
+4.65000000000000036     -4.44848365010970515    
+4.70000000000000018     -4.61463126173041882    
+4.75                    -4.79660776124137556    
+4.79999999999999982     -4.99601533215258087    
+4.84999999999999964     -5.21445615797403939    
+4.90000000000000036     -5.45353242221576195    
+4.95000000000000018     -5.7148463083877461     
+5                       -6                      
+5.04999999999999982     -6.30969858111501658    
+5.09999999999999964     -6.64105873800523128    
+5.15000000000000036     -6.99030005749557493    
+5.20000000000000018     -7.35364212641095616    
+5.25                    -7.72730453157630404    
+5.29999999999999982     -8.10750685981654051    
+5.34999999999999964     -8.49046869795659198    
+5.40000000000000036     -8.87240963282138217    
+5.45000000000000018     -9.24954925123582505    
+5.5                     -9.61810714002484879    
+5.54999999999999982     -9.97430288601337445    
+5.59999999999999964     -10.3143560760263266    
+5.65000000000000036     -10.6344862968886318    
+5.70000000000000018     -10.9309131354252038    
+5.75                    -11.1998561784609691    
+5.79999999999999982     -11.4375350128208506    
+5.84999999999999964     -11.6401692253297728    
+5.90000000000000036     -11.8039784028126586    
+5.95000000000000018     -11.9251821320944256    
+6                       -12                     
+6.04999999999999982     -12.0279099070818685    
+6.09999999999999964     -12.0214230088027705    
+6.15000000000000036     -11.9963087743530092    
+6.20000000000000018     -11.9683366729228897    
+6.25                    -11.9532761737027151    
+6.29999999999999982     -11.9668967458827886    
+6.34999999999999964     -12.0249678586534134    
+6.40000000000000036     -12.1432589812048981    
+6.45000000000000018     -12.3375395827275387    
+6.5                     -12.623579132411642     
+6.54999999999999982     -13.0171470994475129    
+6.59999999999999964     -13.5340129530254529    
+6.65000000000000036     -14.1899461623357794    
+6.70000000000000018     -15.0007161965687743    
+6.75                    -15.9820925249147479    
+6.79999999999999982     -17.1498446165640068    
+6.84999999999999964     -18.5197419407068544    
+6.90000000000000036     -20.1075539665336258    
+6.95000000000000018     -21.9290501632345638    
+7                       -24                     
+7.04999999999999982     -26.3244117905575017    
+7.09999999999999964     -28.8592492267836676    
+7.15000000000000036     -31.5497148450924101    
+7.20000000000000018     -34.3410111818974926    
+7.25                    -37.1783407736128382    
+7.29999999999999982     -40.0069061566522919    
+7.34999999999999964     -42.7719098674297271    
+7.40000000000000036     -45.4185544423590528    
+7.45000000000000018     -47.8920424178540358    
+7.5                     -50.1375763303285851    
+7.54999999999999982     -52.1003587161965598    
+7.59999999999999964     -53.7255921118718334    
+7.65000000000000036     -54.9584790537682792    
+7.70000000000000018     -55.7442220782997211    
+7.75                    -56.0280237218800394    
+7.79999999999999982     -55.7550865209231006    
+7.84999999999999964     -54.8706130118427708    
+7.90000000000000036     -53.319805731052881     
+7.95000000000000018     -51.04786721496734      
+8                       -48                     
+8.05000000000000071     -44.1659429306880398    
+8.09999999999999964     -39.7135800840625279    
+8.15000000000000036     -34.8553318452773979    
+8.19999999999999929     -29.8036185994872405    
+8.25                    -24.7708607318459393    
+8.30000000000000071     -19.9694786275079323    
+8.34999999999999964     -15.6118926716276185    
+8.40000000000000036     -11.9105232493589366    
+8.44999999999999929     -9.07779074585638845    
+8.5                     -7.32611554627402484    
+8.55000000000000071     -6.86791803576621707    
+8.59999999999999964     -7.91561859948715529    
+8.65000000000000036     -10.6816376225911629    
+8.69999999999999929     -15.3783954902322826    
+8.75                    -22.218312587565098     
+8.80000000000000071     -31.4138092997437326    
+8.84999999999999964     -43.1773060119219778    
+8.90000000000000036     -57.7212231092549217    
+8.94999999999999929     -75.2579809768957659    
+9                       -96                     
+9.05000000000000071     -120.095816486690467    
+9.09999999999999964     -147.438430436966144    
+9.15000000000000036     -177.856957773798115    
+9.19999999999999929     -211.180514420153372    
+9.25                    -247.238216299003426    
+9.30000000000000071     -285.859179333316263    
+9.34999999999999964     -326.872519446059584    
+9.40000000000000036     -370.10735256020547     
+9.44999999999999929     -415.392794598719888    
+9.5                     -462.557961484575344    
+9.55000000000000071     -511.431969140739284    
+9.59999999999999964     -561.843933490179097    
+9.65000000000000036     -613.622970455867517    
+9.69999999999999929     -666.598195960770113    
+9.75                    -720.598725927859618    
+9.80000000000000071     -775.453676280103309    
+9.84999999999999964     -830.992162940468575    
+9.90000000000000036     -887.043301831928261    
+9.94999999999999929     -943.436208877447712    
+10                      -1000                   
-1000                    +10                     
-954.799999999999955     +10.3052972898398192    
-909.600000000000023     +10.6052517632910668    
-864.399999999999977     +10.8945206039651801    
-819.200000000000045     +11.1677609954735839    
-774                     +11.4196301214277156    
-728.799999999999955     +11.6447851654390035    
-683.600000000000023     +11.8378833111188797    
-638.399999999999977     +11.9935817420787743    
-593.200000000000045     +12.1065376419301192    
-548                     +12.1714081942843464    
-502.800000000000011     +12.1828505827528861    
-457.600000000000023     +12.1355219909471703    
-412.399999999999977     +12.0240796024786309    
-367.199999999999989     +11.8431806009586982    
-322                     +11.5874821699988022    
-276.800000000000011     +11.2516414932103785    
-231.599999999999994     +10.8303157542048538    
-186.400000000000006     +10.3181621365936618    
-141.199999999999989     +9.70983782398823259    
-96                      +9                      
-93.5999999999999943     +8.95935298431923499    
-91.2000000000000028     +8.91830709679205391    
-88.7999999999999972     +8.87676472861532595    
-86.4000000000000057     +8.83462827098592562    
-84                      +8.79180011510072745    
-81.5999999999999943     +8.74818265215659885    
-79.2000000000000028     +8.70367827335041611    
-76.7999999999999972     +8.65818936987905197    
-74.4000000000000057     +8.61161833293937562    
-72                      +8.56386755372826336    
-69.5999999999999943     +8.51483942344258438    
-67.2000000000000028     +8.46443633327921319    
-64.7999999999999972     +8.41256067443502253    
-62.3999999999999986     +8.35911483810688338    
-60                      +8.30400121549166848    
-57.6000000000000014     +8.24712219778625055    
-55.2000000000000028     +8.18838017618750236    
-52.7999999999999972     +8.12767754189229663    
-50.3999999999999986     +8.06491668609750434    
-48                      +8                      
-46.7999999999999972     +7.96667636926979128    
-45.6000000000000014     +7.93261908626096712    
-44.3999999999999986     +7.89765785847136925    
-43.2000000000000028     +7.86162239339884028    
-42                      +7.8243423985412246     
-40.7999999999999972     +7.78564758139636481    
-39.6000000000000014     +7.74536764946210532    
-38.3999999999999986     +7.70333231023628962    
-37.2000000000000028     +7.65937127121675942    
-36                      +7.61331423990135825    
-34.7999999999999972     +7.56499092378792959    
-33.6000000000000014     +7.51423103037431872    
-32.3999999999999986     +7.46086426715836559    
-31.1999999999999993     +7.40472034163791637    
-30                      +7.34562896131081189    
-28.8000000000000007     +7.28341983367489831    
-27.6000000000000014     +7.21792266622801648    
-26.3999999999999986     +7.14896716646801078    
-25.1999999999999993     +7.07638304189272382    
-24                      +7                      
-23.3999999999999986     +6.96033194805540756    
-22.8000000000000007     +6.91965798350954309    
-22.1999999999999993     +6.87796449621603045    
-21.6000000000000014     +6.83523787602849886    
-21                      +6.79146451280057217    
-20.3999999999999986     +6.74663079638587693    
-19.8000000000000007     +6.70072311663803966    
-19.1999999999999993     +6.65372786341068423    
-18.6000000000000014     +6.60563142655743984    
-18                      +6.55642019593193037    
-17.3999999999999986     +6.50608056138778146    
-16.8000000000000007     +6.45459891277862141    
-16.1999999999999993     +6.4019616399580741     
-15.5999999999999996     +6.34815513277976518    
-15                      +6.29316578109732294    
-14.4000000000000004     +6.23697997476437127    
-13.8000000000000007     +6.17958410363453758    
-13.1999999999999993     +6.12096455756144753    
-12.5999999999999996     +6.06110772639872586    
-12                      +6                      
-11.6999999999999993     +5.96893315675816449    
-11.4000000000000004     +5.93731063895306566    
-11.0999999999999996     +5.90489289836703257    
-10.8000000000000007     +5.87144038678239699    
-10.5                    +5.83671355598148889    
-10.1999999999999993     +5.80047285774663823    
-9.90000000000000036     +5.76247874386017767    
-9.59999999999999964     +5.72249166610443627    
-9.30000000000000071     +5.6802720762617458     
-9                       +5.63558042611443533    
-8.69999999999999929     +5.58817716744483572    
-8.40000000000000036     +5.53782275203527874    
-8.09999999999999964     +5.48427763166809346    
-7.79999999999999982     +5.42730225812561162    
-7.5                     +5.3666570831901641     
-7.20000000000000018     +5.30210255864407998    
-6.90000000000000036     +5.233399136269691      
-6.59999999999999964     +5.16030726784932803    
-6.29999999999999982     +5.08258740516532015    
-6                       +5                      
-5.84999999999999964     +4.9568243963558265     
-5.70000000000000018     +4.9124517936317087     
-5.54999999999999982     +4.86696196542244763    
-5.40000000000000036     +4.82043468532284347    
-5.25                    +4.77294972692769548    
-5.09999999999999964     +4.72458686383180737    
-4.95000000000000018     +4.67542586962997841    
-4.79999999999999982     +4.62554651791700966    
-4.65000000000000036     +4.57502858228770215    
-4.5                     +4.52395183633685605    
-4.34999999999999964     +4.47239605365927329    
-4.20000000000000018     +4.42044100784975491    
-4.04999999999999982     +4.3681664725031002     
-3.89999999999999991     +4.31565222121411107    
-3.75                    +4.26297802757758859    
-3.60000000000000009     +4.2102236651883338     
-3.45000000000000018     +4.15746890764114596    
-3.29999999999999982     +4.10479352853082702    
-3.14999999999999991     +4.05227730145217802    
-3                       +4                      
-2.85000000000000009     +3.94802546280802957    
-2.70000000000000018     +3.89635378866575       
-2.54999999999999982     +3.84496914140158053    
-2.39999999999999991     +3.79385568484394087    
-2.25                    +3.74299758282125072    
-2.10000000000000009     +3.69237899916192891    
-1.94999999999999996     +3.64198409769439468    
-1.80000000000000004     +3.59179704224706819    
-1.64999999999999991     +3.54180199664836826    
-1.5                     +3.49198312472671502    
-1.35000000000000009     +3.44232459031052729    
-1.19999999999999996     +3.39281055722822478    
-1.05000000000000004     +3.34342518930822674    
-0.900000000000000022    +3.29415265037895288    
-0.75                    +3.24497710426882202    
-0.599999999999999978    +3.1958827148062543     
-0.450000000000000011    +3.14685364581966898    
-0.299999999999999989    +3.09787406113748487    
-0.149999999999999994    +3.04892812458812212    
+0                       +3                      
+0.149999999999999994    +2.95107375241205494    
+0.299999999999999989    +2.90213305170529123    
+0.450000000000000011    +2.85316146897122991    
+0.599999999999999978    +2.80414257530139333    
+0.75                    +2.75505994178730207    
+0.900000000000000022    +2.7058971395204785     
+1.05000000000000004     +2.6566377395924432     
+1.19999999999999996     +2.6072653130947181     
+1.35000000000000009     +2.5577634311188242     
+1.5                     +2.508115664756283      
+1.64999999999999991     +2.45830558509861685    
+1.80000000000000004     +2.40831676323734589    
+1.94999999999999996     +2.35813277026399248    
+2.10000000000000009     +2.30773717727007721    
+2.25                    +2.25711355534712244    
+2.39999999999999991     +2.20624547558664919    
+2.54999999999999982     +2.15511650908017893    
+2.70000000000000018     +2.10371022691923315    
+2.85000000000000009     +2.05201020019533287    
+3                       +2                      
+3.14999999999999991     +1.94767952754375151    
+3.29999999999999982     +1.89511400451308631    
+3.45000000000000018     +1.84238498271349971    
+3.60000000000000009     +1.7895740139504861     
+3.75                    +1.73676265002954056    
+3.89999999999999991     +1.68403244275615793    
+4.04999999999999982     +1.63146494393583286    
+4.20000000000000018     +1.5791417053740604     
+4.34999999999999964     +1.52714427887633519    
+4.5                     +1.47555421624815208    
+4.65000000000000036     +1.4244530692950057     
+4.79999999999999982     +1.37392238982239157    
+4.95000000000000018     +1.32404372963580363    
+5.09999999999999964     +1.27489864054073743    
+5.25                    +1.22656867434268735    
+5.40000000000000036     +1.17913538284714825    
+5.54999999999999982     +1.13268031785961543    
+5.70000000000000018     +1.08728503118558306    
+5.84999999999999964     +1.04303107463054645    
+6                       +1                      
+6.29999999999999982     +0.917780486869365197   
+6.59999999999999964     +0.840517821912674212   
+6.90000000000000036     +0.767951118383929821   
+7.20000000000000018     +0.699819489537135353   
+7.5                     +0.635862048626293586   
+7.79999999999999982     +0.575817908905407516   
+8.09999999999999964     +0.519426183628479921   
+8.40000000000000036     +0.466425986049513852   
+8.69999999999999929     +0.416556429422512531   
+9                       +0.369556627001478399   
+9.30000000000000071     +0.325165692040414733   
+9.59999999999999964     +0.283122737793324697   
+9.90000000000000036     +0.243166877514210733   
+10.1999999999999993     +0.205037224457076339   
+10.5                    +0.168472891875923986   
+10.8000000000000007     +0.133212993024756837   
+11.0999999999999996     +0.0989966411575780858  
+11.4000000000000004     +0.0655629495283902575  
+11.6999999999999993     +0.032651031391196704   
+12                      +0                      


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]