/** * Gets a new DataBead filled with the properties "minimum" and "maximum" set to the corresponding * UGen controllers, if they exist, or to static values. * * @return The new parameter DataBead. */ public DataBead getParams() { DataBead db = new DataBead(); if (isMinStatic) { db.put("minimum", min); } else { db.put("minimum", minUGen); } if (isMaxStatic) { db.put("maximum", max); } else { db.put("maximum", maxUGen); } return db; }
/** * Gets a new DataBead filled with the properties "minimum" and "maximum" set to their current * values. * * @return The new DataBead. */ public DataBead getStaticParams() { DataBead db = new DataBead(); db.put("minimum", min); db.put("maximum", max); return db; }