examples/parse_args.h: really use atoi, cast to smpl_t, see #83
authorPaul Brossier <piem@piem.org>
Thu, 12 Jan 2017 22:42:33 +0000 (23:42 +0100)
committerPaul Brossier <piem@piem.org>
Thu, 12 Jan 2017 22:42:33 +0000 (23:42 +0100)
examples/parse_args.h

index eb1016e..f46629f 100644 (file)
@@ -219,10 +219,10 @@ parse_args (int argc, char **argv)
         usejack = 1;
         break;
       case 'N':
         usejack = 1;
         break;
       case 'N':
-        miditap_note = atof (optarg);
+        miditap_note = (smpl_t) atoi (optarg);
         break;
       case 'V':
         break;
       case 'V':
-        miditap_velo = atof (optarg);
+        miditap_velo = (smpl_t) atoi (optarg);
         break;
       case 'i':
         source_uri = optarg;
         break;
       case 'i':
         source_uri = optarg;