scale.addChoice("relative amplitude decibels");
scale.addChoice("relative power decibels");
// Ports
array = new TypedIOPort(this, "array", true, false);
new SingletonAttribute(array, "_showName");
output = new TypedIOPort(this, "output", false, true);
// Set Type Constraints.
array.setTypeEquals(new ArrayType(BaseType.DOUBLE));