Add Lua bindings for basic MIDI model editing

This commit is contained in:
Robin Gareus 2016-10-07 00:23:33 +02:00
parent 392972fb50
commit 0cf75054a6
4 changed files with 100 additions and 16 deletions

View file

@ -646,3 +646,9 @@ LuaAPI::Vamp::process (const std::vector<float*>& d, ::Vamp::RealTime rt)
const float* const* bufs = &d[0];
return _plugin->process (bufs, rt);
}
boost::shared_ptr<Evoral::Note<Evoral::Beats> >
LuaAPI::new_noteptr (uint8_t chan, Evoral::Beats beat_time, Evoral::Beats length, uint8_t note, uint8_t velocity)
{
return boost::shared_ptr<Evoral::Note<Evoral::Beats> > (new Evoral::Note<Evoral::Beats>(chan, beat_time, length, note, velocity));
}