diff options
Diffstat (limited to 'src/engine/machina')
-rw-r--r-- | src/engine/machina/SMFDriver.hpp | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/engine/machina/SMFDriver.hpp b/src/engine/machina/SMFDriver.hpp index f5d1229..f9b266b 100644 --- a/src/engine/machina/SMFDriver.hpp +++ b/src/engine/machina/SMFDriver.hpp @@ -22,6 +22,7 @@ #include <glibmm/ustring.h> #include <raul/SharedPtr.h> #include <raul/SMFWriter.h> +#include <raul/SMFReader.h> #include "machina/types.hpp" #include "machina/MidiDriver.hpp" @@ -34,9 +35,15 @@ class Machine; class SMFDriver : public Raul::SMFWriter, public boost::enable_shared_from_this<SMFDriver> { public: - SharedPtr<Machine> learn(const Glib::ustring& uri, unsigned track=1); + SharedPtr<Machine> learn(const Glib::ustring& uri); + SharedPtr<Machine> learn(const Glib::ustring& uri, unsigned track); void run(SharedPtr<Machine> machine, Raul::BeatTime max_time); + +private: + void learn_track(SharedPtr<Machine> machine, + Raul::SMFReader& reader, + unsigned track); }; |