(bind-func static get_lfo_phase
(lambda (inst:i8* lfo_num:i32)
(let ((krl (if (< lfo_num 4)
(cref (cast inst [void]*) effect_kernel [void]*)
(cref (cast inst [void]*) note_kernel [void]*)))
(mod_phase (cref krl mod_phase |4,float|*)))
(aref mod_phase (% lfo_num 4)))))