Module softcut

Softcut module

API for controlling the "softcut" buffer processor includes low-level setters and mid-level utilities

SC.level (voice, value) set level of each voice
SC.pan (voice, value) set pan of each voice
SC.level_input_cut (ch, voice, value) set input level to each voice/channel
SC.level_cut_cut (src, dst, value) set mix matrix, voice output to voice input
SC.play (voice, state) set play status
SC.loop_start (voice, value) set loop start
SC.loop_end (voice, value) set loop end
SC.loop (voice, state) set loop mode
SC.fade_time (voice, value) set fade time
SC.rec_level (voice, value) set record level
SC.pre_level (voice, value) set pre level (overdub preserve)
SC.rec (voice, state) set record status
SC.rec_offset (voice, value) set record head offset
SC.position (voice, value) set play position
SC.buffer (i, b) specify buffer used by voice
SC.voice_sync (src, dest, v) sync two voices
SC.filter_fc (voice, value) set filter cutoff
SC.filter_fc_mod (voice, value) set filter mod
SC.filter_rq (voice, value) set filter q
SC.filter_lp (voice, value) set filter lp
SC.filter_hp (voice, value) set filter hp
SC.filter_bp (voice, value) set filter bp
SC.filter_br (voice, value) set filter br
SC.filter_dry (voice, value) set filter dry
SC.level_slew_time (voice, value) set level slew time
SC.rate_slew_time (voice, value) set rate slew time
SC.phase_quant (voice, value) set phase poll quantization
SC.poll_start_phase () start phase poll
SC.poll_stop_phase () stop phase poll
SC.enable (voice, state) set voice enable
SC.buffer_clear () clear all buffers
SC.buffer_clear_channel (i) clear one channel of buffer
SC.buffer_clear_region (start, stop) clear region (both channels)
SC.buffer_clear_region_channel (ch, start, stop) clear region of single channel
SC.buffer_read_mono (file, start_src, start_dst, dur, ch_src, ch_dst) read file to one channel
SC.buffer_read_stereo (file, start_src, start_dst, dur) read file, stereo
SC.buffer_write_mono (file, start, dur, ch) write file, mono
SC.buffer_write_stereo (file, start, dur) write file, stereo
SC.event_phase (f) set function for phase poll
SC.reset () reset softcut params
SC.params () controlspec factory each table contains an entry for each softcut parameter.


SC.level (voice, value)
set level of each voice

Parameters:

  • voice
  • value
SC.pan (voice, value)
set pan of each voice

Parameters:

  • voice
  • value
SC.level_input_cut (ch, voice, value)
set input level to each voice/channel

Parameters:

  • ch
  • voice
  • value
SC.level_cut_cut (src, dst, value)
set mix matrix, voice output to voice input

Parameters:

  • src
  • dst
  • value
SC.play (voice, state)
set play status

Parameters:

  • voice integer : voice number (1-?)
  • state integer : off/on (0,1)
SC.loop_start (voice, value)
set loop start

Parameters:

  • voice
  • value
SC.loop_end (voice, value)
set loop end

Parameters:

  • voice
  • value
SC.loop (voice, state)
set loop mode

Parameters:

  • voice integer : voice number (1-?)
  • state integer : off/on (0,1)
SC.fade_time (voice, value)
set fade time

Parameters:

  • voice
  • value
SC.rec_level (voice, value)
set record level

Parameters:

  • voice
  • value
SC.pre_level (voice, value)
set pre level (overdub preserve)

Parameters:

  • voice
  • value
SC.rec (voice, state)
set record status

Parameters:

  • voice integer : voice number (1-?)
  • state integer : off/on (0,1)
SC.rec_offset (voice, value)
set record head offset

Parameters:

  • voice
  • value
SC.position (voice, value)
set play position

Parameters:

  • voice
  • value
SC.buffer (i, b)
specify buffer used by voice

Parameters:

  • i integer : voice number
  • b integer : buffer number (1,2)
SC.voice_sync (src, dest, v)
sync two voices

Parameters:

  • src
  • dest
  • v
SC.filter_fc (voice, value)
set filter cutoff

Parameters:

  • voice
  • value
SC.filter_fc_mod (voice, value)
set filter mod

Parameters:

  • voice
  • value
SC.filter_rq (voice, value)
set filter q

Parameters:

  • voice
  • value
SC.filter_lp (voice, value)
set filter lp

Parameters:

  • voice
  • value
SC.filter_hp (voice, value)
set filter hp

Parameters:

  • voice
  • value
SC.filter_bp (voice, value)
set filter bp

Parameters:

  • voice
  • value
SC.filter_br (voice, value)
set filter br

Parameters:

  • voice
  • value
SC.filter_dry (voice, value)
set filter dry

Parameters:

  • voice
  • value
SC.level_slew_time (voice, value)
set level slew time

Parameters:

  • voice
  • value
SC.rate_slew_time (voice, value)
set rate slew time

Parameters:

  • voice
  • value
SC.phase_quant (voice, value)
set phase poll quantization

Parameters:

  • voice
  • value
SC.poll_start_phase ()
start phase poll
SC.poll_stop_phase ()
stop phase poll
SC.enable (voice, state)
set voice enable

Parameters:

  • voice integer : voice number (1-?)
  • state integer : off/on (0,1)
SC.buffer_clear ()
clear all buffers
SC.buffer_clear_channel (i)
clear one channel of buffer

Parameters:

  • i
SC.buffer_clear_region (start, stop)
clear region (both channels)

Parameters:

  • start
  • stop
SC.buffer_clear_region_channel (ch, start, stop)
clear region of single channel

Parameters:

  • ch
  • start
  • stop
SC.buffer_read_mono (file, start_src, start_dst, dur, ch_src, ch_dst)
read file to one channel

Parameters:

  • file
  • start_src
  • start_dst
  • dur
  • ch_src
  • ch_dst
SC.buffer_read_stereo (file, start_src, start_dst, dur)
read file, stereo

Parameters:

  • file
  • start_src
  • start_dst
  • dur
SC.buffer_write_mono (file, start, dur, ch)
write file, mono

Parameters:

  • file
  • start
  • dur
  • ch
SC.buffer_write_stereo (file, start, dur)
write file, stereo

Parameters:

  • file
  • start
  • dur
SC.event_phase (f)
set function for phase poll

Parameters:

  • f
SC.reset ()
reset softcut params
SC.params ()
controlspec factory each table contains an entry for each softcut parameter. each entry is a parameter argument list configured for that voice+param

Returns:

    an array of tables, one per voice.
generated by LDoc 1.4.6 Last updated 2019-04-04 20:07:57