Add method to format set of MIDI channels

eg. channels 1,2,3,5,6
will be formatted as "1-3, 5, 6"
This commit is contained in:
Robin Gareus 2022-02-05 00:12:38 +01:00
parent 12e8235193
commit ef8904210e
No known key found for this signature in database
GPG key ID: A090BCE02CF57F04
2 changed files with 47 additions and 0 deletions

View file

@ -103,6 +103,8 @@ Gdk::Color unique_random_color (std::list<Gdk::Color> &);
std::string rate_as_string (float r);
std::string samples_as_time_string (ARDOUR::samplecnt_t s, float r, bool show_samples = false);
std::string midi_channels_as_string (std::set<uint8_t> const&);
bool windows_overlap (Gtk::Window *a, Gtk::Window *b);
bool overwrite_file_dialog (Gtk::Window& parent, std::string title, std::string text);