Subversion Repositories svn.mios32

Rev

Rev 1917 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1917 Rev 1960
Line 1... Line 1...
1
/* -*- mode:C++; tab-width:4; c-basic-offset:4; indent-tabs-mode:nil -*- */
1
/* -*- mode:C++; tab-width:4; c-basic-offset:4; indent-tabs-mode:nil -*- */
2
// $Id: MbCvEnvironment.h 1917 2014-01-06 11:34:52Z tk $
2
// $Id: MbCvEnvironment.h 1960 2014-02-09 20:21:24Z tk $
3
/*
3
/*
4
 * MIDIbox CV Toplevel
4
 * MIDIbox CV Toplevel
5
 * Instantiates multiple MIDIbox CV Units
5
 * Instantiates multiple MIDIbox CV Units
6
 *
6
 *
7
 * ==========================================================================
7
 * ==========================================================================
Line 43... Line 43...
43
    array<u16, CV_SE_NUM> cvOutMeter;
43
    array<u16, CV_SE_NUM> cvOutMeter;
44
44
45
    // CV Gates (will be mapped in MbCvEnvironment::tick() !!!)
45
    // CV Gates (will be mapped in MbCvEnvironment::tick() !!!)
46
    // up to 32 gates should be sufficient for future extensions? (currently we only use 8!)
46
    // up to 32 gates should be sufficient for future extensions? (currently we only use 8!)
47
    u32 cvGates;
47
    u32 cvGates;
-
 
48
-
 
49
    // Knobs
-
 
50
    array<u8, CV_KNOB_NUM> knobValue;
-
 
51
-
 
52
    // Scale
-
 
53
    u16 scaleKeyMask;
-
 
54
    u8 scaleKeyMap[12];
48
55
49
    // sound patch
56
    // sound patch
50
    MbCvPatch mbCvPatch;
57
    MbCvPatch mbCvPatch;
51
58
52
    // instantiate the scopes for GLCD output
59
    // instantiate the scopes for GLCD output
Line 107... Line 114...
107
114
108
    // NRPN parameter handling
115
    // NRPN parameter handling
109
    bool setNRPN(u16 nrpnNumber, u16 value);
116
    bool setNRPN(u16 nrpnNumber, u16 value);
110
    bool getNRPN(u16 nrpnNumber, u16 *value);
117
    bool getNRPN(u16 nrpnNumber, u16 *value);
111
    bool getNRPNInfo(u16 nrpnNumber, MbCvNrpnInfoT *info);
118
    bool getNRPNInfo(u16 nrpnNumber, MbCvNrpnInfoT *info);
-
 
119
   
-
 
120
    // global NRPNs
-
 
121
    bool setGlobalNRPN(u16 nrpnNumber, u16 value);
-
 
122
    bool getGlobalNRPN(u16 nrpnNumber, u16 *value);
-
 
123
    bool getGlobalNRPNInfo(u16 nrpnNumber, MbCvNrpnInfoT *info);
-
 
124
-
 
125
    // set/get knob values
-
 
126
    u8   getKnobValue(u8 knob);
-
 
127
    void setKnobValue(u8 knob, u8 value);
-
 
128
-
 
129
    // set/get scale keys
-
 
130
    u8   getScaleKey(u8 key);
-
 
131
    void setScaleKey(u8 key, u8 enable);
-
 
132
    void updateScaleKeyMap(void); // done automatically by setScaleKey
-
 
133
    u8   scaleValue(u8 value); // scales a 7bit value based on the scale key map
112
   
134
113
    // SysEx parsers
135
    // SysEx parsers
114
    //MbCvSysEx mbCvSysEx;
136
    //MbCvSysEx mbCvSysEx;
115
137
116
    // Tempo Clock
138
    // Tempo Clock