summaryrefslogtreecommitdiff
path: root/src/DGDOM.h
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2019-01-27 17:02:40 +0100
committerBent Bisballe Nyeng <deva@aasimon.org>2019-01-27 17:02:40 +0100
commit2aae9799e1d96d827ad156aeafa549deabd51e5d (patch)
tree707fb2798cd3b9304fc4af690b557efc9d98a1a8 /src/DGDOM.h
parent053b723adf3948d18f025efed9450d837359edd9 (diff)
Re-instate instrument v1.0 support.
Diffstat (limited to 'src/DGDOM.h')
-rw-r--r--src/DGDOM.h20
1 files changed, 19 insertions, 1 deletions
diff --git a/src/DGDOM.h b/src/DGDOM.h
index df03515..933c250 100644
--- a/src/DGDOM.h
+++ b/src/DGDOM.h
@@ -31,6 +31,21 @@
#include "channel.h"
+// v1.0 velocity groups
+
+struct SampleRefDOM
+{
+ double probability;
+ std::string name;
+};
+
+struct VelocityDOM
+{
+ double upper;
+ double lower;
+ std::vector<SampleRefDOM> samplerefs;
+};
+
// Instrument DOM:
struct AudioFileDOM
@@ -43,7 +58,7 @@ struct AudioFileDOM
struct SampleDOM
{
std::string name;
- double power;
+ double power; // >= v2.0 only
std::vector<AudioFileDOM> audiofiles;
};
@@ -60,6 +75,9 @@ struct InstrumentDOM
std::string description;
std::vector<SampleDOM> samples;
std::vector<InstrumentChannelDOM> instrument_channels;
+
+ // v1.0 only
+ std::vector<VelocityDOM> velocities;
};