Class audio

Audio class

Methods

audio:headphone_gain (gain) set headphone gain.
audio:level_adc (level) set level for ADC input.
audio:level_dac (level) set level for *both* output channels.
audio:level_monitor (level) set monitor level for *both* input channels.
audio:monitor_mono () set monitor mode to mono.
audio:monitor_stereo () set monitor mode to stereo.
audio:level_tape (level) set tape level.
audio:level_cut (level) set cut master level.
audio:pitch_on () enable input pitch analysis.
audio:pitch_off () disable input pitch analysis (saves CPU).
audio:restart () restart the audio engine (recompile sclang).

Effects functions

audio:rev_on () reverb on.
audio:rev_off () reverb off.
audio:level_monitor_rev (val) reverb Monitor level.
audio:level_eng_rev (val) reverb ENGINE level.
audio:level_tape_rev (val) reverb TAPE level.
audio:level_rev_dac (val) reverb DAC level.
audio:rev_param (name, val) set reverb parameter.
audio:comp_on () turn on compressor.
audio:comp_off () turn off compressor.
audio:comp_mix (val) compressor mix amount.
audio:comp_param (name, val) set compressor parameter.

Tape Functions

audio:tape_play_open (file) open a tape file.
audio:tape_play_start () start tape playing.
audio:tape_play_stop () stop tape playing.
audio:tape_record_open (file) open a tape recording file.
audio:tape_record_start () start tape recording.
audio:tape_record_stop () stop tape recording.

Softcut levels

audio:level_adc_cut (value) softcut adc level.
audio:level_eng_cut (value) softcut eng level.
audio:level_tape_cut (value) softcut tape level.
audio:level_cut_rev (value) softcut cut reverb level.

global functions

audio:vu (in1, in2, out1, out2) callback for VU meters.

helpers

audio:set_audio_level (value) set output level, clamped, save state.
audio:adjust_output_level (delta) adjust output level, clamped, save state.
audio:file_info (path) print audio file info


Methods

audio:headphone_gain (gain)
set headphone gain.

Parameters:

  • gain number (0-64)
audio:level_adc (level)
set level for ADC input.

Parameters:

  • level in [0, 1]
audio:level_dac (level)
set level for *both* output channels.

Parameters:

  • level in [0, 1]
audio:level_monitor (level)
set monitor level for *both* input channels.

Parameters:

  • level in [0, 1]
audio:monitor_mono ()
set monitor mode to mono. both inputs will be mixed to both outputs.
audio:monitor_stereo ()
set monitor mode to stereo. each input will be monitored on the respective output.
audio:level_tape (level)
set tape level.

Parameters:

  • level [0,1]
audio:level_cut (level)
set cut master level.

Parameters:

  • level [0,1]
audio:pitch_on ()
enable input pitch analysis.
audio:pitch_off ()
disable input pitch analysis (saves CPU).
audio:restart ()
restart the audio engine (recompile sclang).

Effects functions

audio:rev_on ()
reverb on.
audio:rev_off ()
reverb off.
audio:level_monitor_rev (val)
reverb Monitor level.

Parameters:

  • val number
audio:level_eng_rev (val)
reverb ENGINE level.

Parameters:

  • val number
audio:level_tape_rev (val)
reverb TAPE level.

Parameters:

  • val number
audio:level_rev_dac (val)
reverb DAC level.

Parameters:

  • val number
audio:rev_param (name, val)
set reverb parameter.

Parameters:

audio:comp_on ()
turn on compressor.
audio:comp_off ()
turn off compressor.
audio:comp_mix (val)
compressor mix amount.

Parameters:

  • val number
audio:comp_param (name, val)
set compressor parameter.

Parameters:

Tape Functions

audio:tape_play_open (file)
open a tape file.

Parameters:

  • file
audio:tape_play_start ()
start tape playing.
audio:tape_play_stop ()
stop tape playing.
audio:tape_record_open (file)
open a tape recording file.

Parameters:

  • file
audio:tape_record_start ()
start tape recording.
audio:tape_record_stop ()
stop tape recording.

Softcut levels

audio:level_adc_cut (value)
softcut adc level.

Parameters:

  • value number
audio:level_eng_cut (value)
softcut eng level.

Parameters:

  • value number
audio:level_tape_cut (value)
softcut tape level.

Parameters:

  • value number
audio:level_cut_rev (value)
softcut cut reverb level.

Parameters:

  • value number

global functions

audio:vu (in1, in2, out1, out2)
callback for VU meters. scripts should redefine this.

Parameters:

  • in1 input level 1 in [0, 63], audio taper
  • in2
  • out1
  • out2

helpers

audio:set_audio_level (value)
set output level, clamped, save state.

Parameters:

  • value number audio level (0-64)
audio:adjust_output_level (delta)
adjust output level, clamped, save state.

Parameters:

  • delta number amount to change output level
audio:file_info (path)
print audio file info

Parameters:

  • path string (from dust directory)
generated by LDoc 1.4.6 Last updated 2020-03-28 23:45:19