A description of an audio instrument.
A Template is the description of a DSP audio instrument (including the DSP code, resource requirements, parameter settings, etc.) from which Instrument items are created. A Template can either be a standard system instrument template (e.g. envelope.dsp, sampler.dsp, etc) or a custom template created by ARIA.
audio
AUDIO_TEMPLATE_NODE
CreateInsTemplate()
CreateItem()
DefineInsTemplate()
LoadInsTemplate()
DeleteItem()
UnloadInsTemplate()
AdoptInstrument()
AllocMem()
. If you supply a custom allocation function you must also provide a custom free function with AF_TAG_FREE_FUNCTION.FreeMem()
. If you supply a custom free function you must also provide a custom allocation function with AF_TAG_ALLOC_FUNCTION.CreateSample()
for more details and caveats.Note that sample data may have to be moved down two bytes to align it properly for Portfolio DMA. This will destroy the sample image so that it cannot be reused.
Instrument
, Attachment