wavelength 1.0.0
Loading...
Searching...
No Matches
Instrument.h
Go to the documentation of this file.
1#pragma once
2
11public:
18
24 void Init();
25
33 int FromStream(const unsigned char *data);
34
42 int ToStream(unsigned char *data) const;
43
50 static int StreamSize();
51
52 unsigned short mProgram;
53 unsigned char mPan;
54 unsigned char mVolume;
55 signed char mTranspose;
56 signed char mFineTranspose;
57 unsigned short mNumSampleDescs;
58};
Instrument()
Create an instrument and reset it.
unsigned char mPan
Definition Instrument.h:53
int ToStream(unsigned char *data) const
Write the instrument in its stream form, as version 1.
unsigned short mNumSampleDescs
Definition Instrument.h:57
void Init()
Reset every field to its default.
static int StreamSize()
Report the size of the stream form.
signed char mTranspose
Definition Instrument.h:55
int FromStream(const unsigned char *data)
Read the instrument from its stream form.
signed char mFineTranspose
Definition Instrument.h:56
unsigned short mProgram
Definition Instrument.h:52
unsigned char mVolume
Definition Instrument.h:54