williamr@2
|
1 |
// Copyright (c) 2003-2009 Nokia Corporation and/or its subsidiary(-ies).
|
williamr@2
|
2 |
// All rights reserved.
|
williamr@2
|
3 |
// This component and the accompanying materials are made available
|
williamr@2
|
4 |
// under the terms of the License "Symbian Foundation License v1.0" to Symbian Foundation members and "Symbian Foundation End User License Agreement v1.0" to non-members
|
williamr@2
|
5 |
// which accompanies this distribution, and is available
|
williamr@2
|
6 |
// at the URL "http://www.symbianfoundation.org/legal/licencesv10.html".
|
williamr@2
|
7 |
//
|
williamr@2
|
8 |
// Initial Contributors:
|
williamr@2
|
9 |
// Nokia Corporation - initial contribution.
|
williamr@2
|
10 |
//
|
williamr@2
|
11 |
// Contributors:
|
williamr@2
|
12 |
//
|
williamr@2
|
13 |
// Description:
|
williamr@2
|
14 |
//
|
williamr@2
|
15 |
|
williamr@2
|
16 |
#ifndef __MIDISTANDARDCUSTOMCOMMANDS_H__
|
williamr@2
|
17 |
#define __MIDISTANDARDCUSTOMCOMMANDS_H__
|
williamr@2
|
18 |
|
williamr@2
|
19 |
#include <mmf/common/mmfcontroller.h>
|
williamr@2
|
20 |
#include <midiclientutility.h>
|
williamr@2
|
21 |
#include <mmf/common/mmfmidi.h>
|
williamr@2
|
22 |
|
williamr@2
|
23 |
/**
|
williamr@2
|
24 |
Interface UID for the Midi Controller API.
|
williamr@2
|
25 |
|
williamr@2
|
26 |
@publishedAll
|
williamr@2
|
27 |
@released
|
williamr@2
|
28 |
*/
|
williamr@2
|
29 |
const TUid KUidInterfaceMidi = { 0x101F945C };
|
williamr@2
|
30 |
|
williamr@2
|
31 |
/**
|
williamr@2
|
32 |
Describe a MIDI event.
|
williamr@2
|
33 |
Contains a UID to define the actual event type, and an integer to define the event code.
|
williamr@2
|
34 |
|
williamr@2
|
35 |
@publishedAll
|
williamr@2
|
36 |
@released
|
williamr@2
|
37 |
*/
|
williamr@2
|
38 |
class CMMFMidiEvent: public CBase
|
williamr@2
|
39 |
{
|
williamr@2
|
40 |
public:
|
williamr@2
|
41 |
IMPORT_C CMMFMidiEvent(TUid aEventType, TInt aErrorCode);
|
williamr@2
|
42 |
IMPORT_C CMMFMidiEvent();
|
williamr@2
|
43 |
IMPORT_C ~CMMFMidiEvent();
|
williamr@2
|
44 |
IMPORT_C void ExternalizeL(RWriteStream& aStream) const;
|
williamr@2
|
45 |
IMPORT_C void InternalizeL(RReadStream& aStream);
|
williamr@2
|
46 |
IMPORT_C void CopyL(const CMMFMidiEvent& aOther);
|
williamr@2
|
47 |
/**
|
williamr@2
|
48 |
@internalTechnology
|
williamr@2
|
49 |
*/
|
williamr@2
|
50 |
void ZeroMembers();
|
williamr@2
|
51 |
public:
|
williamr@2
|
52 |
/**
|
williamr@2
|
53 |
* A UID to define the type of MIDI event.
|
williamr@2
|
54 |
*/
|
williamr@2
|
55 |
TUid iEventType;
|
williamr@2
|
56 |
/**
|
williamr@2
|
57 |
* The error code associated with the MIDI event.
|
williamr@2
|
58 |
*/
|
williamr@2
|
59 |
TInt iErrorCode;
|
williamr@2
|
60 |
/**
|
williamr@2
|
61 |
* Old state of the MIDI client utility object.
|
williamr@2
|
62 |
*/
|
williamr@2
|
63 |
TMidiState iOldState;
|
williamr@2
|
64 |
/**
|
williamr@2
|
65 |
* Current state of the MIDI client utility object.
|
williamr@2
|
66 |
*/
|
williamr@2
|
67 |
TMidiState iNewState;
|
williamr@2
|
68 |
/**
|
williamr@2
|
69 |
* General purpose time stamp in microseconds.
|
williamr@2
|
70 |
*/
|
williamr@2
|
71 |
TTimeIntervalMicroSeconds iMicroSeconds;
|
williamr@2
|
72 |
/**
|
williamr@2
|
73 |
* General purpose time stamp in micro beats per minute.
|
williamr@2
|
74 |
*/
|
williamr@2
|
75 |
TInt64 iMicroBeats;
|
williamr@2
|
76 |
/**
|
williamr@2
|
77 |
* Channel
|
williamr@2
|
78 |
*/
|
williamr@2
|
79 |
TInt iChannel;
|
williamr@2
|
80 |
/**
|
williamr@2
|
81 |
* Volume in decibel of a logical channel.
|
williamr@2
|
82 |
*/
|
williamr@2
|
83 |
TReal32 iVolumeInDecibels;
|
williamr@2
|
84 |
/**
|
williamr@2
|
85 |
* Mute state of a track or of a channel.
|
williamr@2
|
86 |
*/
|
williamr@2
|
87 |
TBool iMute;
|
williamr@2
|
88 |
/**
|
williamr@2
|
89 |
* Meta data entry.
|
williamr@2
|
90 |
* Client will retrieve meta data entry by calling GetMetaDataEntryL()
|
williamr@2
|
91 |
* using this TInt to indicate which meta data entry to retrieve.
|
williamr@2
|
92 |
*/
|
williamr@2
|
93 |
TInt iMetaDataEntryId;
|
williamr@2
|
94 |
/**
|
williamr@2
|
95 |
* Array of logical {channel, MIP} value pairs.
|
williamr@2
|
96 |
*/
|
williamr@2
|
97 |
RArray<TMipMessageEntry> iMipMessage;
|
williamr@2
|
98 |
/**
|
williamr@2
|
99 |
* Polyphony of the MIDI engine.
|
williamr@2
|
100 |
*/
|
williamr@2
|
101 |
TInt iPolyphony;
|
williamr@2
|
102 |
/**
|
williamr@2
|
103 |
* Identifier of a bank occupying, at most, 14 bits.
|
williamr@2
|
104 |
*/
|
williamr@2
|
105 |
TInt iBankId;
|
williamr@2
|
106 |
/**
|
williamr@2
|
107 |
* Identifier of a specific instrument.
|
williamr@2
|
108 |
*/
|
williamr@2
|
109 |
TInt iInstrumentId;
|
williamr@2
|
110 |
/**
|
williamr@2
|
111 |
* Tempo value in micro beats per minute.
|
williamr@2
|
112 |
*/
|
williamr@2
|
113 |
TInt iTempoMicroBeats;
|
williamr@2
|
114 |
};
|
williamr@2
|
115 |
|
williamr@2
|
116 |
/**
|
williamr@2
|
117 |
@internalComponent
|
williamr@2
|
118 |
*/
|
williamr@2
|
119 |
enum TMMFMidiControllerMessages
|
williamr@2
|
120 |
{
|
williamr@2
|
121 |
EMMFMidiControllerSetPositionMicroBeats,
|
williamr@2
|
122 |
EMMFMidiControllerPositionMicroBeats,
|
williamr@2
|
123 |
EMMFMidiControllerPlayNote,
|
williamr@2
|
124 |
EMMFMidiControllerPlayNoteWithStartTime,
|
williamr@2
|
125 |
EMMFMidiControllerStopNotes,
|
williamr@2
|
126 |
EMMFMidiControllerNoteOn,
|
williamr@2
|
127 |
EMMFMidiControllerNoteOff,
|
williamr@2
|
128 |
EMMFMidiControllerPlaybackRate,
|
williamr@2
|
129 |
EMMFMidiControllerSetPlaybackRate,
|
williamr@2
|
130 |
EMMFMidiControllerMaxPlaybackRate,
|
williamr@2
|
131 |
EMMFMidiControllerMinPlaybackRate,
|
williamr@2
|
132 |
EMMFMidiControllerTempo,
|
williamr@2
|
133 |
EMMFMidiControllerSetTempo,
|
williamr@2
|
134 |
EMMFMidiControllerPitch,
|
williamr@2
|
135 |
EMMFMidiControllerSetPitch,
|
williamr@2
|
136 |
EMMFMidiControllerDurationMicroBeats,
|
williamr@2
|
137 |
EMMFMidiControllerNumTracks,
|
williamr@2
|
138 |
EMMFMidiControllerSetTrackMute,
|
williamr@2
|
139 |
EMMFMidiControllerMimeType,
|
williamr@2
|
140 |
EMMFMidiControllerSetSyncUpdateCallbackInterval,
|
williamr@2
|
141 |
EMMFMidiControllerSendMessage,
|
williamr@2
|
142 |
EMMFMidiControllerSendMessageWithTimeStamp,
|
williamr@2
|
143 |
EMMFMidiControllerSendMipMessage,
|
williamr@2
|
144 |
EMMFMidiControllerNumberOfBanks,
|
williamr@2
|
145 |
EMMFMidiControllerGetBankId,
|
williamr@2
|
146 |
EMMFMidiControllerLoadCustomBank,
|
williamr@2
|
147 |
EMMFMidiControllerLoadCustomBankData,
|
williamr@2
|
148 |
EMMFMidiControllerUnloadCustomBank,
|
williamr@2
|
149 |
EMMFMidiControllerCustomBankLoaded,
|
williamr@2
|
150 |
EMMFMidiControllerUnloadAllCustomBanks,
|
williamr@2
|
151 |
EMMFMidiControllerNumberOfInstruments,
|
williamr@2
|
152 |
EMMFMidiControllerGetInstrumentId,
|
williamr@2
|
153 |
EMMFMidiControllerInstrumentName,
|
williamr@2
|
154 |
EMMFMidiControllerCopyInstrumentName,
|
williamr@2
|
155 |
EMMFMidiControllerSetInstrument,
|
williamr@2
|
156 |
EMMFMidiControllerLoadCustomInstrument,
|
williamr@2
|
157 |
EMMFMidiControllerLoadCustomInstrumentData,
|
williamr@2
|
158 |
EMMFMidiControllerUnloadCustomInstrument,
|
williamr@2
|
159 |
EMMFMidiControllerPercussionKeyName,
|
williamr@2
|
160 |
EMMFMidiControllerCopyPercussionKeyName,
|
williamr@2
|
161 |
EMMFMidiControllerSetStopTime,
|
williamr@2
|
162 |
EMMFMidiControllerStopTime,
|
williamr@2
|
163 |
EMMFMidiControllerPolyphony,
|
williamr@2
|
164 |
EMMFMidiControllerSetMaxPolyphony,
|
williamr@2
|
165 |
EMMFMidiControllerChannelsSupported,
|
williamr@2
|
166 |
EMMFMidiControllerChannelVolume,
|
williamr@2
|
167 |
EMMFMidiControllerMaxChannelVolume,
|
williamr@2
|
168 |
EMMFMidiControllerSetChannelVolume,
|
williamr@2
|
169 |
EMMFMidiControllerSetChannelMute,
|
williamr@2
|
170 |
EMMFMidiControllerVolume,
|
williamr@2
|
171 |
EMMFMidiControllerMaxVolume,
|
williamr@2
|
172 |
EMMFMidiControllerSetVolume,
|
williamr@2
|
173 |
EMMFMidiControllerSetVolumeRamp,
|
williamr@2
|
174 |
EMMFMidiControllerGetBalance,
|
williamr@2
|
175 |
EMMFMidiControllerSetBalance,
|
williamr@2
|
176 |
EMMFMidiControllerGetRepeats,
|
williamr@2
|
177 |
EMMFMidiControllerSetRepeats,
|
williamr@2
|
178 |
EMMFMidiControllerSetBank,
|
williamr@2
|
179 |
EMMFMidiControllerIsTrackMute,
|
williamr@2
|
180 |
EMMFMidiControllerIsChannelMute,
|
williamr@2
|
181 |
EMMFMidiControllerGetInstrument,
|
williamr@2
|
182 |
EMMFMidiControllerClose,
|
williamr@2
|
183 |
EMMFMidiControllerStop,
|
williamr@2
|
184 |
EMMFMidiControllerReceiveEvents,
|
williamr@2
|
185 |
EMMFMidiControllerRetrieveEvent,
|
williamr@2
|
186 |
EMMFMidiControllerCancelReceiveEvents,
|
williamr@2
|
187 |
EMMFMidiControllerMaxPolyphony
|
williamr@2
|
188 |
};
|
williamr@2
|
189 |
|
williamr@2
|
190 |
/**
|
williamr@2
|
191 |
Client class to access functionality specific to a MIDI controller.
|
williamr@2
|
192 |
The class uses the custom command function of the controller plugin, and removes the necessity
|
williamr@2
|
193 |
for the client to formulate the custom commands.
|
williamr@2
|
194 |
|
williamr@2
|
195 |
@publishedAll
|
williamr@2
|
196 |
@released
|
williamr@2
|
197 |
*/
|
williamr@2
|
198 |
class RMidiControllerCustomCommands : public RMMFCustomCommandsBase
|
williamr@2
|
199 |
{
|
williamr@2
|
200 |
public:
|
williamr@2
|
201 |
IMPORT_C RMidiControllerCustomCommands(RMMFController& aController);
|
williamr@2
|
202 |
IMPORT_C TInt SetPositionMicroBeats(TInt64 aMicroBeats) const;
|
williamr@2
|
203 |
IMPORT_C TInt PositionMicroBeats(TInt64& aMicroBeats) const;
|
williamr@2
|
204 |
IMPORT_C TInt PlayNote(TInt aChannel,TInt aNote,const TTimeIntervalMicroSeconds& aDuration,TInt aNoteOnVelocity,TInt aNoteOffVelocity);
|
williamr@2
|
205 |
IMPORT_C TInt PlayNote(TInt aChannel,TInt aNote,const TTimeIntervalMicroSeconds& aStartTime, const TTimeIntervalMicroSeconds& aDuration,TInt aNoteOnVelocity,TInt aNoteOffVelocity);
|
williamr@2
|
206 |
IMPORT_C TInt StopNotes(TInt aChannel);
|
williamr@2
|
207 |
IMPORT_C TInt NoteOn(TInt aChannel,TInt aNote,TInt aVelocity);
|
williamr@2
|
208 |
IMPORT_C TInt NoteOff(TInt aChannel,TInt aNote,TInt aVelocity);
|
williamr@2
|
209 |
IMPORT_C TInt PlaybackRate(TInt& aPlayBackRate) const;
|
williamr@2
|
210 |
IMPORT_C TInt SetPlaybackRate(TInt aPlayBackRate);
|
williamr@2
|
211 |
IMPORT_C TInt MaxPlaybackRate(TInt& aMaxRate) const;
|
williamr@2
|
212 |
IMPORT_C TInt MinPlaybackRate(TInt& aMinRate) const;
|
williamr@2
|
213 |
IMPORT_C TInt TempoMicroBeatsPerMinute(TInt& aMicroBeatsPerMinute) const;
|
williamr@2
|
214 |
IMPORT_C TInt SetTempo(TInt aMicroBeatsPerMinute);
|
williamr@2
|
215 |
IMPORT_C TInt PitchTranspositionCents(TInt& aPitch) const;
|
williamr@2
|
216 |
IMPORT_C TInt SetPitchTransposition(TInt aCents, TInt& aCentsApplied);
|
williamr@2
|
217 |
IMPORT_C TInt DurationMicroBeats(TInt64& aDuration) const;
|
williamr@2
|
218 |
IMPORT_C TInt NumTracks(TInt& aTracks) const;
|
williamr@2
|
219 |
IMPORT_C TInt SetTrackMute(TInt aTrack, TBool aMuted) const;
|
williamr@2
|
220 |
IMPORT_C TInt MimeType(TDes8& aMimeType) const;
|
williamr@2
|
221 |
IMPORT_C TInt SetSyncUpdateCallbackInterval(const TTimeIntervalMicroSeconds& aMicroSeconds,TInt64 aMicroBeats=0);
|
williamr@2
|
222 |
IMPORT_C TInt SendMessage(const TDesC8& aMidiMessage, TInt& aBytes);
|
williamr@2
|
223 |
IMPORT_C TInt SendMessage(const TDesC8& aMidiMessage,const TTimeIntervalMicroSeconds& aTime, TInt& aBytes);
|
williamr@2
|
224 |
IMPORT_C TInt SendMipMessage(const RArray<TMipMessageEntry>& aEntry);
|
williamr@2
|
225 |
IMPORT_C TInt NumberOfBanks(TBool aCustom, TInt& aNumBanks) const;
|
williamr@2
|
226 |
IMPORT_C TInt GetBankId(TBool aCustom, TInt aBankIndex, TInt& aBankId) const;
|
williamr@2
|
227 |
IMPORT_C TInt LoadCustomBank(const TDesC& aFileName,TInt& aBankId);
|
williamr@2
|
228 |
IMPORT_C TInt LoadCustomBankData(const TDesC8& aBankData,TInt& aBankId);
|
williamr@2
|
229 |
IMPORT_C TInt UnloadCustomBank(TInt aBankId);
|
williamr@2
|
230 |
IMPORT_C TInt CustomBankLoaded(TInt aBankId, TBool& aBankLoaded) const;
|
williamr@2
|
231 |
IMPORT_C TInt UnloadAllCustomBanks();
|
williamr@2
|
232 |
IMPORT_C TInt NumberOfInstruments(TInt aBankId, TBool aCustom, TInt& aNumInstruments) const;
|
williamr@2
|
233 |
IMPORT_C TInt GetInstrumentId(TInt aBankId,TBool aCustom,TInt aInstrumentIndex, TInt& aInstrumentId) const;
|
williamr@2
|
234 |
IMPORT_C HBufC* InstrumentNameL(TInt aBankId, TBool aCustom, TInt aInstrumentId) const;
|
williamr@2
|
235 |
IMPORT_C TInt SetInstrument(TInt aChannel,TInt aBankId,TInt aInstrumentId);
|
williamr@2
|
236 |
IMPORT_C TInt LoadCustomInstrument(const TDesC& aFileName, TInt aFileBankId, TInt aFileInstrumentId, TInt aMemoryBankId, TInt aMemoryInstrumentId);
|
williamr@2
|
237 |
IMPORT_C TInt LoadCustomInstrumentData(const TDesC8& aInstrumentData, TInt aBankDataId, TInt aInstrumentDataId, TInt aMemoryBankId, TInt aMemoryInstrumentId);
|
williamr@2
|
238 |
IMPORT_C TInt UnloadCustomInstrument(TInt aCustomBankId,TInt aInstrumentId);
|
williamr@2
|
239 |
IMPORT_C HBufC* PercussionKeyNameL(TInt aNote, TInt aBankId, TBool aCustom, TInt aInstrumentId) const;
|
williamr@2
|
240 |
IMPORT_C TInt StopTime(TTimeIntervalMicroSeconds& aStopTime) const;
|
williamr@2
|
241 |
IMPORT_C TInt SetStopTime(const TTimeIntervalMicroSeconds& aStopTime) const;
|
williamr@2
|
242 |
IMPORT_C TInt Polyphony(TInt& aNumNotes) const;
|
williamr@2
|
243 |
IMPORT_C TInt ChannelsSupported(TInt& aChannels) const;
|
williamr@2
|
244 |
IMPORT_C TInt ChannelVolume(TInt aChannel, TReal32& aChannelVol) const;
|
williamr@2
|
245 |
IMPORT_C TInt MaxChannelVolume(TReal32& aMaxVol) const;
|
williamr@2
|
246 |
IMPORT_C TInt SetChannelVolume(TInt aChannel,TReal32 aVolume);
|
williamr@2
|
247 |
IMPORT_C TInt SetChannelMute(TInt aChannel,TBool aMuted);
|
williamr@2
|
248 |
IMPORT_C TInt Volume(TInt& aVolume) const;
|
williamr@2
|
249 |
IMPORT_C TInt MaxVolume(TInt& aMaxVolume) const;
|
williamr@2
|
250 |
IMPORT_C TInt SetVolume(TInt aVolume);
|
williamr@2
|
251 |
IMPORT_C TInt SetVolumeRamp(const TTimeIntervalMicroSeconds& aRampDuration);
|
williamr@2
|
252 |
IMPORT_C TInt GetBalance(TInt& aBalance) const;
|
williamr@2
|
253 |
IMPORT_C TInt SetBalance(TInt aBalance);
|
williamr@2
|
254 |
IMPORT_C TInt SetMaxPolyphony(TInt aMaxNotes);
|
williamr@2
|
255 |
IMPORT_C TInt GetRepeats(TInt& aNumRepeats) const;
|
williamr@2
|
256 |
IMPORT_C TInt SetRepeats(TInt aRepeatNumberOfTimes, const TTimeIntervalMicroSeconds& aTrailingSilence);
|
williamr@2
|
257 |
IMPORT_C TInt SetBank(TBool aCustom);
|
williamr@2
|
258 |
IMPORT_C TInt IsTrackMute(TInt aTrack, TBool& aTrackMute) const;
|
williamr@2
|
259 |
IMPORT_C TInt IsChannelMute(TInt aChannel, TBool& aChannelMute) const;
|
williamr@2
|
260 |
IMPORT_C TInt GetInstrument(TInt aChannel, TInt& aInstrumentId, TInt& aBankId);
|
williamr@2
|
261 |
IMPORT_C TInt Close();
|
williamr@2
|
262 |
IMPORT_C TInt Stop(const TTimeIntervalMicroSeconds& aFadeOutDuration);
|
williamr@2
|
263 |
IMPORT_C void ReceiveEvents(TPckgBuf<TInt>& aEventSize, TRequestStatus& aStatus);
|
williamr@2
|
264 |
IMPORT_C TInt RetrieveEvent(TDes8& aMidiEventPckg);
|
williamr@2
|
265 |
IMPORT_C TInt CancelReceiveEvents();
|
williamr@2
|
266 |
IMPORT_C TInt MaxPolyphony(TInt& aNumNotes) const;
|
williamr@2
|
267 |
};
|
williamr@2
|
268 |
|
williamr@2
|
269 |
|
williamr@2
|
270 |
/**
|
williamr@2
|
271 |
Mixin class to be derived from by controller plugins wishing
|
williamr@2
|
272 |
to support the MIDI controller custom commands.
|
williamr@2
|
273 |
|
williamr@2
|
274 |
@publishedAll
|
williamr@2
|
275 |
@released
|
williamr@2
|
276 |
*/
|
williamr@2
|
277 |
class MMidiCustomCommandImplementor
|
williamr@2
|
278 |
{
|
williamr@2
|
279 |
public:
|
williamr@2
|
280 |
/**
|
williamr@2
|
281 |
Change the position of the currently playing MIDI resource to the given position.
|
williamr@2
|
282 |
May be called whenever a MIDI resource is open.
|
williamr@2
|
283 |
|
williamr@2
|
284 |
@param aMicroBeats
|
williamr@2
|
285 |
Metrical position to move to. Clamped to (0, DurationMicroBeats()).
|
williamr@2
|
286 |
*/
|
williamr@2
|
287 |
virtual void MmcSetPositionMicroBeatsL(TInt64 aMicroBeats) = 0;
|
williamr@2
|
288 |
/**
|
williamr@2
|
289 |
Gets the current metrical position of the MIDI resource being played
|
williamr@2
|
290 |
|
williamr@2
|
291 |
@param aMicroBeats
|
williamr@2
|
292 |
(BPM*1000000) relative to the start of the resource
|
williamr@2
|
293 |
*/
|
williamr@2
|
294 |
virtual void MmcPositionMicroBeatsL(TInt64& aMicroBeats) = 0;
|
williamr@2
|
295 |
/**
|
williamr@2
|
296 |
Synchronous function to play a single note.
|
williamr@2
|
297 |
Multiple calls to this function will be accommodated as far as the MIDI engine can
|
williamr@2
|
298 |
manage. The same functionality could be implemented using the SendMessage function
|
williamr@2
|
299 |
|
williamr@2
|
300 |
@param aChannel
|
williamr@2
|
301 |
Logical channel to play note on. 0 <= aChannel <= 15.
|
williamr@2
|
302 |
@param aNote
|
williamr@2
|
303 |
Note to play. 0 <= aNote <= 127
|
williamr@2
|
304 |
@param aDuration
|
williamr@2
|
305 |
Length of time to play note for.
|
williamr@2
|
306 |
@param aNoteOnVelocity
|
williamr@2
|
307 |
Velocity with which to start the note. 0 <= aNoteOnVelocity <= 127.
|
williamr@2
|
308 |
@param aNoteOffVelocity
|
williamr@2
|
309 |
Velocity with which to stop the note. 0 <= aNoteOffVelocity <= 127.
|
williamr@2
|
310 |
*/
|
williamr@2
|
311 |
virtual void MmcPlayNoteL(TInt aChannel,TInt aNote,const TTimeIntervalMicroSeconds& aDuration,TInt aNoteOnVelocity,TInt aNoteOffVelocity) = 0;
|
williamr@2
|
312 |
/**
|
williamr@2
|
313 |
Synchronous function to play a single note at a specified time.
|
williamr@2
|
314 |
Multiple calls to this function will be accommodated as far as the MIDI engine can
|
williamr@2
|
315 |
manage. The same functionality could be implemented using the SendMessage function
|
williamr@2
|
316 |
|
williamr@2
|
317 |
@param aChannel
|
williamr@2
|
318 |
Logical channel to play note on. 0 <= aChannel <= 15.
|
williamr@2
|
319 |
@param aNote
|
williamr@2
|
320 |
Note to play. 0 <= aNote <= 127
|
williamr@2
|
321 |
@param aStartTime
|
williamr@2
|
322 |
Specifies the time at which to start playing the note, relative to the MIDI
|
williamr@2
|
323 |
resource playing time or the time elapsed since Play() was called if no resource is present.
|
williamr@2
|
324 |
@param aDuration
|
williamr@2
|
325 |
Length of time to play note for.
|
williamr@2
|
326 |
@param aNoteOnVelocity
|
williamr@2
|
327 |
Velocity with which to start the note. 0 <= aNoteOnVelocity <= 127.
|
williamr@2
|
328 |
@param aNoteOffVelocity
|
williamr@2
|
329 |
Velocity with which to stop the note. 0 <= aNoteOffVelocity <= 127.
|
williamr@2
|
330 |
*/
|
williamr@2
|
331 |
virtual void MmcPlayNoteL(TInt aChannel,TInt aNote,const TTimeIntervalMicroSeconds& aStartTime, const TTimeIntervalMicroSeconds& aDuration,TInt aNoteOnVelocity,TInt aNoteOffVelocity) = 0;
|
williamr@2
|
332 |
/**
|
williamr@2
|
333 |
Stops the playback of all notes on the given channel,
|
williamr@2
|
334 |
by means of an All Notes Off MIDI message
|
williamr@2
|
335 |
|
williamr@2
|
336 |
@param aChannel
|
williamr@2
|
337 |
Logical channel to stop notes on. 0 <= aChannel <= 15
|
williamr@2
|
338 |
*/
|
williamr@2
|
339 |
virtual void MmcStopNotesL(TInt aChannel) = 0;
|
williamr@2
|
340 |
/**
|
williamr@2
|
341 |
Synchronous function to commence playback of a note.
|
williamr@2
|
342 |
Multiple calls to this function will be accommodated as far as the MIDI engine can manage
|
williamr@2
|
343 |
|
williamr@2
|
344 |
@param aChannel
|
williamr@2
|
345 |
Logical channel to play note on. 0 <= aChannel <= 15.
|
williamr@2
|
346 |
@param aNote
|
williamr@2
|
347 |
Note to play. 0 <= aNote <= 127.
|
williamr@2
|
348 |
@param aVelocity
|
williamr@2
|
349 |
Velocity with which to start the note. The legal integer range
|
williamr@2
|
350 |
is 0 <= aVelocity <= 127, but the value zero actually causes the
|
williamr@2
|
351 |
message to be interpreted as a Note Off message instead of a Note On.
|
williamr@2
|
352 |
*/
|
williamr@2
|
353 |
virtual void MmcNoteOnL(TInt aChannel,TInt aNote,TInt aVelocity) = 0;
|
williamr@2
|
354 |
/**
|
williamr@2
|
355 |
Synchronous function to terminate playback of a note.
|
williamr@2
|
356 |
If no corresponding note is found then no error is raised
|
williamr@2
|
357 |
|
williamr@2
|
358 |
@param aChannel
|
williamr@2
|
359 |
Logical channel on which the note is playing. 0 <= aChannel <= 15.
|
williamr@2
|
360 |
@param aNote
|
williamr@2
|
361 |
Note to terminate. 0 <= aNote <= 127.
|
williamr@2
|
362 |
@param aVelocity
|
williamr@2
|
363 |
Velocity with which to stop the note. 0 <= aVelocity <= 127.
|
williamr@2
|
364 |
There is no standard behaviour corresponding with note off velocity.
|
williamr@2
|
365 |
*/
|
williamr@2
|
366 |
virtual void MmcNoteOffL(TInt aChannel,TInt aNote,TInt aVelocity) = 0;
|
williamr@2
|
367 |
/**
|
williamr@2
|
368 |
Gets the current playback rate factor of the currently open MIDI resource.
|
williamr@2
|
369 |
The playback rate is independent from tempo,
|
williamr@2
|
370 |
i.e., it can be used to give an overall speed factor for playback.
|
williamr@2
|
371 |
|
williamr@2
|
372 |
@param aPlayBackRate
|
williamr@2
|
373 |
Current playback rate in percent times 1000, i.e., 100000 means original
|
williamr@2
|
374 |
playback speed, 200000 means double speed, and 50000 means half speed playback.
|
williamr@2
|
375 |
*/
|
williamr@2
|
376 |
virtual void MmcPlaybackRateL(TInt& aPlayBackRate) = 0;
|
williamr@2
|
377 |
/**
|
williamr@2
|
378 |
Sets the playback rate for the playback of the current MIDI resource.
|
williamr@2
|
379 |
The playback rate is independent from tempo,
|
williamr@2
|
380 |
i.e., it can be used to give an overall speed factor for playback.
|
williamr@2
|
381 |
May be called whether playback is in progress or not.
|
williamr@2
|
382 |
|
williamr@2
|
383 |
@param aPlayBackRate
|
williamr@2
|
384 |
Playback rate in percent times 1000, i.e., 100000 means original playback speed,
|
williamr@2
|
385 |
200000 means double speed, and 50000 means half speed playback.
|
williamr@2
|
386 |
*/
|
williamr@2
|
387 |
virtual void MmcSetPlaybackRateL(TInt aPlayBackRate) = 0;
|
williamr@2
|
388 |
/**
|
williamr@2
|
389 |
Gets the maximum playback rate in milli-percentage from the MIDI engine.
|
williamr@2
|
390 |
@see SetPlaybackRate() for milli-percentage details.
|
williamr@2
|
391 |
|
williamr@2
|
392 |
@param aMaxRate
|
williamr@2
|
393 |
Playback rate supported by MIDI player.
|
williamr@2
|
394 |
*/
|
williamr@2
|
395 |
virtual void MmcMaxPlaybackRateL(TInt& aMaxRate) = 0;
|
williamr@2
|
396 |
/**
|
williamr@2
|
397 |
Gets the minimum playback rate in milli-percentage from the MIDI engine.
|
williamr@2
|
398 |
@see SetPlaybackRate() for milli-percentage details.
|
williamr@2
|
399 |
|
williamr@2
|
400 |
@param aMinRate
|
williamr@2
|
401 |
Minimum playback rate supported by MIDI player.
|
williamr@2
|
402 |
*/
|
williamr@2
|
403 |
virtual void MmcMinPlaybackRateL(TInt& aMinRate) = 0;
|
williamr@2
|
404 |
/**
|
williamr@2
|
405 |
Gets the current tempo of the currently open MIDI resource. The tempo is independent
|
williamr@2
|
406 |
from the playback rate, i.e., the resulting playback speed will be affected by both.
|
williamr@2
|
407 |
|
williamr@2
|
408 |
@param aMicroBeatsPerMinute
|
williamr@2
|
409 |
Tempo at the current position of the currently open resource in microbeats
|
williamr@2
|
410 |
per minute, i.e. BPM * 1000000. Filled in by the controller framework.
|
williamr@2
|
411 |
*/
|
williamr@2
|
412 |
virtual void MmcTempoMicroBeatsPerMinuteL(TInt& aMicroBeatsPerMinute) = 0;
|
williamr@2
|
413 |
/**
|
williamr@2
|
414 |
Sets the tempo at which the current MIDI resource should be played.
|
williamr@2
|
415 |
May be called whether playback is in progress or not. The tempo is
|
williamr@2
|
416 |
independent from the playback rate, i.e., the resulting playback speed
|
williamr@2
|
417 |
will be affected by both.
|
williamr@2
|
418 |
|
williamr@2
|
419 |
@param aMicroBeatsPerMinute
|
williamr@2
|
420 |
Tempo in microbeats per minute (BPM*1000000) to set.
|
williamr@2
|
421 |
*/
|
williamr@2
|
422 |
virtual void MmcSetTempoL(TInt aMicroBeatsPerMinute) = 0;
|
williamr@2
|
423 |
/**
|
williamr@2
|
424 |
Gets the pitch shift in use for the currently open MIDI resource.
|
williamr@2
|
425 |
|
williamr@2
|
426 |
@param aPitch
|
williamr@2
|
427 |
Shift in cents, i.e. semitones * 100. One octave equals 1200 cents.
|
williamr@2
|
428 |
@return One of the system-wide error codes.
|
williamr@2
|
429 |
*/
|
williamr@2
|
430 |
virtual void MmcPitchTranspositionCentsL(TInt& aPitch) = 0;
|
williamr@2
|
431 |
/**
|
williamr@2
|
432 |
Sets the pitch shift to apply to the currently open MIDI resource.
|
williamr@2
|
433 |
May be called during playback.
|
williamr@2
|
434 |
|
williamr@2
|
435 |
@param aCents
|
williamr@2
|
436 |
Pitch shift in cents, i.e. semitones * 100. One octave equals 1200 cents.
|
williamr@2
|
437 |
@param aCentsApplied
|
williamr@2
|
438 |
Actual pitch shift applied - may differ from the requested value due
|
williamr@2
|
439 |
to limitations of the MIDI engine.
|
williamr@2
|
440 |
*/
|
williamr@2
|
441 |
virtual void MmcSetPitchTranspositionL(TInt aCents, TInt& aCentsApplied) = 0;
|
williamr@2
|
442 |
/**
|
williamr@2
|
443 |
Gets the length of the currently open MIDI resource in micro-beats
|
williamr@2
|
444 |
|
williamr@2
|
445 |
@param aDuration
|
williamr@2
|
446 |
Duration in microbeats (beats * 1000000).
|
williamr@2
|
447 |
*/
|
williamr@2
|
448 |
virtual void MmcDurationMicroBeatsL(TInt64& aDuration) = 0;
|
williamr@2
|
449 |
/**
|
williamr@2
|
450 |
Gets the number of tracks present in the currently open MIDI resource.
|
williamr@2
|
451 |
|
williamr@2
|
452 |
@param aTracks
|
williamr@2
|
453 |
Number of tracks.
|
williamr@2
|
454 |
*/
|
williamr@2
|
455 |
virtual void MmcNumTracksL(TInt& aTracks) = 0;
|
williamr@2
|
456 |
/**
|
williamr@2
|
457 |
Mutes or unmutes a particular track.
|
williamr@2
|
458 |
|
williamr@2
|
459 |
@param aTrack
|
williamr@2
|
460 |
Index of the track to mute - 0 <= aTrack < NumTracks().
|
williamr@2
|
461 |
@param aMuted
|
williamr@2
|
462 |
ETrue to mute the track, EFalse to unmute it.
|
williamr@2
|
463 |
*/
|
williamr@2
|
464 |
virtual void MmcSetTrackMuteL(TInt aTrack, TBool aMuted) = 0;
|
williamr@2
|
465 |
/**
|
williamr@2
|
466 |
Gets the MIME type of the MIDI resource currently open.
|
williamr@2
|
467 |
|
williamr@2
|
468 |
@param aMimeType
|
williamr@2
|
469 |
Descriptor containing the MIDI mime type.
|
williamr@2
|
470 |
*/
|
williamr@2
|
471 |
virtual void MmcMimeTypeL(TDes8& aMimeType) = 0;
|
williamr@2
|
472 |
/**
|
williamr@2
|
473 |
Sets the frequency at which MMIDIClientUtilityObserver::MmcuoSyncUpdateL() is called
|
williamr@2
|
474 |
to allow other components to synchronise with playback of this MIDI resource.
|
williamr@2
|
475 |
|
williamr@2
|
476 |
@param aMicroSeconds
|
williamr@2
|
477 |
Temporal interval to callback at. Used in preference to aMicroBeats if both are set.
|
williamr@2
|
478 |
@param aMicroBeats
|
williamr@2
|
479 |
Metrical interval to callback at. Set both parameters to zero to cancel.
|
williamr@2
|
480 |
*/
|
williamr@2
|
481 |
virtual void MmcSetSyncUpdateCallbackIntervalL(const TTimeIntervalMicroSeconds& aMicroSeconds,TInt64 aMicroBeats=0) = 0;
|
williamr@2
|
482 |
/**
|
williamr@2
|
483 |
Sends a single MIDI message to the MIDI engine.
|
williamr@2
|
484 |
|
williamr@2
|
485 |
@param aMidiMessage
|
williamr@2
|
486 |
Descriptor containing the MIDI message data. If there are several
|
williamr@2
|
487 |
MIDI messages in the buffer, only the first one is processed.
|
williamr@2
|
488 |
@param aBytes
|
williamr@2
|
489 |
Number of bytes of the message buffer actually processed.
|
williamr@2
|
490 |
*/
|
williamr@2
|
491 |
virtual void MmcSendMessageL(const TDesC8& aMidiMessage, TInt& aBytes) = 0;
|
williamr@2
|
492 |
/**
|
williamr@2
|
493 |
Sends a single MIDI message, with time stamp, to the MIDI engine.
|
williamr@2
|
494 |
|
williamr@2
|
495 |
@param aMidiMessage
|
williamr@2
|
496 |
Descriptor containing the MIDI message data. If there are several
|
williamr@2
|
497 |
MIDI messages in the buffer, only the first one is processed.
|
williamr@2
|
498 |
@param aTime
|
williamr@2
|
499 |
The time at which to execute the message, relative to the MIDI resource playing
|
williamr@2
|
500 |
time or the time elapsed since Play() was called if no resource is present.
|
williamr@2
|
501 |
@param aBytes
|
williamr@2
|
502 |
Number of bytes of the message buffer actually processed.
|
williamr@2
|
503 |
*/
|
williamr@2
|
504 |
virtual void MmcSendMessageL(const TDesC8& aMidiMessage,const TTimeIntervalMicroSeconds& aTime, TInt& aBytes) = 0;
|
williamr@2
|
505 |
/**
|
williamr@2
|
506 |
Sends a mip message to the MIDI engine. This is a convenience function,
|
williamr@2
|
507 |
because the same functionality could be achieved with the SendMessage() function.
|
williamr@2
|
508 |
|
williamr@2
|
509 |
@param aEntry
|
williamr@2
|
510 |
Array of logical {channel, MIP} value pairs to send, highest priority first.
|
williamr@2
|
511 |
*/
|
williamr@2
|
512 |
virtual void MmcSendMipMessageL(const TArray<TMipMessageEntry>& aEntry) = 0;
|
williamr@2
|
513 |
/**
|
williamr@2
|
514 |
Gets the number of standard or custom sound banks currently available.
|
williamr@2
|
515 |
|
williamr@2
|
516 |
@param aCustom
|
williamr@2
|
517 |
Specifies whether to reference a custom or standard sound bank.
|
williamr@2
|
518 |
@param aNumBanks
|
williamr@2
|
519 |
Number of custom or standard sound banks available.
|
williamr@2
|
520 |
*/
|
williamr@2
|
521 |
virtual void MmcNumberOfBanksL(TBool aCustom, TInt& aNumBanks) = 0;
|
williamr@2
|
522 |
/**
|
williamr@2
|
523 |
Gets the identifier of a sound bank. Bank identifier (aka bank number) is a
|
williamr@2
|
524 |
14-bit value consisting of MIDI bank MSB and LSB values.
|
williamr@2
|
525 |
|
williamr@2
|
526 |
@param aCustom
|
williamr@2
|
527 |
Specifies whether to reference a custom or standard sound bank.
|
williamr@2
|
528 |
@param aBankIndex
|
williamr@2
|
529 |
Index of sound bank where 0 <= aBankIndex < NumberOfBanks().
|
williamr@2
|
530 |
@param aBankId
|
williamr@2
|
531 |
Identifier of the specified bank occupying, at most, 14 bits.
|
williamr@2
|
532 |
*/
|
williamr@2
|
533 |
virtual void MmcGetBankIdL(TBool aCustom, TInt aBankIndex, TInt& aBankId) = 0;
|
williamr@2
|
534 |
/**
|
williamr@2
|
535 |
Loads one or more custom sound banks from a file into memory for use.
|
williamr@2
|
536 |
If several banks are loaded with consequent LoadCustomBanksL() function calls,
|
williamr@2
|
537 |
the banks are combined if the bank sets have conflicting bank numbers.
|
williamr@2
|
538 |
|
williamr@2
|
539 |
@param aFileName
|
williamr@2
|
540 |
Name of the file containing the custom sound bank.
|
williamr@2
|
541 |
@param aBankId
|
williamr@2
|
542 |
Identifier of the custom sound bank loaded, occupying no more than 14 bits.
|
williamr@2
|
543 |
*/
|
williamr@2
|
544 |
virtual void MmcLoadCustomBankL(const TDesC& aFileName,TInt& aBankId) = 0;
|
williamr@2
|
545 |
/**
|
williamr@2
|
546 |
Loads one or more custom sound banks from a descriptor into memory for use.
|
williamr@2
|
547 |
If several banks are loaded with consequent LoadCustomBanksL() function calls,
|
williamr@2
|
548 |
the banks are combined if the bank sets have conflicting bank numbers.
|
williamr@2
|
549 |
|
williamr@2
|
550 |
@param aBankData
|
williamr@2
|
551 |
Descriptor containing the custom sound bank.
|
williamr@2
|
552 |
@param aBankId
|
williamr@2
|
553 |
Identifier of the custom sound bank loaded, occupying no more than 14 bits.
|
williamr@2
|
554 |
*/
|
williamr@2
|
555 |
virtual void MmcLoadCustomBankDataL(const TDesC8& aBankData,TInt& aBankId) = 0;
|
williamr@2
|
556 |
/**
|
williamr@2
|
557 |
Removes a custom sound bank from memory. Only valid for sound banks previously
|
williamr@2
|
558 |
loaded from file. Once unloaded the custom sound bank is no longer available for use.
|
williamr@2
|
559 |
|
williamr@2
|
560 |
@param aBankId
|
williamr@2
|
561 |
Identifier of the custom sound bank to unload,occupying no more than 14 bits.
|
williamr@2
|
562 |
*/
|
williamr@2
|
563 |
virtual void MmcUnloadCustomBankL(TInt aBankId) = 0;
|
williamr@2
|
564 |
/**
|
williamr@2
|
565 |
Query if a bank has been loaded to the memory.
|
williamr@2
|
566 |
|
williamr@2
|
567 |
@param aBankId
|
williamr@2
|
568 |
Identifier of the custom sound bank to check if it's in memory or not.
|
williamr@2
|
569 |
@param aBankLoaded
|
williamr@2
|
570 |
ETrue if the specified bank is in memory, EFalse otherwise.
|
williamr@2
|
571 |
*/
|
williamr@2
|
572 |
virtual void MmcCustomBankLoadedL(TInt aBankId, TBool& aBankLoaded) = 0;
|
williamr@2
|
573 |
/**
|
williamr@2
|
574 |
Removes all custom sound banks from memory.
|
williamr@2
|
575 |
*/
|
williamr@2
|
576 |
virtual void MmcUnloadAllCustomBanksL() = 0;
|
williamr@2
|
577 |
/**
|
williamr@2
|
578 |
Gets the number of instruments available in a given sound bank.
|
williamr@2
|
579 |
|
williamr@2
|
580 |
@param aBankId
|
williamr@2
|
581 |
Identifier of sound bank to reference, occupying no more than 14 bits.
|
williamr@2
|
582 |
@param aCustom
|
williamr@2
|
583 |
Specifies whether to reference a custom or standard sound bank.
|
williamr@2
|
584 |
@param aNumInstruments
|
williamr@2
|
585 |
Count of the number of instruments available for the specified sound bank.
|
williamr@2
|
586 |
*/
|
williamr@2
|
587 |
virtual void MmcNumberOfInstrumentsL(TInt aBankId, TBool aCustom, TInt& aNumInstruments) = 0;
|
williamr@2
|
588 |
/**
|
williamr@2
|
589 |
Gets the identifier of an instrument.
|
williamr@2
|
590 |
|
williamr@2
|
591 |
@param aBankId
|
williamr@2
|
592 |
Identifier of the sound bank to reference, occupying no more than 14 bits.
|
williamr@2
|
593 |
@param aCustom
|
williamr@2
|
594 |
Specifies whether to reference a custom or standard sound bank.
|
williamr@2
|
595 |
@param aInstrumentIndex
|
williamr@2
|
596 |
Index of the instrument to reference where 0 <= aInstrumentIndex < NumberOfInstrumentsL().
|
williamr@2
|
597 |
@param aInstrumentId
|
williamr@2
|
598 |
Identifier of specified instrument. This may differ from the index since the
|
williamr@2
|
599 |
index simply enumerates the instruments, whereas identifiers may not be
|
williamr@2
|
600 |
contiguous, especially where certain instruments correspond to General MIDI-defined
|
williamr@2
|
601 |
instruments but not all instruments are present. Instrument identifiers are
|
williamr@2
|
602 |
between 0 and 127 inclusive.
|
williamr@2
|
603 |
*/
|
williamr@2
|
604 |
virtual void MmcGetInstrumentIdL(TInt aBankId,TBool aCustom,TInt aInstrumentIndex, TInt& aInstrumentId) = 0;
|
williamr@2
|
605 |
/**
|
williamr@2
|
606 |
Gets the name of the given instrument.
|
williamr@2
|
607 |
|
williamr@2
|
608 |
@param aBankId
|
williamr@2
|
609 |
Identifier of the bank that the instrument belongs to, occupying no more than 14 bits.
|
williamr@2
|
610 |
@param aCustom
|
williamr@2
|
611 |
Specifies whether to reference a custom or standard sound bank.
|
williamr@2
|
612 |
@param aInstrumentId
|
williamr@2
|
613 |
Identifier of the instrument under scrutiny. 0 <= aInstrumentId <= 127.
|
williamr@2
|
614 |
@return Buffer containing the name of the specified instrument.
|
williamr@2
|
615 |
If it has no name then an empty descriptor is returned.
|
williamr@2
|
616 |
*/
|
williamr@2
|
617 |
virtual const TDesC& MmcInstrumentNameL(TInt aBankId, TBool aCustom, TInt aInstrumentId) = 0;
|
williamr@2
|
618 |
/**
|
williamr@2
|
619 |
Sets a logical channel to use the given instrument.
|
williamr@2
|
620 |
|
williamr@2
|
621 |
@param aChannel
|
williamr@2
|
622 |
Logical channel to set the instrument for. 0 <= aChannel <= 15.
|
williamr@2
|
623 |
@param aBankId
|
williamr@2
|
624 |
Identifier of the bank that the instrument belongs to, occupying no more than 14 bits.
|
williamr@2
|
625 |
The bank ID is a concatenation of MIDI bank MSB and LSB values.
|
williamr@2
|
626 |
@param aInstrumentId
|
williamr@2
|
627 |
Identifier of the instrument under scrutiny. 0 <= aInstrumentId <= 127.
|
williamr@2
|
628 |
*/
|
williamr@2
|
629 |
virtual void MmcSetInstrumentL(TInt aChannel,TInt aBankId,TInt aInstrumentId) = 0;
|
williamr@2
|
630 |
/**
|
williamr@2
|
631 |
Loads an individual instrument from file into custom sound bank memory for use.
|
williamr@2
|
632 |
The bank and instrument ids given in the file can be mapped into different bank
|
williamr@2
|
633 |
and instrument ids in memory.
|
williamr@2
|
634 |
|
williamr@2
|
635 |
@param aFileName
|
williamr@2
|
636 |
Name of the file containing the instrument.
|
williamr@2
|
637 |
@param aFileBankId
|
williamr@2
|
638 |
Identifier of the bank in the file from which to load the instrument,
|
williamr@2
|
639 |
occupying no more than 14 bits.
|
williamr@2
|
640 |
@param aFileInstrumentId
|
williamr@2
|
641 |
Identifier of the instrument to load. 0 <= aInstrumentId <= 127.
|
williamr@2
|
642 |
@param aMemoryBankId
|
williamr@2
|
643 |
Identifier of the custom bank in memory to load the instrument into,
|
williamr@2
|
644 |
occupying no more than 14 bits.
|
williamr@2
|
645 |
@param aMemoryInstrumentId
|
williamr@2
|
646 |
Identifier of the instrument in memory to load the new instrument into.
|
williamr@2
|
647 |
0 <= aInstrumentId <= 127.
|
williamr@2
|
648 |
*/
|
williamr@2
|
649 |
virtual void MmcLoadCustomInstrumentL(const TDesC& aFileName, TInt aFileBankId, TInt aFileInstrumentId, TInt aMemoryBankId, TInt aMemoryInstrumentId) = 0;
|
williamr@2
|
650 |
/**
|
williamr@2
|
651 |
Loads an individual instrument from descriptor into custom sound bank memory for use.
|
williamr@2
|
652 |
The bank and instrument ids given in the descriptor can be mapped into different bank
|
williamr@2
|
653 |
and instrument ids in memory.
|
williamr@2
|
654 |
|
williamr@2
|
655 |
@param aInstrumentData
|
williamr@2
|
656 |
Descriptor containing the instrument.
|
williamr@2
|
657 |
@param aBankDataId
|
williamr@2
|
658 |
Identifier of the bank in the descriptor from which to load the instrument,
|
williamr@2
|
659 |
occupying no more than 14 bits.
|
williamr@2
|
660 |
@param aInstrumentDataId
|
williamr@2
|
661 |
Identifier of the instrument to load. 0 <= aInstrumentId <= 127.
|
williamr@2
|
662 |
@param aMemoryBankId
|
williamr@2
|
663 |
Identifier of the custom bank in memory to load the instrument into,
|
williamr@2
|
664 |
occupying no more than 14 bits.
|
williamr@2
|
665 |
@param aMemoryInstrumentId
|
williamr@2
|
666 |
Identifier of the instrument in memory to load the new instrument into.
|
williamr@2
|
667 |
0 <= aInstrumentId <= 127.
|
williamr@2
|
668 |
*/
|
williamr@2
|
669 |
virtual void MmcLoadCustomInstrumentDataL(const TDesC8& aInstrumentData, TInt aBankDataId, TInt aInstrumentDataId, TInt aMemoryBankId, TInt aMemoryInstrumentId) = 0;
|
williamr@2
|
670 |
/**
|
williamr@2
|
671 |
Removes an instrument from custom sound bank memory.
|
williamr@2
|
672 |
Only valid for instruments previously loaded from file.
|
williamr@2
|
673 |
Once unloaded the instrument is no longer available for use.
|
williamr@2
|
674 |
|
williamr@2
|
675 |
@param aCustomBankId
|
williamr@2
|
676 |
Identifier of the custom sound bank containing the instrument
|
williamr@2
|
677 |
to unload, occupying no more than 14 bits.
|
williamr@2
|
678 |
@param aInstrumentId
|
williamr@2
|
679 |
Identifier of the instrument to unload. 0 <= aInstrumentId <= 127.
|
williamr@2
|
680 |
*/
|
williamr@2
|
681 |
virtual void MmcUnloadCustomInstrumentL(TInt aCustomBankId,TInt aInstrumentId) = 0;
|
williamr@2
|
682 |
/**
|
williamr@2
|
683 |
Gets the name of a particular percussion key corresponding to a given note.
|
williamr@2
|
684 |
|
williamr@2
|
685 |
@param aNote
|
williamr@2
|
686 |
Note to query. 0 <= aNote <= 127.
|
williamr@2
|
687 |
@param aBankId
|
williamr@2
|
688 |
Identifier of the bank that the instrument belongs to, occupying no more than 14 bits.
|
williamr@2
|
689 |
The bank ID is a concatenation of MIDI bank MSB and LSB values.
|
williamr@2
|
690 |
@param aCustom
|
williamr@2
|
691 |
Specifies whether to reference a custom or standard sound bank.
|
williamr@2
|
692 |
@param aInstrumentId
|
williamr@2
|
693 |
Identifier of an instrument.
|
williamr@2
|
694 |
@return Descriptor containing the name of the percussion key.
|
williamr@2
|
695 |
If the key does not have a name then an empty descriptor is returned.
|
williamr@2
|
696 |
*/
|
williamr@2
|
697 |
virtual const TDesC& MmcPercussionKeyNameL(TInt aNote, TInt aBankId, TBool aCustom, TInt aInstrumentId) = 0;
|
williamr@2
|
698 |
/**
|
williamr@2
|
699 |
Get the stop time currently set for the MIDI resource.
|
williamr@2
|
700 |
|
williamr@2
|
701 |
@param aStopTime
|
williamr@2
|
702 |
Time at which playback will stop, relative to the start of the resource.
|
williamr@2
|
703 |
@return Descriptor containing the name of the percussion key. If the key
|
williamr@2
|
704 |
does not have a name then an empty descriptor is returned.
|
williamr@2
|
705 |
*/
|
williamr@2
|
706 |
virtual void MmcStopTimeL(TTimeIntervalMicroSeconds& aStopTime) = 0;
|
williamr@2
|
707 |
/**
|
williamr@2
|
708 |
Sets the stop time to use for the currently open MIDI resource
|
williamr@2
|
709 |
|
williamr@2
|
710 |
@param aStopTime
|
williamr@2
|
711 |
Time at which playback will stop, relative to the start of the resource.
|
williamr@2
|
712 |
Clamped to 0 and the duration of the resource.
|
williamr@2
|
713 |
*/
|
williamr@2
|
714 |
virtual void MmcSetStopTimeL(const TTimeIntervalMicroSeconds& aStopTime) = 0;
|
williamr@2
|
715 |
/**
|
williamr@2
|
716 |
Gets the number of currently active voices.
|
williamr@2
|
717 |
|
williamr@2
|
718 |
@param aNumNotes
|
williamr@2
|
719 |
The number of currently active voices.
|
williamr@2
|
720 |
*/
|
williamr@2
|
721 |
virtual void MmcPolyphonyL(TInt& aNumNotes) = 0;
|
williamr@2
|
722 |
/**
|
williamr@2
|
723 |
Get the maximum number of logical channels supported by the MIDI engine.
|
williamr@2
|
724 |
|
williamr@2
|
725 |
@param aChannels
|
williamr@2
|
726 |
The maximum number of logical channels that the MIDI engine supports, 0 <= aChannels <=15.
|
williamr@2
|
727 |
*/
|
williamr@2
|
728 |
virtual void MmcChannelsSupportedL(TInt& aChannels) = 0;
|
williamr@2
|
729 |
/**
|
williamr@2
|
730 |
Get the current volume setting of a logical channel.
|
williamr@2
|
731 |
|
williamr@2
|
732 |
@param aChannel
|
williamr@2
|
733 |
Logical channel to query. 0 <= aChannel <= 15.
|
williamr@2
|
734 |
@param aChannelVol
|
williamr@2
|
735 |
Volume currently set on the specified channel in decibels.
|
williamr@2
|
736 |
*/
|
williamr@2
|
737 |
virtual void MmcChannelVolumeL(TInt aChannel, TReal32& aChannelVol) = 0;
|
williamr@2
|
738 |
/**
|
williamr@2
|
739 |
Gets the Maximum volume setting that may be applied to a logical channel.
|
williamr@2
|
740 |
|
williamr@2
|
741 |
@param aMaxVol
|
williamr@2
|
742 |
Maximum volume setting. Minimum value is -infinity dB, which is
|
williamr@2
|
743 |
the smallest possible value that TReal32 supports.
|
williamr@2
|
744 |
*/
|
williamr@2
|
745 |
virtual void MmcMaxChannelVolumeL(TReal32& aMaxVol) = 0;
|
williamr@2
|
746 |
/**
|
williamr@2
|
747 |
Set the volume of a channel.
|
williamr@2
|
748 |
|
williamr@2
|
749 |
@param aChannel
|
williamr@2
|
750 |
Logical channel to set the volume on. 0 <= aChannel <= 15.
|
williamr@2
|
751 |
@param aVolume
|
williamr@2
|
752 |
The channel volume can be set within a range. The minimum channel
|
williamr@2
|
753 |
volume is -infinity dB, which is the smallest possible value that
|
williamr@2
|
754 |
TReal32 supports while the maximum channel volume is set via MaxVolumeL()
|
williamr@2
|
755 |
which represents the volume level in dB corresponding to the MIDI Channel
|
williamr@2
|
756 |
Volume controller.
|
williamr@2
|
757 |
*/
|
williamr@2
|
758 |
virtual void MmcSetChannelVolumeL(TInt aChannel,TReal32 aVolume) = 0;
|
williamr@2
|
759 |
/**
|
williamr@2
|
760 |
Set the muting state of a channel without changing its volume setting.
|
williamr@2
|
761 |
When unmuted the channel goes back to its previous volume setting.
|
williamr@2
|
762 |
|
williamr@2
|
763 |
@param aChannel
|
williamr@2
|
764 |
Logical channel to set the mute state of. 0 <= aChannel <= 15.
|
williamr@2
|
765 |
@param aMuted
|
williamr@2
|
766 |
ETrue to mute the channel, EFalse to unmute it.
|
williamr@2
|
767 |
*/
|
williamr@2
|
768 |
virtual void MmcSetChannelMuteL(TInt aChannel,TBool aMuted) = 0;
|
williamr@2
|
769 |
/**
|
williamr@2
|
770 |
Gets the overall volume of the MIDI client.
|
williamr@2
|
771 |
|
williamr@2
|
772 |
@param aVolume
|
williamr@2
|
773 |
The current overall volume setting.
|
williamr@2
|
774 |
*/
|
williamr@2
|
775 |
virtual void MmcVolumeL(TInt& aVolume) = 0;
|
williamr@2
|
776 |
/**
|
williamr@2
|
777 |
Maximum volume setting that may be applied overall.
|
williamr@2
|
778 |
|
williamr@2
|
779 |
@param aMaxVolume
|
williamr@2
|
780 |
Maximum volume setting. Minimum value is always zero which is silent.
|
williamr@2
|
781 |
*/
|
williamr@2
|
782 |
virtual void MmcMaxVolumeL(TInt& aMaxVolume) = 0;
|
williamr@2
|
783 |
/**
|
williamr@2
|
784 |
Set the overall volume of the MIDI client.
|
williamr@2
|
785 |
This setting scales all channel volumes respectively so the actual volume
|
williamr@2
|
786 |
that a channel is played at becomes (overall volume * channel volume / max volume).
|
williamr@2
|
787 |
|
williamr@2
|
788 |
@param aVolume Overall volume setting to use.
|
williamr@2
|
789 |
*/
|
williamr@2
|
790 |
virtual void MmcSetVolumeL(TInt aVolume) = 0;
|
williamr@2
|
791 |
/**
|
williamr@2
|
792 |
Length of time over which the volume is faded up from zero to the current settings
|
williamr@2
|
793 |
when playback is started.
|
williamr@2
|
794 |
|
williamr@2
|
795 |
@param aRampDuration
|
williamr@2
|
796 |
Duration of the ramping period.
|
williamr@2
|
797 |
*/
|
williamr@2
|
798 |
virtual void MmcSetVolumeRampL(const TTimeIntervalMicroSeconds& aRampDuration) = 0;
|
williamr@2
|
799 |
/**
|
williamr@2
|
800 |
Get the current stereo balance value.
|
williamr@2
|
801 |
|
williamr@2
|
802 |
@param aBalance
|
williamr@2
|
803 |
Balance value ranging from KMMFBalanceMaxLeft to KMMFBalanceMaxRight.
|
williamr@2
|
804 |
*/
|
williamr@2
|
805 |
virtual void MmcGetBalanceL(TInt& aBalance) = 0;
|
williamr@2
|
806 |
/**
|
williamr@2
|
807 |
Set the current stereo balance value.
|
williamr@2
|
808 |
|
williamr@2
|
809 |
@param aBalance
|
williamr@2
|
810 |
Balance value to set. Defaults to KMMFBalanceCenter to restore equal left-right balance.
|
williamr@2
|
811 |
*/
|
williamr@2
|
812 |
virtual void MmcSetBalanceL(TInt aBalance) = 0;
|
williamr@2
|
813 |
/**
|
williamr@2
|
814 |
Set the max polyphony level the engine can handle.
|
williamr@2
|
815 |
|
williamr@2
|
816 |
@param aMaxNotes
|
williamr@2
|
817 |
Max polyphony level, 0 <= PolyphonyL() <= aMaxNotes.
|
williamr@2
|
818 |
*/
|
williamr@2
|
819 |
virtual void MmcSetMaxPolyphonyL(TInt aMaxNotes) = 0;
|
williamr@2
|
820 |
/**
|
williamr@2
|
821 |
Gets the number of times the current opened resources have to be repeated.
|
williamr@2
|
822 |
|
williamr@2
|
823 |
@param aNumRepeats
|
williamr@2
|
824 |
The number of time the current opened resources have to be repeated.
|
williamr@2
|
825 |
*/
|
williamr@2
|
826 |
virtual void MmcGetRepeatsL(TInt& aNumRepeats) = 0;
|
williamr@2
|
827 |
/**
|
williamr@2
|
828 |
Set the number of times to repeat the current MIDI resource.
|
williamr@2
|
829 |
After Stop() has been called, repeat number of times and the trailing silence are reset.
|
williamr@2
|
830 |
|
williamr@2
|
831 |
@param aRepeatNumberOfTimes
|
williamr@2
|
832 |
Number of times to repeat the resource during playback. This includes the first playing.
|
williamr@2
|
833 |
@param aTrailingSilence
|
williamr@2
|
834 |
Time in microseconds to pause between repeats.
|
williamr@2
|
835 |
*/
|
williamr@2
|
836 |
virtual void MmcSetRepeatsL(TInt aRepeatNumberOfTimes, const TTimeIntervalMicroSeconds& aTrailingSilence) = 0;
|
williamr@2
|
837 |
/**
|
williamr@2
|
838 |
Tell the MIDI engine to use a custom bank or a standard bank.
|
williamr@2
|
839 |
|
williamr@2
|
840 |
@param aCustom
|
williamr@2
|
841 |
If Etrue the custom bank in memory is used otherwise the standard bank
|
williamr@2
|
842 |
is used leaving the custom bank in memory.
|
williamr@2
|
843 |
*/
|
williamr@2
|
844 |
virtual void MmcSetBankL(TBool aCustom) = 0;
|
williamr@2
|
845 |
/**
|
williamr@2
|
846 |
Gets the muting status of a specific track.
|
williamr@2
|
847 |
|
williamr@2
|
848 |
@param aTrack
|
williamr@2
|
849 |
The track to query.
|
williamr@2
|
850 |
@param aTrackMute
|
williamr@2
|
851 |
The mute status of the track.
|
williamr@2
|
852 |
*/
|
williamr@2
|
853 |
virtual void MmcIsTrackMuteL(TInt aTrack, TBool& aTrackMute) = 0;
|
williamr@2
|
854 |
/**
|
williamr@2
|
855 |
Gets the muting status of a specific channel.
|
williamr@2
|
856 |
|
williamr@2
|
857 |
@param aChannel
|
williamr@2
|
858 |
The channel to query.
|
williamr@2
|
859 |
@param aChannelMute
|
williamr@2
|
860 |
The mute status of the channel.
|
williamr@2
|
861 |
*/
|
williamr@2
|
862 |
virtual void MmcIsChannelMuteL(TInt aChannel, TBool& aChannelMute) = 0;
|
williamr@2
|
863 |
/**
|
williamr@2
|
864 |
Gets the instrument assigned to a specified channel.
|
williamr@2
|
865 |
|
williamr@2
|
866 |
@param aChannel
|
williamr@2
|
867 |
Logical channel, 0 <= aChannel <= 15.
|
williamr@2
|
868 |
@param aInstrumentId
|
williamr@2
|
869 |
Identifier of the instrument assigned to aChannel. 0 <= aInstrumentId <= 127.
|
williamr@2
|
870 |
@param aBankId
|
williamr@2
|
871 |
Identifier of the bank that the instrument belongs to, occupying no more than 14 bits.
|
williamr@2
|
872 |
*/
|
williamr@2
|
873 |
virtual void MmcGetInstrumentL(TInt aChannel, TInt& aInstrumentId, TInt& aBankId) = 0;
|
williamr@2
|
874 |
/**
|
williamr@2
|
875 |
Closes any currently open resources, such as files, descriptors or URLs in use.
|
williamr@2
|
876 |
Does nothing if there is nothing currently open.
|
williamr@2
|
877 |
*/
|
williamr@2
|
878 |
virtual void MmcCloseL() = 0;
|
williamr@2
|
879 |
/**
|
williamr@2
|
880 |
Stops playback of a resource but does not change the current position or release any resources.
|
williamr@2
|
881 |
Pauses the internal timer if no resource is open.
|
williamr@2
|
882 |
|
williamr@2
|
883 |
@param aFadeOutDuration
|
williamr@2
|
884 |
Length of time over which the volume is faded out from the current settings to zero.
|
williamr@2
|
885 |
*/
|
williamr@2
|
886 |
virtual void MmcStopL(const TTimeIntervalMicroSeconds& aFadeOutDuration) = 0;
|
williamr@2
|
887 |
/**
|
williamr@2
|
888 |
Gets the max polyphony level the engine can handle.
|
williamr@2
|
889 |
|
williamr@2
|
890 |
@param aNumNotes
|
williamr@2
|
891 |
Max polyphony level, PolyphonyL() <= aMaxNotes.
|
williamr@2
|
892 |
*/
|
williamr@2
|
893 |
virtual void MmcMaxPolyphonyL(TInt& aMaxNotes) = 0;
|
williamr@2
|
894 |
};
|
williamr@2
|
895 |
|
williamr@2
|
896 |
|
williamr@2
|
897 |
/**
|
williamr@2
|
898 |
@internalComponent
|
williamr@2
|
899 |
*/
|
williamr@2
|
900 |
class CMidiEventReceiver : public CBase
|
williamr@2
|
901 |
{
|
williamr@2
|
902 |
public:
|
williamr@2
|
903 |
static CMidiEventReceiver* NewL(const TMMFMessage& aMessage);
|
williamr@2
|
904 |
~CMidiEventReceiver();
|
williamr@2
|
905 |
void PrepareEventL(const CMMFMidiEvent& aEvent);
|
williamr@2
|
906 |
void SendEventL(TMMFMessage& aMessage);
|
williamr@2
|
907 |
TBool IsWaitingToSendEvent();
|
williamr@2
|
908 |
private:
|
williamr@2
|
909 |
CMidiEventReceiver(const TMMFMessage& aMessage);
|
williamr@2
|
910 |
private:
|
williamr@2
|
911 |
TMMFMessage iMessage;
|
williamr@2
|
912 |
CBufFlat* iEventBuf;
|
williamr@2
|
913 |
};
|
williamr@2
|
914 |
|
williamr@2
|
915 |
|
williamr@2
|
916 |
/**
|
williamr@2
|
917 |
Mixin class to define an object capable of handling a MIDI event within the controller framework.
|
williamr@2
|
918 |
|
williamr@2
|
919 |
@publishedAll
|
williamr@2
|
920 |
@released
|
williamr@2
|
921 |
*/
|
williamr@2
|
922 |
class MMidiEventHandler
|
williamr@2
|
923 |
{
|
williamr@2
|
924 |
public:
|
williamr@2
|
925 |
/**
|
williamr@2
|
926 |
Send an event to the client.
|
williamr@2
|
927 |
|
williamr@2
|
928 |
@param aEvent
|
williamr@2
|
929 |
The MIDI event.
|
williamr@2
|
930 |
@return One of the system-wide error codes.
|
williamr@2
|
931 |
*/
|
williamr@2
|
932 |
virtual TInt SendMidiEventToClient(const CMMFMidiEvent& aEvent) = 0;
|
williamr@2
|
933 |
};
|
williamr@2
|
934 |
|
williamr@2
|
935 |
|
williamr@2
|
936 |
/**
|
williamr@2
|
937 |
Custom command parser class to be used by controller plugins wishing to support
|
williamr@2
|
938 |
MIDI controller commands.
|
williamr@2
|
939 |
The controller plugin must be derived from MMidiCustomCommandImplementor
|
williamr@2
|
940 |
to use this class. The controller plugin should create an object of this type and add
|
williamr@2
|
941 |
it to the list of custom command parsers in the controller framework.
|
williamr@2
|
942 |
|
williamr@2
|
943 |
@publishedAll
|
williamr@2
|
944 |
@released
|
williamr@2
|
945 |
*/
|
williamr@2
|
946 |
class CMidiCustomCommandParser : public CMMFCustomCommandParserBase,
|
williamr@2
|
947 |
public MMidiEventHandler
|
williamr@2
|
948 |
{
|
williamr@2
|
949 |
public:
|
williamr@2
|
950 |
IMPORT_C static CMidiCustomCommandParser* NewL(MMidiCustomCommandImplementor& aImplementor);
|
williamr@2
|
951 |
IMPORT_C ~CMidiCustomCommandParser();
|
williamr@2
|
952 |
/**
|
williamr@2
|
953 |
@internalTechnology
|
williamr@2
|
954 |
*/
|
williamr@2
|
955 |
void HandleRequest(TMMFMessage& aMessage);
|
williamr@2
|
956 |
virtual TInt SendMidiEventToClient(const CMMFMidiEvent& aEvent);
|
williamr@2
|
957 |
private:
|
williamr@2
|
958 |
CMidiCustomCommandParser(MMidiCustomCommandImplementor& aImplementor);
|
williamr@2
|
959 |
// Internal request handling methods.
|
williamr@2
|
960 |
void DoHandleRequestL(TMMFMessage& aMessage);
|
williamr@2
|
961 |
|
williamr@2
|
962 |
TBool DoSetPositionMicroBeatsL(TMMFMessage& aMessage);
|
williamr@2
|
963 |
TBool DoPositionMicroBeatsL(TMMFMessage& aMessage);
|
williamr@2
|
964 |
TBool DoPlayNoteL(TMMFMessage& aMessage);
|
williamr@2
|
965 |
TBool DoPlayNoteWithStartTimeL(TMMFMessage& aMessage);
|
williamr@2
|
966 |
TBool DoStopNotesL(TMMFMessage& aMessage);
|
williamr@2
|
967 |
TBool DoNoteOnL(TMMFMessage& aMessage);
|
williamr@2
|
968 |
TBool DoNoteOffL(TMMFMessage& aMessage);
|
williamr@2
|
969 |
TBool DoPlaybackRateL(TMMFMessage& aMessage);
|
williamr@2
|
970 |
TBool DoSetPlaybackRateL(TMMFMessage& aMessage);
|
williamr@2
|
971 |
TBool DoMaxPlaybackRateL(TMMFMessage& aMessage);
|
williamr@2
|
972 |
TBool DoMinPlaybackRateL(TMMFMessage& aMessage);
|
williamr@2
|
973 |
TBool DoTempoMicroBeatsPerMinuteL(TMMFMessage& aMessage);
|
williamr@2
|
974 |
TBool DoSetTempoL(TMMFMessage& aMessage);
|
williamr@2
|
975 |
TBool DoPitchTranspositionCentsL(TMMFMessage& aMessage);
|
williamr@2
|
976 |
TBool DoSetPitchTranspositionL(TMMFMessage& aMessage);
|
williamr@2
|
977 |
TBool DoDurationMicroBeatsL(TMMFMessage& aMessage);
|
williamr@2
|
978 |
TBool DoNumTracksL(TMMFMessage& aMessage);
|
williamr@2
|
979 |
TBool DoSetTrackMuteL(TMMFMessage& aMessage);
|
williamr@2
|
980 |
TBool DoMimeTypeL(TMMFMessage& aMessage);
|
williamr@2
|
981 |
TBool DoSetSyncUpdateCallbackIntervalL(TMMFMessage& aMessage);
|
williamr@2
|
982 |
TBool DoSendMessageL(TMMFMessage& aMessage);
|
williamr@2
|
983 |
TBool DoSendMessageWithTimeStampL(TMMFMessage& aMessage);
|
williamr@2
|
984 |
TBool DoSendMipMessageL(TMMFMessage& aMessage);
|
williamr@2
|
985 |
TBool DoNumberOfBanksL(TMMFMessage& aMessage);
|
williamr@2
|
986 |
TBool DoGetBankIdL(TMMFMessage& aMessage);
|
williamr@2
|
987 |
TBool DoLoadCustomBankL(TMMFMessage& aMessage);
|
williamr@2
|
988 |
TBool DoLoadCustomBankDataL(TMMFMessage& aMessage);
|
williamr@2
|
989 |
TBool DoUnloadCustomBankL(TMMFMessage& aMessage);
|
williamr@2
|
990 |
TBool DoCustomBankLoadedL(TMMFMessage& aMessage);
|
williamr@2
|
991 |
TBool DoUnloadAllCustomBanksL(TMMFMessage& aMessage);
|
williamr@2
|
992 |
TBool DoNumberOfInstrumentsL(TMMFMessage& aMessage);
|
williamr@2
|
993 |
TBool DoGetInstrumentIdL(TMMFMessage& aMessage);
|
williamr@2
|
994 |
TBool DoInstrumentNameL(TMMFMessage& aMessage);
|
williamr@2
|
995 |
TBool DoCopyInstrumentNameL(TMMFMessage& aMessage);
|
williamr@2
|
996 |
TBool DoSetInstrumentL(TMMFMessage& aMessage);
|
williamr@2
|
997 |
TBool DoLoadCustomInstrumentL(TMMFMessage& aMessage);
|
williamr@2
|
998 |
TBool DoLoadCustomInstrumentDataL(TMMFMessage& aMessage);
|
williamr@2
|
999 |
TBool DoUnloadCustomInstrumentL(TMMFMessage& aMessage);
|
williamr@2
|
1000 |
TBool DoPercussionKeyNameL(TMMFMessage& aMessage);
|
williamr@2
|
1001 |
TBool DoCopyPercussionKeyNameL(TMMFMessage& aMessage);
|
williamr@2
|
1002 |
TBool DoStopTimeL(TMMFMessage& aMessage);
|
williamr@2
|
1003 |
TBool DoSetStopTimeL(TMMFMessage& aMessage);
|
williamr@2
|
1004 |
TBool DoPolyphonyL(TMMFMessage& aMessage);
|
williamr@2
|
1005 |
TBool DoChannelsSupportedL(TMMFMessage& aMessage);
|
williamr@2
|
1006 |
TBool DoChannelVolumeL(TMMFMessage& aMessage);
|
williamr@2
|
1007 |
TBool DoMaxChannelVolumeL(TMMFMessage& aMessage);
|
williamr@2
|
1008 |
TBool DoSetChannelVolumeL(TMMFMessage& aMessage);
|
williamr@2
|
1009 |
TBool DoSetChannelMuteL(TMMFMessage& aMessage);
|
williamr@2
|
1010 |
TBool DoVolumeL(TMMFMessage& aMessage);
|
williamr@2
|
1011 |
TBool DoMaxVolumeL(TMMFMessage& aMessage);
|
williamr@2
|
1012 |
TBool DoSetVolumeL(TMMFMessage& aMessage);
|
williamr@2
|
1013 |
TBool DoSetVolumeRampL(TMMFMessage& aMessage);
|
williamr@2
|
1014 |
TBool DoGetBalanceL(TMMFMessage& aMessage);
|
williamr@2
|
1015 |
TBool DoSetBalanceL(TMMFMessage& aMessage);
|
williamr@2
|
1016 |
TBool DoSetMaxPolyphonyL(TMMFMessage& aMessage);
|
williamr@2
|
1017 |
TBool DoGetRepeatsL(TMMFMessage& aMessage);
|
williamr@2
|
1018 |
TBool DoSetRepeatsL(TMMFMessage& aMessage);
|
williamr@2
|
1019 |
TBool DoSetBankL(TMMFMessage& aMessage);
|
williamr@2
|
1020 |
TBool DoIsTrackMuteL(TMMFMessage& aMessage);
|
williamr@2
|
1021 |
TBool DoIsChannelMuteL(TMMFMessage& aMessage);
|
williamr@2
|
1022 |
TBool DoGetInstrumentL(TMMFMessage& aMessage);
|
williamr@2
|
1023 |
TBool DoCloseL(TMMFMessage& aMessage);
|
williamr@2
|
1024 |
TBool DoStopL(TMMFMessage& aMessage);
|
williamr@2
|
1025 |
TBool DoReceiveEventsL(TMMFMessage& aMessage);
|
williamr@2
|
1026 |
TBool DoRetrieveEventL(TMMFMessage& aMessage);
|
williamr@2
|
1027 |
TBool DoCancelReceiveEventsL(TMMFMessage& aMessage);
|
williamr@2
|
1028 |
|
williamr@2
|
1029 |
void DoCreateBufFromUintArrayL(RArray<TUint>& aArray);
|
williamr@2
|
1030 |
void DoCreateBufFromFourCCArrayL(RArray<TFourCC>& aArray);
|
williamr@2
|
1031 |
TBool DoMaxPolyphonyL(TMMFMessage& aMessage);
|
williamr@2
|
1032 |
private:
|
williamr@2
|
1033 |
/** The object that implements the MIDI controller interface */
|
williamr@2
|
1034 |
MMidiCustomCommandImplementor& iImplementor;
|
williamr@2
|
1035 |
|
williamr@2
|
1036 |
CMidiEventReceiver* iMidiEventReceiver;
|
williamr@2
|
1037 |
/** The events waiting to be sent to the client.*/
|
williamr@2
|
1038 |
RPointerArray<CMMFMidiEvent> iMidiEvents;
|
williamr@2
|
1039 |
|
williamr@2
|
1040 |
// variable length data waiting to be copied back to the client
|
williamr@2
|
1041 |
CBufFlat* iInstrumentName;
|
williamr@2
|
1042 |
CBufFlat* iPercussionKeyName;
|
williamr@2
|
1043 |
};
|
williamr@2
|
1044 |
|
williamr@2
|
1045 |
#endif
|