@@ -139,44 +139,47 @@ class Csound : CSOUND {
139
139
return !std::strcmp (GetTypeForArg (arg)->varTypeName , " a" );
140
140
}
141
141
142
- /* * midi channel number for this instrument
142
+ /* * midi channel number for this instrument
143
143
*/
144
- int midi_channel () { return GetMidiChannelNumber (this ); }
144
+ int midi_channel (OPDS *p ) { return GetMidiChannelNumber (p ); }
145
145
146
146
/* * midi note number for this instrument
147
147
*/
148
- int midi_note_num () { return GetMidiNoteNumber (this ); }
148
+ int midi_note_num (OPDS *p ) { return GetMidiNoteNumber (p ); }
149
149
150
150
/* * midi note velocity for this instrument
151
151
*/
152
- int midi_note_vel () { return GetMidiVelocity (this ); }
152
+ int midi_note_vel (OPDS *p ) { return GetMidiVelocity (p ); }
153
153
154
154
/* * midi aftertouch for this channel
155
155
*/
156
- MYFLT midi_chn_aftertouch () { return GetMidiChannel (this )->aftouch ; }
156
+ MYFLT midi_chn_aftertouch (OPDS *p) {
157
+ return GetMidiChannel (p)->aftouch ; }
157
158
158
159
/* * midi poly aftertouch for this channel
159
160
*/
160
- MYFLT midi_chn_polytouch (uint32_t note) {
161
- return GetMidiChannel (this )->polyaft [note];
161
+ MYFLT midi_chn_polytouch (OPDS *p, uint32_t note) {
162
+ return GetMidiChannel (p )->polyaft [note];
162
163
}
163
164
164
165
/* * midi ctl change for this channel
165
166
*/
166
- MYFLT midi_chn_ctl (uint32_t ctl) {
167
- return GetMidiChannel (this )->ctl_val [ctl];
167
+ MYFLT midi_chn_ctl (OPDS *p, uint32_t ctl) {
168
+ return GetMidiChannel (p )->ctl_val [ctl];
168
169
}
169
170
170
171
/* * midi pitchbend for this channel
171
172
*/
172
- MYFLT midi_chn_pitchbend () { return GetMidiChannel (this )->pchbend ; }
173
+ MYFLT midi_chn_pitchbend () {
174
+ return GetMidiChannel (p)->pchbend ;
175
+ }
173
176
174
177
/* * list of active instrument instances for this channel \n
175
178
returns an INSDS array with 128 items, one per
176
179
MIDI note number. Inactive instances are marked NULL.
177
180
*/
178
- const INSDS *midi_chn_list () {
179
- return ( const INSDS *) GetMidiChannel (this )->kinsptr ;
181
+ const INSDS *midi_chn_list (OPDS *p ) {
182
+ return GetMidiChannel (p )->kinsptr ;
180
183
}
181
184
182
185
/* * deinit registration for a given plugin class
0 commit comments