source: buchla-68k/include/smdefs.h@ f7428b1

Last change on this file since f7428b1 was f7428b1, checked in by Thomas Lopatic <thomas@…>, 7 years ago

Started to rework include files.

  • Property mode set to 100644
File size: 1.1 KB
Line 
1/*
2 =============================================================================
3 smdefs.h -- MIDAS Source / Multiplier definitions
4 Version 6 -- 1987-12-06 -- D.N. Lynx Crowe
5 =============================================================================
6*/
7
8#pragma once
9#include "stdint.h"
10
11struct sment {
12
13 struct sment *nxt;
14 struct sment *prv;
15 uint16_t vp;
16 uint16_t sm;
17};
18
19struct valent {
20
21 struct sment *nxt;
22 struct sment *prv;
23 uint16_t val;
24};
25
26#define SM_NONE 0 /* No source - always 0 */
27#define SM_RAND 1 /* Random source */
28#define SM_CTL1 2 /* Control Voltage 1 / MIDI GPC 1 */
29
30#define SM_PTCH 5 /* Key Pitch (not updated in scan table) */
31#define SM_KPRS 6 /* Key Pressure */
32#define SM_KVEL 7 /* Key Velocity */
33#define SM_PED1 8 /* Pedal 1 */
34
35#define SM_FREQ 10 /* Key frequency (not updated in scan table) */
36#define SM_HTPW 11 /* Tablet X / MIDI Pitch Wheel */
37#define SM_VTMW 12 /* Tablet Y / MIDI Mod Wheel */
38#define SM_LPBR 13 /* LongPot / MIDI Breath Controller */
39
40/* Sources 3, 4, and 9 no longer exist */
41
42#define NSRCS 14 /* Highest source number + 1 */
43#define NGPSRS (12 << 4) /* Number of group/source pairs */
Note: See TracBrowser for help on using the repository browser.