const MIDIToCV = ({ input, gate, frequency, trigger }) => {
  const voices = useRoundRobinVoicing(input, 1);
  gate.set(voices[0].gate);
  trigger.set(voices[0].trigger);
  frequency.set(voices[0].frequency);
}

this.constructDevice = () => constructPerChannelDevice({
  implementation: MIDIToCV,
  inputs: {
    input: midi('In')
  },
  outputs: {
    frequency: expose(frequencySetting('Frequency', 1000)),
    trigger: expose(zeroOneSetting('Trigger', 0)),
    gate: expose(zeroOneSetting('Gate', 0)),
  }
});

