Update SMF-load test tool

This commit is contained in:
Robin Gareus 2022-09-25 02:48:00 +02:00
parent bfe655775a
commit 5d9fc950c5
No known key found for this signature in database
GPG key ID: A090BCE02CF57F04
2 changed files with 5 additions and 4 deletions

View file

@ -18,10 +18,10 @@ main (int argc, char** argv)
::exit (EXIT_FAILURE);
}
#if 0
#if 1
Evoral::SMF smf;
smf.open (fn);
printf ("SMF '%s' tracks=%d, ppqn=%d (n_notes: %ld)\n", fn, smf.num_tracks (), smf.ppqn(), smf.n_note_on_events ());
smf.open (fn, 1, true);
printf ("SMF '%s' tracks=%d, channels=%d, ppqn=%d (n_notes: %ld)\n", fn, smf.num_tracks (), smf.num_channels (), smf.ppqn(), smf.n_note_on_events ());
#else
FILE* f = g_fopen(fn, "r");
if (!f) {