Michael Zacherl. | 14 Jun 2012 11:24

SCEnvelopeEdit weird behaviour

Hi, while checking if it's useful to me I just found a year old msg about SCEnvelopeEdit (cocoa gui) crashing.
On 3.5.2 I manage to get something else, besides crashing.
Try this:
(
(e = Env([1, 2, 0.5], [10, 9])).plot;  // to compare
w = Window("Env Editor", Rect(200, 200, 300, 200));
v = SCEnvelopeEdit(w, w.view.bounds.moveBy(20, 20).resizeBy(-40, -40), e, 20).resize_(5);
w.front;
)
It's a small variant to the very first example in the help file, which itself being unmodified knocks out SC
after touching the first node.
But this variant looks strange to me.
Or did I request something weird? (which wouldn't be that surprising ;-)
Thanks,  Michael.

--
nonconform? noiseconform: http://blauwurf.at
http://soundcloud.com/noiseconformist

_______________________________________________
sc-users mailing list

info (subscription, etc.): http://www.beast.bham.ac.uk/research/sc_mailing_lists.shtml
archive: http://www.listarc.bham.ac.uk/marchives/sc-users/
search: http://www.listarc.bham.ac.uk/lists/sc-users/search/

Julian Rohrhuber | 25 Jun 2012 13:27
Picon
Favicon

Re: SCEnvelopeEdit weird behaviour


On 14.06.2012, at 11:24, Michael Zacherl. wrote:

> Hi, while checking if it's useful to me I just found a year old msg about SCEnvelopeEdit (cocoa gui) crashing.
> On 3.5.2 I manage to get something else, besides crashing.
> Try this:
> (
> (e = Env([1, 2, 0.5], [10, 9])).plot;  // to compare
> w = Window("Env Editor", Rect(200, 200, 300, 200));
> v = SCEnvelopeEdit(w, w.view.bounds.moveBy(20, 20).resizeBy(-40, -40), e, 20).resize_(5);
> w.front;
> )
> It's a small variant to the very first example in the help file, which itself being unmodified knocks out SC
after touching the first node.
> But this variant looks strange to me.
> Or did I request something weird? (which wouldn't be that surprising ;-)
> Thanks,  Michael.

I checked, but didn't crashed. Just this error message (note that env.plot returns a plotter!):

(
(e = Env([1, 2, 0.5], [10, 9]));  // to compare
w = Window("Env Editor", Rect(200, 200, 300, 200));
v = SCEnvelopeEdit(w, w.view.bounds.moveBy(20, 20).resizeBy(-40, -40), e, 20).resize_(5);
w.front;
)

ERROR: Primitive '_SCView_New' failed.
Wrong type.
RECEIVER:
(Continue reading)


Gmane