Re: [Bluemusic-users] Line Update
Brought to you by:
kunstmusik
From: Michael B. <got...@ya...> - 2006-12-01 18:39:40
|
Is this change going to break compatability with old LineObjects?=0A=0A----= - Original Message ----=0AFrom: Steven Yi <ste...@gm...>=0ATo: blue u= sers mailing list <blu...@li...>=0ASent: Thursday,= November 30, 2006 7:56:50 PM=0ASubject: [Bluemusic-users] Line Update=0A= =0AHi All,=0A=0AStill in the process of implementing resolution on Paramete= r=0AAutomation and in so doing I had to take a detour and rework the=0Aunde= rlying Line and LinePoint classes. What I have done is that in=0Athe past,= LinePoints held their Y values always from 0-1.0, and then=0Atheir absolut= e values from within min and max for the line when needed=0Awould be calcul= ated. I've decided now that for whatever reason I had=0Adone this, that I = now think it was a design mistake. So, I have gone=0Aand redone all the co= de that uses lines and linePoints to assume Y=0Avalues are now absolute val= ues instead of relative. (X values are a=0Alittle more complicated, but th= ey are using relative in the older=0Aclient classes and absolute in paramet= er automation). I am pretty=0Asure I have also covered all the migration i= ssues from the old to the=0Anew value system (serialization and also preser= ving preset values for=0ABSB/ObjectBuilder objects).=0A=0AAnyways, the poin= t I am at now is what to do when the user sets min=0Aand max for the line. = Previously, because y values were always 0-1.0,=0Achanging max and min wou= ldn't change the values that the points held=0Ainternally, but their calcul= ated values would change. So a point=0Apreviously say at max value 1.0, if= max was changed on the line to=0A10.0, the point would suddenly have 10.0 = for a value (values were=0Arescaled).=0A=0AWhat I am thinking is that it mi= ght be useful to have two options=0Aappear when min and max are modified: r= escale (works as in the=0Aprevious behavior) or truncate (if prevoius value= is now outside of=0Athe new boundary, truncate its value to the boundary).= I think have=0Athe new second option would be nice if you're working and = decided that=0Ayou needed "just a little more room on a parameter".=0A=0AAl= l of this new code is just local at the moment and I will probably=0Aredo t= he min/max options tomorrow morning and check in.=0A=0AIf anyone has made u= se of the Line and LinePoint classes in either=0Ascripts or Plugins, apolog= ies for the change but I think it's for the=0Abest. (If there's any issues= , please contact me so I can make sure=0Athe that classes will do as much w= ork for you in migration as they=0Acan).=0A=0AThanks!=0Asteven=0A=0A-------= ------------------------------------------------------------------=0ATake S= urveys. Earn Cash. Influence the Future of IT=0AJoin SourceForge.net's Tech= say panel and you'll get the chance to share your=0Aopinions on IT & busine= ss topics through brief surveys - and earn cash=0Ahttp://www.techsay.com/de= fault.php?page=3Djoin.php&p=3Dsourceforge&CID=3DDEVDEV=0A__________________= _____________________________=0ABluemusic-users mailing list=0ABluemusic-us= er...@li...=0Ahttps://lists.sourceforge.net/lists/listinfo/bl= uemusic-users=0A=0A=0A=0A=0A=0A =0A________________________________________= ____________________________________________=0ADo you Yahoo!?=0AEveryone is= raving about the all-new Yahoo! Mail beta.=0Ahttp://new.mail.yahoo.com |