forked from hydrogen-music/hydrogen
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Filesystem : add methods to handle sample filepath
int get_basename_idx_within_drumkit(QString) returns the index of the basename of the sample if the given path is under an existing drumkit path, otherwise returns -1. The existence of the sample path is not checked !! bool file_is_within_drumkit(QString) is a wrapper over the previous function QString prepare_sample_path(fname) returns the basename if the given path is under an existing drumkit, otherwise the given path.
- Loading branch information
Showing
2 changed files
with
25 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters