create_pfield(const Arg args[], const int nargs) #endif { int pfbusval; double defaultval; if (nargs < 2) return _pfbus_usage(); if (args[0].isType(DoubleType)) pfbusval = (int)(args[0]); else return _pfbus_usage(); if (args[1].isType(DoubleType)) defaultval = args[1]; else return _pfbus_usage(); return new PFBusPField(pfbusval, defaultval); }
// BGG mm // can't use the 'normal' create_pfield() because of conflict with // inletglue.cpp function (dyn loading keeps tehm separate, but we // don't dynlaod in max/msp static RTNumberPField * create_pfbus_pfield(const Arg args[], const int nargs) { int pfbusval; double defaultval; if (nargs < 2) return _pfbus_usage(); if (args[0].isType(DoubleType)) pfbusval = (int)(args[0]); else return _pfbus_usage(); if (args[1].isType(DoubleType)) defaultval = args[1]; else return _pfbus_usage(); pfbus_is_connected[pfbusval] = 1; return new PFBusPField(pfbusval, defaultval); }