Item AttachSample( Item Instrument, Item Sample, char *FIFOName )
When you finish with the attachment between sample and instrument, you should call DetachSample()
to detach and free the attachment's resources.
Multisamples: If more than one sample is attached to a FIFO and the instrument is started with a specified pitch, then the list of samples is searched for the first sample whose range of notes and velocities matches the desired note index (pitch). The LowNote and HighNote, and LowVelocity and HighVelocity are read from the AIFF file. The values from the file can be overwritten using SetAudioItemInfo()
.
DetachSample
(), SetAudioItemInfo(), LoadSample(), UnloadSample(), DebugSample(), CreateSample(), ScanSample(), GetAudioItemInfo()