From e28382234e172f02132ddb317eea1a297238e51e Mon Sep 17 00:00:00 2001 From: Nathaniel Wesley Filardo Date: Fri, 19 Feb 2010 00:33:15 -0500 Subject: [PATCH] progenv/trackerfmt.h to hold format constants --- progenv/trackerfmt.h | 47 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 progenv/trackerfmt.h diff --git a/progenv/trackerfmt.h b/progenv/trackerfmt.h new file mode 100644 index 0000000..0a818af --- /dev/null +++ b/progenv/trackerfmt.h @@ -0,0 +1,47 @@ +#ifndef _TRACKERFMT_H_ +#define _TRACKERFMT_H_ + +#ifndef ASSEMBLER +#endif + +#define NR_CHAN 4 /**< Number of channels active in the system */ + +/* Waveform values. 8 bits. */ +#define WF_TRI 0x00 /**< Triangle wave */ +#define WF_SAW 0x01 /**< Rising sawtooth wave */ +#define WF_PUL 0x02 /**< Variable width pulse */ +#define WF_NOI 0x03 /**< Uniform noise */ + +/* Commands. 4 bits. */ + /** End of instrument; not valid in track ctx. */ +#define CMD_ISTOP 0x0 + /* RESERVED 0x00 (in track context) */ + /** Set oscillator duty top 8 bits; zero bottom bits */ +#define CMD_DUTY 0x1 + /** Set channel volume derivative */ +#define CMD_VOLUMED 0x2 + /** Set channel inertia (param << 1) */ +#define CMD_INTERTIA 0x3 + /** Set channel instrument offset */ +#define CMD_IJUMP 0x4 + /** Set channel bend derivative */ +#define CMD_BENDD 0x5 + /** Set channel duty derivative (param << 6) */ +#define CMD_DUTYD 0x6 + /** Set channel instrument wait */ +#define CMD_IWAIT 0x7 + /** Set oscillator volume */ +#define CMD_VOLUME 0x8 + /** Set oscillator waveform */ +#define CMD_WAVEFORM 0x9 + /** Set channel instrument note (transposed) */ +#define CMD_INOTETRANS 0xA + /** Set channel instrument note (absolute) */ +#define CMD_INOTE 0xB + /** Set channel vibrato depth and rate */ +#define CMD_VIBRATO 0xC + + /* RESERVED 0x0D */ + /* RESERVED 0x0E */ + /* RESERVED 0x0F */ +#endif -- 2.50.1