shithub: aubio

Download patch

ref: c4d014abbeb7a8e28d3e630c2b12ceee9c63fee2
parent: 9da42028ec9aec5923c4e307b5d8422b9cb8bb45
author: Paul Brossier <piem@piem.org>
date: Thu Jan 12 18:42:33 EST 2017

examples/parse_args.h: really use atoi, cast to smpl_t, see #83

--- a/examples/parse_args.h
+++ b/examples/parse_args.h
@@ -219,10 +219,10 @@
         usejack = 1;
         break;
       case 'N':
-        miditap_note = atof (optarg);
+        miditap_note = (smpl_t) atoi (optarg);
         break;
       case 'V':
-        miditap_velo = atof (optarg);
+        miditap_velo = (smpl_t) atoi (optarg);
         break;
       case 'i':
         source_uri = optarg;
--