use jitlib or synthdef with buses, and combine that with a routine a task or a sendtrig, using either mididef or oscdef