(bind-func get_lfo_waveform
(lambda (value:i32)
(cond ((= value 0) PARAM_SINE)
((= value 1) PARAM_SAW)
((= value 2) PARAM_PULSE)
((= value 3) PARAM_TRI)
((= value 4) PARAM_WT)
((= value 5) PARAM_AD)
((= value 6) PARAM_CONST)
((= value 7) PARAM_RANDOM)
(else PARAM_SINE)))) ;; default to SINE