void process_print (void)
{
if ( is_onset ) {
- if (strcmp (time_format, "samples") == 0) {
- outmsg ("%d\n", aubio_onset_get_last (o) );
- } else if (strcmp (time_format, "ms") == 0) {
- outmsg ("%f\n", aubio_onset_get_last_ms (o) );
- } else {
- outmsg ("%f\n", aubio_onset_get_last_s (o) );
- }
+ print_time(aubio_onset_get_last (o));
+ outmsg ("\n");
}
}