Ejemplo n.º 1
0
  public MindmachineOp() {
    super();

    // initialize only in the first instance
    // preferences laden
    if (static_prefs == null) {
      static_prefs = new OpPrefs(getClass(), getDefaultPrefs());
    }
    // propertyarray defaults
    if (static_pr == null) {
      static_pr = new PropertyArray();

      //			static_pr.intg		= prIntg;
      //			static_pr.intgName	= prIntgName;
      static_pr.para = prPara;
      static_pr.para[PR_ANGLE] = new Param(25.0, Param.NONE);
      static_pr.paraName = prParaName;

      static_pr.superPr = Operator.op_static_pr;
    }
    // default preset
    if (static_presets == null) {
      static_presets = new Presets(getClass(), static_pr.toProperties(true));
    }

    // superclass-Felder uebertragen
    opName = "MindmachineOp";
    prefs = static_prefs;
    presets = static_presets;
    pr = (PropertyArray) static_pr.clone();

    // slots
    slots.addElement(new SpectStreamSlot(this, Slots.SLOTS_READER, "in1")); // SLOT_INPUT1
    slots.addElement(new SpectStreamSlot(this, Slots.SLOTS_READER, "in2")); // SLOT_INPUT2
    slots.addElement(new SpectStreamSlot(this, Slots.SLOTS_WRITER)); // SLOT_OUTPUT

    // icon						// XXX
    icon = new OpIcon(this, OpIcon.ID_FLIPFREQ, defaultName);
  }