Changeset f7428b1 in buchla-68k for include/midas.h
- Timestamp:
- 07/10/2017 01:26:59 AM (7 years ago)
- Branches:
- master
- Children:
- 5fa506d
- Parents:
- c3aee8a
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
include/midas.h
rc3aee8a rf7428b1 3 3 midas.h -- MIDAS 700 global definitions 4 4 Version 38 -- 1989-12-19 -- D.N. Lynx Crowe 5 6 Uses definitions from: "graphdef.h", "vsdd.h"7 5 ============================================================================= 8 6 */ 9 7 10 typedef void (*LPF)(int16_t _1, int16_t _2); /* pointer to a LCD panel function */ 8 #pragma once 9 #include "stdint.h" 11 10 12 #define SM_SCALE(x) (((x) * 252) & 0x7FE0) 13 #define ART_VAL(x) (((((x)-5) > 100) ? 100 : (((x)-5) < 0 ? 0 : ((x)-5)))*320) 11 typedef void (*LPF)(int16_t _1, int16_t _2); /* pointer to a LCD panel function */ 14 12 15 #define CWORD(x) ((short)((x)|((x)<<4)|((x)<<8)|((x)<<12))) 13 #define SM_SCALE(x) (((x) * 252) & 0x7fe0) 14 #define ART_VAL(x) (((((x) - 5) > 100) ? 100 : (((x) - 5) < 0 ? 0 : ((x) - 5))) * 320) 15 16 #define CWORD(x) ((int16_t)((x) | ((x) << 4) | ((x) << 8) | ((x) << 12))) 16 17 17 18 #define CTOX(C) ((C) << 3) /* column to x pixel value */ … … 25 26 #define GCURS 0 /* graphic cursor object number */ 26 27 27 #define BIT2 (V_RES2)/* graphics - 2 bit pixels */28 #define BIT3 (V_RES3)/* graphics - 4 bit pixels */29 #define CHR2 (0)/* characters - no attributes */28 #define BIT2 V_RES2 /* graphics - 2 bit pixels */ 29 #define BIT3 V_RES3 /* graphics - 4 bit pixels */ 30 #define CHR2 0 /* characters - no attributes */ 30 31 #define CHR3 (V_FAD | V_HCR) /* characters - full attributes */ 31 32 32 33 #define OBFL_00 (BIT3 | V_TDE) /* cursor - arrow */ 33 34 34 #define LIBRFL (V_RES3)/* librarian display object flags */35 #define LIBRFL V_RES3 /* librarian display object flags */ 35 36 36 37 #define TTCURS 2 /* typewriter cursor object */ … … 102 103 #define M_LCLHLD 0x40 /* MIDI local hold status */ 103 104 #define M_CHNHLD 0x80 /* MIDI channel hold status */ 104 #define MKEYHELD (M_CHNHLD | M_LCLHLD) /* key held */ 105 #define MKEYHELD (M_CHNHLD | M_LCLHLD) 106 /* key held */ 105 107 106 #define PITCHMIN 320 107 #define PITCHMAX 21920 108 #define PITCHMIN 320 /* C0 in 1/2 cents (160 cents) */ 109 #define PITCHMAX 21920 /* C9 in 1/2 cents (10960 cents) */ 108 110 109 111 #define GTAG1 0x0100
Note:
See TracChangeset
for help on using the changeset viewer.