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

Re: [Sc-devel] bug in SynthDesc.makeWindow?


Also caught another one - if you use the stop button, then close the window, you would get a /n_free node not found error because the gui doesn't track whether the synth is alive or not. That's fixed too.


On Feb 6, 2008, at 7:39 PM, Andrea Valle wrote:



+SynthDesc {
makeWindow {

we have

var synthDesc; // --> delete me

But no value assigned, so the stop in the button.value here raises an error:

startButton.action = "">|view|
if (view.value == 1) {
// start sound
s.sendBundle(s.latency, ["/s_new", name, id, 0, 0] ++ getSliderValues.value);
if (view.value == 0) {
if (synthDesc.hasGate) { // --> should be this.hasGate
// set gate to zero to cause envelope to release
s.sendMsg("/n_set", id, "gate", 0);
s.sendMsg("/n_free", id);

: H. James Harkins

: jamshark70@xxxxxxxxxxxxxxxxx

: http://www.dewdrop-world.net


"Come said the Muse,

Sing me a song no poet has yet chanted,

Sing me the universal."  -- Whitman