diff options
author | David Robillard <d@drobilla.net> | 2007-03-17 03:15:44 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2007-03-17 03:15:44 +0000 |
commit | a716b2c0571f5bdcd817835cecb30cb7a4c745e0 (patch) | |
tree | 138a04f89579a435c5f6d93b2bf5e6d9e61ca466 /src/engine | |
parent | cb6ecc0c93b7ea7624dba5d633ff0f15980c4274 (diff) | |
download | machina-a716b2c0571f5bdcd817835cecb30cb7a4c745e0.tar.gz machina-a716b2c0571f5bdcd817835cecb30cb7a4c745e0.tar.bz2 machina-a716b2c0571f5bdcd817835cecb30cb7a4c745e0.zip |
Nicer automata diagrams from machina2dot.py.
Added midi2machina program.
git-svn-id: http://svn.drobilla.net/lad/machina@362 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/engine')
-rw-r--r-- | src/engine/SMFDriver.cpp | 8 | ||||
-rw-r--r-- | src/engine/machina/SMFDriver.hpp | 4 |
2 files changed, 4 insertions, 8 deletions
diff --git a/src/engine/SMFDriver.cpp b/src/engine/SMFDriver.cpp index 70756d1..cdf2ad7 100644 --- a/src/engine/SMFDriver.cpp +++ b/src/engine/SMFDriver.cpp @@ -38,10 +38,8 @@ namespace Machina { * @return the resulting machine. */ SharedPtr<Machine> -SMFDriver::learn(const Glib::ustring& uri, unsigned track, Raul::BeatTime max_duration) +SMFDriver::learn(const string& filename, unsigned track, Raul::BeatTime max_duration) { - const string filename = Glib::filename_from_uri(uri); - SharedPtr<Machine> m(new Machine()); Raul::SMFReader reader; @@ -64,10 +62,8 @@ SMFDriver::learn(const Glib::ustring& uri, unsigned track, Raul::BeatTime max_du * This will result in a disjoint subgraph in the machine, one for each track. */ SharedPtr<Machine> -SMFDriver::learn(const Glib::ustring& uri, Raul::BeatTime max_duration) +SMFDriver::learn(const string& filename, Raul::BeatTime max_duration) { - const string filename = Glib::filename_from_uri(uri); - SharedPtr<Machine> m(new Machine()); Raul::SMFReader reader; diff --git a/src/engine/machina/SMFDriver.hpp b/src/engine/machina/SMFDriver.hpp index 17c196e..3e74726 100644 --- a/src/engine/machina/SMFDriver.hpp +++ b/src/engine/machina/SMFDriver.hpp @@ -35,8 +35,8 @@ class Machine; class SMFDriver : public Raul::SMFWriter, public boost::enable_shared_from_this<SMFDriver> { public: - SharedPtr<Machine> learn(const Glib::ustring& uri, Raul::BeatTime max_duration=0); - SharedPtr<Machine> learn(const Glib::ustring& uri, unsigned track, Raul::BeatTime max_duration=0); + SharedPtr<Machine> learn(const std::string& filename, Raul::BeatTime max_duration=0); + SharedPtr<Machine> learn(const std::string& filename, unsigned track, Raul::BeatTime max_duration=0); void run(SharedPtr<Machine> machine, Raul::BeatTime max_time); |