diff options
author | David Robillard <d@drobilla.net> | 2013-01-12 03:17:47 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2013-01-12 03:17:47 +0000 |
commit | e1a63732f796c8057751cb7f8ac98a595b91692e (patch) | |
tree | 764392d055901118ee285dd20f233ff33e0cd04a /src/midi2machina.cpp | |
parent | bb62bf2c23ba84f547e37b70b3ef31b51ba987ab (diff) | |
download | machina-e1a63732f796c8057751cb7f8ac98a595b91692e.tar.gz machina-e1a63732f796c8057751cb7f8ac98a595b91692e.tar.bz2 machina-e1a63732f796c8057751cb7f8ac98a595b91692e.zip |
Bulk reformat.
git-svn-id: http://svn.drobilla.net/lad/trunk/machina@4929 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/midi2machina.cpp')
-rw-r--r-- | src/midi2machina.cpp | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/src/midi2machina.cpp b/src/midi2machina.cpp index 5918e5c..3a7f055 100644 --- a/src/midi2machina.cpp +++ b/src/midi2machina.cpp @@ -46,7 +46,8 @@ main(int argc, char** argv) { if (argc != 3) { cout << "Usage: midi2machina QUANTIZATION FILE" << endl; - cout << "Specify quantization in beats, e.g. 1.0, or 0 for none" << endl; + cout << "Specify quantization in beats, e.g. 1.0, or 0 for none" + << endl; return -1; } @@ -60,17 +61,17 @@ main(int argc, char** argv) } /* - string out_filename = argv[1]; - if (out_filename.find_last_of("/") != string::npos) - out_filename = out_filename.substr(out_filename.find_last_of("/")+1); + string out_filename = argv[1]; + if (out_filename.find_last_of("/") != string::npos) + out_filename = out_filename.substr(out_filename.find_last_of("/")+1); - const string::size_type last_dot = out_filename.find_last_of("."); - if (last_dot != string::npos && last_dot != 0) - out_filename = out_filename.substr(0, last_dot); - out_filename += ".machina"; + const string::size_type last_dot = out_filename.find_last_of("."); + if (last_dot != string::npos && last_dot != 0) + out_filename = out_filename.substr(0, last_dot); + out_filename += ".machina"; - cout << "Writing output to " << out_filename << endl; - */ + cout << "Writing output to " << out_filename << endl; + */ Sord::World world; Sord::Model model(world); @@ -79,4 +80,3 @@ main(int argc, char** argv) return 0; } - |