[sc-users] plot update/refresh?
Martin .
blindmanonacid at gmail.com
Thu Apr 24 11:57:39 PDT 2008
Luke,
Great!
w.view.children[0].children[1].value_(b);
changes the values without any flickering that the other example has,
but it only displays values from 0.0 to 1.0 (that is, not 0.0 to
-1.0). So:
w.view.children[0].children[1].value_(b+1/2) //works
but is it dirty/unnecessary? Can I send min/max to the multisliderview?
Also, anyone know where I can find documentation on how the
parent/children things work?
Many thanks,
Martin
On Thu, Apr 24, 2008 at 3:37 AM, Luke Selden <lselden at gmail.com> wrote:
> how about this:
>
> // create plot window
> w = SCWindow.new.front;
> // plot data in w
> b = ({1.0.rand2}!100);
> b.plot(parent: w);
>
> //now change b:
> b = ({1.0.rand2}!100);
> // replot by deleting old plot and adding new one:
> w.view.children.do(_.remove); w.refresh; b.plot(parent: w);
>
> This isn't very efficient, just convenient. Alternately, you could
> try changing the data of the scmultisliderview manually, but plot does
> resampling and scaling, so it might be weird:
> w.view.children[0].children[1].value_(b); // not tested, I could have
> this wrong!
>
> ~luke
>
>
>
>
> On Wed, Apr 23, 2008 at 5:06 PM, Josh Parmenter <josh at realizedsound.net> wrote:
> > I don't think so... the plot methods don't tend to return the plot,
> > but the Obejct being plotted. So it would be impossible to get to the
> > plot itself to change it.
> >
> > Best,
> >
> > Josh
> >
> >
> >
> > On Apr 23, 2008, at 8:50 AM, Martin . wrote:
> >
> > > Hi all,
> > >
> > > is there a way to update a plot?
> > >
> > > cheers,
> > > martin
> > > _______________________________________________
> > > sc-users mailing list
> > > sc-users at create.ucsb.edu
> > > http://lists.create.ucsb.edu/mailman/listinfo/sc-users
> >
> > ******************************************
> > /* Joshua D. Parmenter
> > http://www.realizedsound.net/josh/
> >
> > "Every composer – at all times and in all cases – gives his own
> > interpretation of how modern society is structured: whether actively
> > or passively, consciously or unconsciously, he makes choices in this
> > regard. He may be conservative or he may subject himself to continual
> > renewal; or he may strive for a revolutionary, historical or social
> > palingenesis." - Luigi Nono
> > */
> >
> >
> >
> > _______________________________________________
> > sc-users mailing list
> > sc-users at create.ucsb.edu
> > http://lists.create.ucsb.edu/mailman/listinfo/sc-users
> >
> _______________________________________________
> sc-users mailing list
> sc-users at create.ucsb.edu
> http://lists.create.ucsb.edu/mailman/listinfo/sc-users
>
More information about the sc-users
mailing list