((Device)PatchEdit.deviceList.get (patch.deviceNum)).getPort(),nodes[i].senderX.generate (nodes[i].ofsX.get ()));
((Device)PatchEdit.appConfig.getDevice (patch.deviceNum)).getPort(),nodes[i].senderX.generate (nodes[i].ofsX.get ()));
    public void setValue (int fader, int value)    {        fader-=sliderNum;        int j=0;        for (int i=0; i<nodes.length;i++)        {            if (nodes[i].minX!=nodes[i].maxX)            {                if (fader==j)                {                    value=(int)(nodes[i].minX+((float)(value)/127*(nodes[i].maxX-nodes[i].minX)));                    nodes[i].ofsX.set (value);                    values[j].setText (new Integer (value).toString ());                    try                    {                        nodes[i].senderX.channel=(byte)((Device)PatchEdit.deviceList.get (patch.deviceNum)).getChannel();                        PatchEdit.MidiOut.writeLongMessage (                        ((Device)PatchEdit.deviceList.get (patch.deviceNum)).getPort(),nodes[i].senderX.generate (nodes[i].ofsX.get ()));                    }                    catch (Exception e1)                    {                        ErrorMsg.reportStatus (e1);                    }                }                j++;            }            if (nodes[i].minY!=nodes[i].maxY)            {                if (fader==j)                {                    value=(int)(nodes[i].minY+((float)(value)/127*(nodes[i].maxY-nodes[i].minY)));                    nodes[i].ofsY.set (value);                    values[j].setText (new Integer (value).toString ());                    try                    {                        nodes[i].senderY.channel=(byte)((Device)PatchEdit.deviceList.get (patch.deviceNum)).getChannel();                        PatchEdit.MidiOut.writeLongMessage (                        ((Device)PatchEdit.deviceList.get (patch.deviceNum)).getPort(),nodes[i].senderY.generate (nodes[i].ofsY.get ()));                    }                    catch (Exception e1)                    {                        ErrorMsg.reportStatus (e1);                    }                }                j++;            }                    }            }