summaryrefslogtreecommitdiff
path: root/src/mdaPianoCommon.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mdaPianoCommon.h')
-rw-r--r--src/mdaPianoCommon.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/mdaPianoCommon.h b/src/mdaPianoCommon.h
index ed0c01d..581ffd5 100644
--- a/src/mdaPianoCommon.h
+++ b/src/mdaPianoCommon.h
@@ -12,11 +12,15 @@ struct KGRP //keygroup
{
long root; //MIDI root note
long high; //highest note
- long pos;
- long end;
long loop;
};
+typedef struct
+{
+ long size; //length of sample data
+ short* buffer; //pointer to sample data
+} Sample;
+
static float scale_midi_to_f(unsigned char data)
{
return 0.0078f * (float)(data);