diff options
author | Vitaly Novichkov <admin@wohlnet.ru> | 2019-07-08 02:28:48 +0300 |
---|---|---|
committer | Vitaly Novichkov <admin@wohlnet.ru> | 2019-07-08 02:28:48 +0300 |
commit | bfd932874f5e107eaf81c40b87d5c722170a5ace (patch) | |
tree | d3f0dbf53533eb2716d3a62a62c460eeb9cf6ba6 /utils/gen_adldata/progs_cache.h | |
parent | ddeb2a43fd2bf7361f388b5bc6692b0efc46665c (diff) | |
download | libADLMIDI-bfd932874f5e107eaf81c40b87d5c722170a5ace.tar.gz libADLMIDI-bfd932874f5e107eaf81c40b87d5c722170a5ace.tar.bz2 libADLMIDI-bfd932874f5e107eaf81c40b87d5c722170a5ace.zip |
More accurate silence detector
Now, there are very low level of error! The only one weird condition is still be there...
Diffstat (limited to 'utils/gen_adldata/progs_cache.h')
-rw-r--r-- | utils/gen_adldata/progs_cache.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/utils/gen_adldata/progs_cache.h b/utils/gen_adldata/progs_cache.h index 0f25a5d..195c5f1 100644 --- a/utils/gen_adldata/progs_cache.h +++ b/utils/gen_adldata/progs_cache.h @@ -297,6 +297,7 @@ struct BanksDump struct InstrumentEntry { uint_fast32_t instId = 0; + std::vector<std::string> instMetas; typedef enum WOPL_InstrumentFlags { @@ -399,11 +400,12 @@ struct BanksDump static void toOps(const insdata &inData, Operator *outData, size_t begin = 0); //! WIP - static bool isSilent(const Operator *ops, uint_fast16_t fbConn, size_t countOps = 2, bool pseudo4op = false); + static bool isSilent(const BanksDump &db, const BanksDump::InstrumentEntry &ins, bool moreInfo = false); + static bool isSilent(const Operator *ops, uint_fast16_t fbConn, size_t countOps = 2, bool pseudo4op = false, bool moreInfo = false); size_t initBank(size_t bankId, const std::string &title, uint_fast16_t bankSetup); void addMidiBank(size_t bankId, bool percussion, MidiBank b); - void addInstrument(MidiBank &bank, size_t patchId, InstrumentEntry e, Operator *ops); + void addInstrument(MidiBank &bank, size_t patchId, InstrumentEntry e, Operator *ops, const std::string &meta = std::string()); void exportBanks(const std::string &outPath, const std::string &headerName = "adlmidi_db.h"); }; |