(bind-func get_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) ;; wavetable
(else PARAM_SINE)))) ;; default to SINE