(SCALE-ALG
  (NAME "normalize")
  (ARGUMENTS ("sound_type" "s1"))
  (STATE ("sample_type" "scale" "s1->scale"))
  (CONSTANT "scale")
  (START (MIN s1))
  (INTERNAL-SCALING s1)
  (INNER-LOOP "output = s1 * scale")
  (TERMINATE (MIN s1))
  (LOGICAL-STOP (MIN s1))
)
