'Audiokit 5 - connect Sequencer to MIDIInstrument
I can connect to the Sequencer a physical instrument like Shaker or a callBackInstrument fine, but not a MIDIInstrument like SynthKick
var sequencer = Sequencer()
var synthKick = SynthKick()
synthKick.enableMIDI()
var track = sequencer.addTrack(for: synthKick)
track.sequence.add(noteNumber: MIDINoteNumber(60), position: 0, duration: 1)
mixer.addInput(synthKick)
on SynthKick:
public override func start(noteNumber: MIDINoteNumber,
velocity: MIDIVelocity,
channel: MIDIChannel,
timeStamp: MIDITimeStamp? = nil) {
play(noteNumber: noteNumber)
}
The code above not outputs signal
What I'm doing wrong ?
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
