summaryrefslogtreecommitdiff
path: root/src/DGDOM.h
diff options
context:
space:
mode:
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;
};