muellmusik / EQui

SuperCollider quark for a 5 band parametric EQ Gui
5 stars 2 forks source link

make window resizable #2

Open LFSaw opened 4 months ago

LFSaw commented 4 months ago

my stupid implementation:

    *new { arg parent, bounds, target, params, prefix = "", sampleRate;
        var resize = 1;
        if(parent.isNil, { 
            parent = Window(prefix ++ target, EQui.sizeHint).front; 

            // if no external parent is given, we make the view resizing according to the window
            resize = 5;
        });

        ^super.new(parent, bounds).init(target, params, prefix, sampleRate).resize_(resize);
    }