I’m wondering if someone having issue with midi cc. I’m setting cc events like this,
MainComponent::MainComponent()
{
setSize (600, 400);
edit = std::make_unique<tracktion_engine::Edit> (options);
edit->ensureNumberOfAudioTracks (8);
if (auto track = tracktion_engine::getAudioTracks (*edit)[0]) {
const tracktion_engine::EditTimeRange editTimeRange (0, edit->tempoSequence.barsBeatsToTime ({ 2, 0.0 }));
track->insertNewClip(tracktion_engine::TrackItem::Type::midi, "MidiClip", editTimeRange, nullptr);
if (auto clip = dynamic_cast<tracktion_engine::MidiClip*> (track->getClips()[0]))
{
auto &dev = track->getOutput();
auto &deviceManager = engine.getDeviceManager();
dev.outputsToDevice(deviceManager.getDefaultWaveOutDevice()->getName(), true);
dev.setOutputByName("Tracktion MIDI Device");
auto &seq = clip->getSequence();
seq.addControllerEvent(2.0f, 9, 54, nullptr);
seq.addControllerEvent(4.0f, 9, 54, nullptr);
seq.addControllerEvent(6.0f, 9, 54, nullptr);
seq.addControllerEvent(8.0f, 9, 54, nullptr);
seq.addControllerEvent(2.0f, 9, 54, nullptr);
seq.addControllerEvent(4.0f, 9, 127, nullptr);
seq.addControllerEvent(6.0f, 9, 127, nullptr);
seq.addControllerEvent(8.0f, 9, 127, nullptr);
seq.addControllerEvent(2.0f, 9, 127, nullptr);
seq.addControllerEvent(4.0f, 9, 127, nullptr);
seq.addControllerEvent(6.0f, 9, 127, nullptr);
seq.addControllerEvent(8.0f, 9, 127, nullptr);
}
}
auto &transport = edit->getTransport();
transport.play(true);
DBG(edit->state.toXmlString());
}
If I output it to external devices or apps I have 0 cc values always.
But in tree state values looks ok, what could be the issue? I’m doing this with latest develop branch