Zrythm
a highly automated and intuitive digital audio workstation
Loading...
Searching...
No Matches
midi_file.h
Go to the documentation of this file.
1// SPDX-FileCopyrightText: © 2020-2021 Alexandros Theodotou <alex@zrythm.org>
2// SPDX-License-Identifier: LicenseRef-ZrythmLicense
3
10#ifndef __IO_MIDI_FILE_H__
11#define __IO_MIDI_FILE_H__
12
13#include <stdbool.h>
14
24bool
25midi_file_track_has_data (const char * abs_path, int track_idx);
26
30int
31midi_file_get_num_tracks (const char * abs_path, bool non_empty_only);
32
37#endif
bool midi_file_track_has_data(const char *abs_path, int track_idx)
Returns whether the given track in the midi file has data.
int midi_file_get_num_tracks(const char *abs_path, bool non_empty_only)
Returns the number of tracks in the MIDI file.