Err LinkAttachments (Item Att1, Item Att2)
If Att1's sample has a sustain loop, but no release loop, you can follow this with a call to ReleaseAttachment (Att1, NULL) to smoothly transition to Att2.
If Att1's sample has no loops, Att2 will automatically start as soon as Att1 completes (assuming that it has not completed prior to this function being called).
If, after linking Att1 to Att2, StopAttachment()
is called on Att1 before it finishes, Att2 will not be automatically started. StopAttachment()
on Att1 after it finishes has no effect.
All link remains in effect for multiple calls to StartInstrument()
or StartAttachment()
. That is, if you call LinkAttachments (Att1, Att2)
, Att1 will flow into Att2 upon completion of Att1 for every subsequent call to StartAttachment (Att1, NULL)
(or StartInstrument()
on the instrument belonging to Att1) if Att1 would normally be automatically started by starting the instrument).
An attachment (Att1) can link to no more than one attachment. An attachment (Att2) can be linked to multiple attachments. The most recent call to LinkAttachments()
for Att1 takes precedence.
The pair of Attachments passed to this function must satisfy all of these requirements:
A link does not interfere with a Cue associated with an attachment.
Deleting either Attachment, either Attachment's Sample, or the Instrument to which the Attachment belongs, breaks the link.
StartAttachment
(),
ReleaseAttachment()