31 virtual void OnDraw(CDC *pdc,
const CRect &rcBounds,
const CRect &rcInvalid);
112 DECLARE_MESSAGE_MAP()
209 XferSynthData(
long iBankID,
long iAction, VARIANT FAR *ioLongArray, VARIANT FAR *ioStringArray);
287 DECLARE_DISPATCH_MAP()
306 EVENT_PARAM(VTS_I4 VTS_I4 VTS_PVARIANT),
330 EVENT_PARAM(VTS_I4 VTS_I4 VTS_I4),
360 EVENT_PARAM(VTS_I4 VTS_I4 VTS_I4),
369 EVENT_PARAM(VTS_I4 VTS_I4 VTS_I4),
402 long NewSampleFromFile(
long iBankID, const
String &filename,
bool *alreadyExists);
414 void AddSamplesFromFolder(const
String &folder,
unsigned short bankID,
bool asInstrument);
427 long XferSampleDescData(
long iBankID,
444 long XferInstrumentData(
long iBankID,
void FireUpdateSampleDescriptionComments(long iBankID, long iSampleID, VARIANT FAR *iSampleDescIDs)
Definition SyntheditCtl.h:304
afx_msg long NewSample(long iBankID)
Add the samples of the WAV files the user picks.
void FireProtectWorkSheets(long iBankID, long iYesNo)
Definition SyntheditCtl.h:348
void FireInsertNewInstrument(long iBankID, long iInstrumentID)
Definition SyntheditCtl.h:353
afx_msg long NewSampleDescription(long iBankID, long iInstrumentID, long iSampleIDOptional)
Add descriptions to an instrument for a sample, or for the WAV files the user picks.
afx_msg void AboutBox()
Show the about box.
void FireUpdateInstrumentData(long iBankID, long iInstrumentID)
Definition SyntheditCtl.h:323
afx_msg long ReadAndSaveBankFile()
Create a bank, save it, and close it.
afx_msg long SaveBank(long iBankID, long iSaveAs)
Save a bank, prompting for the file when it has none or when requested.
~CSyntheditCtrl()
Stop the systems InitSynthControl() started.
afx_msg long DeleteSample(long iBankID, long iSampleID)
Delete a sample and the descriptions that play it, and update the worksheets.
afx_msg long DeleteInstrument(long iBankID, long iInstrumentID)
Delete an instrument and its descriptions, and update the worksheets.
void FireDeleteSampleDescription(long iBankID, long iInstrumentID, long iSampleDescID)
Definition SyntheditCtl.h:367
afx_msg long ShutdownSynthCtrl()
Do nothing.
afx_msg long RetireBank(long iBankID)
Close a bank.
void FireDeleteInstrument(long iBankID, long iInstrumentID)
Definition SyntheditCtl.h:376
afx_msg long NewInstrument(long iBankID)
Add an instrument with program zero.
afx_msg long DoDebugSomething()
Do nothing.
virtual void OnResetState()
afx_msg long InitSynthControl(LPCTSTR iSystemDirectory)
Start the systems with the editor configuration.
void FireUpdateSampleData(long iBankID, long iSampleID)
Definition SyntheditCtl.h:313
afx_msg long DeleteSampleDescription(long iBankID, long iInstrumentID, long iSampleDescID)
Delete a description from an instrument.
void FireUpdateSampleDescData(long iBankID, long iInstrumentID, long iSampleDescID)
Definition SyntheditCtl.h:328
afx_msg long XferSynthData(long iBankID, long iAction, VARIANT FAR *ioLongArray, VARIANT FAR *ioStringArray)
Read or write the data of a bank, an instrument, a sample description, or a sample.
virtual void OnDraw(CDC *pdc, const CRect &rcBounds, const CRect &rcInvalid)
Fill the bounds with white and draw an ellipse.
virtual void DoPropExchange(CPropExchange *pPX)
Exchange the persistent properties, of which there are none besides the version.
afx_msg long AttachSampleToInstrument(long iBankID, long iSampleID, long iInstrumentID)
Add a description that plays a sample to an instrument.
afx_msg long NewInstrumentsFromFolder(long iBankID)
Add an instrument for each folder, the one the user picks and its subfolders, that has WAV files,...
afx_msg long NewSamplesFromFolder(long iBankID)
Add the WAV files of a folder the user picks, and of its subfolders, as samples.
void FireUpdateHyperLinks(long iBankID)
Definition SyntheditCtl.h:386
void FireInsertNewSample(long iBankID, long iSampleID)
Definition SyntheditCtl.h:343
void FireDeleteSample(long iBankID, long iSampleID)
Definition SyntheditCtl.h:381
void FireUpdateBankData(long iBankID)
Definition SyntheditCtl.h:318
void FireInsertNewSampleDescription(long iBankID, long iInstrumentID, long iSampleDescID)
Definition SyntheditCtl.h:358
XferAction
The data XferSynthData() reads or writes, as the add-in numbers it.
Definition SyntheditCtl.h:82
@ kActionSetBankData
Definition SyntheditCtl.h:92
@ kActionGetBankInstrumentIDs
Definition SyntheditCtl.h:88
@ kActionSetSampleDescData
Definition SyntheditCtl.h:94
@ kActionGetInstrumentSampleDescIDs
Definition SyntheditCtl.h:89
@ kActionSetSampleData
Definition SyntheditCtl.h:95
@ kActionSetInstrumentData
Definition SyntheditCtl.h:93
@ kActionGetSampleDescData
Definition SyntheditCtl.h:85
@ kActionGetInstrumentData
Definition SyntheditCtl.h:84
@ kActionGetSampleData
Definition SyntheditCtl.h:86
@ kActionGetBankSamplesIDs
Definition SyntheditCtl.h:87
@ kActionGetInstrumentWriteup
Definition SyntheditCtl.h:91
@ kActionGetReferencedSample
Definition SyntheditCtl.h:96
@ kActionGetSampleWriteup
Definition SyntheditCtl.h:90
@ kActionGetBankData
Definition SyntheditCtl.h:83
void FireUpdateInstrumentComments(long iBankID, long iInstrumentID)
Definition SyntheditCtl.h:337
@ eventidUpdateInstrumentComments
Definition SyntheditCtl.h:70
@ dispidAttachSampleToInstrument
Definition SyntheditCtl.h:47
@ eventidDeleteSample
Definition SyntheditCtl.h:77
@ dispidNewInstrument
Definition SyntheditCtl.h:50
@ dispidDoDebugSomething
Definition SyntheditCtl.h:56
@ dispidShutdownSynthCtrl
Definition SyntheditCtl.h:53
@ dispidReadAndSaveBankFile
Definition SyntheditCtl.h:57
@ dispidDeleteSample
Definition SyntheditCtl.h:49
@ dispidMakeSimpleBankFile
Definition SyntheditCtl.h:54
@ dispidDeleteInstrument
Definition SyntheditCtl.h:48
@ eventidUpdateBankData
Definition SyntheditCtl.h:67
@ eventidInsertNewSampleDescription
Definition SyntheditCtl.h:74
@ eventidDeleteSampleDescription
Definition SyntheditCtl.h:75
@ dispidNewSamplesFromFolder
Definition SyntheditCtl.h:59
@ dispidInitSynthControl
Definition SyntheditCtl.h:63
@ dispidNewSample
Definition SyntheditCtl.h:51
@ eventidDeleteInstrument
Definition SyntheditCtl.h:76
@ eventidUpdateSampleDescriptionComments
Definition SyntheditCtl.h:65
@ dispidNewInstrumentsFromFolder
Definition SyntheditCtl.h:60
@ dispidRetireBank
Definition SyntheditCtl.h:52
@ eventidProtectWorkSheets
Definition SyntheditCtl.h:72
@ dispidSaveBank
Definition SyntheditCtl.h:58
@ eventidUpdateInstrumentData
Definition SyntheditCtl.h:68
@ dispidNewBank
Definition SyntheditCtl.h:46
@ eventidInsertNewSample
Definition SyntheditCtl.h:71
@ dispidDeleteSampleDescription
Definition SyntheditCtl.h:62
@ eventidInsertNewInstrument
Definition SyntheditCtl.h:73
@ dispidNewSampleDescription
Definition SyntheditCtl.h:61
@ eventidUpdateHyperLinks
Definition SyntheditCtl.h:78
@ eventidUpdateSampleDescData
Definition SyntheditCtl.h:69
@ eventidUpdateSampleData
Definition SyntheditCtl.h:66
@ dispidXferSynthData
Definition SyntheditCtl.h:55
@ eventidUpdateSampleComments
Definition SyntheditCtl.h:64
afx_msg long NewBank()
Create a bank, loading it from a file the user picks or prompting for its bank change identifier.
void FireUpdateSampleComments(long iBankID, VARIANT FAR *iSampleIDs)
Definition SyntheditCtl.h:297
afx_msg long MakeSimpleBankFile()
Create a bank of six instruments of four samples each, which the user picks, save it,...
One-dimensional array of 32-bit integers (VT_I4).
Definition HxLongSafeArray.h:12
One-dimensional array of strings (VT_BSTR), converted to and from multibyte text.
Definition HxStringSafeArray.h:13
Growable text buffer that is also a PrnStream.
Definition string.h:19