# Audio Folio Calls

This chapter describes the Audio folio function calls and items in alphabetical order. The list below provides a quick summary of each call, followed by the page number where the call is described.

- `AbandonInstrument` Make an instrument available for adoption.
- `AbortTimerCue` Cancels a timer request enqueued with SignalAtTime().
- `AdoptInstrument` Adopt an abandoned instrument.
- `AllocAmplitude` Allocates amplitude from available system amplitude.
- `AllocInstrument` Allocates an instrument using a template.
- `AttachEnvelope` Attaches an envelope to an instrument and creates an attachment item.
- `AttachSample` Connects sample to instrument's FIFO.
- `AudioTimeLaterThan` Compare two AudioTime values with wraparound.
- `AudioTimeLaterThanOrEqual` Compare two AudioTime values with wraparound.
- `BendInstrumentPitch` Bends an instrument's output pitch up or down by a specified amount.
- `CloseAudioFolio` Closes the Audio folio.
- `CompareAudioTimes` Compare two AudioTime values with wraparound.
- `ConnectInstruments` Patches the output of an instrument to the input of another instrument.
- `Convert12TET_F16` Converts a pitch bend value in semitones and cents into an f16 bend value.
- `CreateCue` Creates an audio cue.
- `CreateDelayLine` Creates a delay for echoes and reverberations.
- `CreateEnvelope` Creates an envelope for a sample or cue.
- `CreateInsTemplate` Generic template creation function.
- `CreateInstrument` Creates an instrument using a template.
- `CreateProbe` Connects a task to an instrument controller.
- `CreateSample` Generic sample creation function.
- `CreateTuning` Creates a tuning item.
- `DebugSample` Prints sample information for debugging.
- `DefineInsTemplate` Creates an instrument template from a .dsp file.
- `DefineSampleHere` Defines a sample from a data stream.
- `DeleteCue` Deletes an audio cue created by CreateCue().
- `DeleteDelayLine` Deletes a delay line.
- `DeleteEnvelope` Deletes an envelope created by CreateEnvelope().
- `DeleteInstrument` Frees an instrument and its resources allocated by CreateInstrument().
- `DeleteProbe` Releases a task from a probe it has grabbed.
- `DeleteTuning` Deletes a tuning.
- `DetachEnvelope` Detaches an envelope from an instrument.
- `DetachSample` Disconnects sample from instrument.
- `DisconnectInstruments` Disconnects one instrument from another.
- `DisownAudioClock` Gives up ownership of the audio clock.
- `EnableAudioInput` Enable Anvil audio input.
- `FreeAmplitude` Inverse of AllocAmplitude().
- `FreeInstrument` Frees an instrument and its resources allocated by AllocInstrument().
- `GetAudioCyclesUsed` Poll current number of DSP cycles.
- `GetAudioDuration` Asks for the current duration of an audio clock tick.
- `GetAudioFolioInfo` Get system-wide audio settings.
- `GetAudioFrameCount` Gets count of frames executed.
- `GetAudioItemInfo` Gets information about an audio item.
- `GetAudioRate` Asks for current audio clock rate.
- `GetAudioTime` Queries current audio time.
- `GetCueSignal` Returns a signal mask for a cue.
- `GetKnobName` Queries name of one of an Instrument's knob.
- `GetNumKnobs` Finds how many knobs an Instrument has.
- `GrabKnob` Gain direct access to one of an Instrument's knobs.
- `LinkAttachments` Connects sample attachments for sequential playback.
- `LoadInsTemplate` Loads template for creating instruments.
- `LoadInstrument` Loads Instrument and Template in one call.
- `LoadSample` Loads an AIFF or AIFC sample from file.
- `LoadSampleHere` Loads an AIFC sample from file into RAM allocated and freed by a custom function.
- `MakeSample` Makes a sample from memory (OBSOLETE)
- `MonitorAttachment` Monitors an attachment, sends a cue at a specified point.
- `OpenAudioFolio` Opens the Audio folio.
- `OwnAudioClock` Takes ownership of audio clock.
- `PauseInstrument` Pauses an instrument's playback.
- `ReadProbe` Read the value of a Probe.
- `ReleaseAttachment` Releases an attachment.
- `ReleaseInstrument` Instruct an instrument to begin to finish (Note Off).
- `ReleaseKnob` Releases a knob grabbed with GrabKnob().
- `ResumeInstrument` Resumes playback of a paused instrument.
- `ScanSample` Loads a truncated sample file.
- `SetAudioDuration` Changes duration of audio clock tick.
- `SetAudioItemInfo` Sets parameters of an audio item.
- `SignalAtTime` Requests a wake-up call at a given time.
- `SleepAudioTicks` Enters wait state for a number of audio ticks (OBSOLETE)
- `SleepUntilTime` Enters wait state until a specified audio time.
- `StartAttachment` Starts an attachment.
- `StartInstrument` Begins playing an instrument (Note On).
- `StopAttachment` Stops an attachment.
- `StopInstrument` Abruptly stops an instrument.
- `TraceAudio` Turns specific audio diagnostics on or off (OBSOLETE)
- `TuneInsTemplate` Applies the specified tuning to an instrument template.
- `TuneInstrument` Applies the specified tuning to an instrument.
- `TweakKnob` Changes the value of a knob.
- `TweakRawKnob` Changes the value of a knob using a raw value.
- `UnloadInsTemplate` Unloads an instrument template.
- `UnloadInstrument` Unloads an instrument loaded with LoadInstrument().
- `UnloadSample` Deletes a sample and frees its resources.
- `WhereAttachment` Returns the current playing location attachment.