aboutsummaryrefslogtreecommitdiffstats
path: root/src/midi2machina.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/midi2machina.cpp')
-rw-r--r--src/midi2machina.cpp22
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;
}
-