Module lib.reflection

clocked pattern recorder library

The norns script reference has examples for this module.

Info:

  • Author: rylee & dan & sacha

Functions

new () constructor
copy (to, from) copy data from one reflection to another
double () doubles the current loop
start (beat_sync, offset) start transport
stop () stop transport
set_rec (rec, dur, beat_sync) enable / disable record head
set_loop (loop) enable / disable looping
set_quantization (q) quantize playback
set_length (beats) change pattern length in beats
save (filepath) save pattern data
load (filepath) load pattern data
undo () undo previous overdub
clear () reset
watch (event) watch


Functions

new ()
constructor
copy (to, from)
copy data from one reflection to another

Parameters:

  • to
  • from
double ()
doubles the current loop
start (beat_sync, offset)
start transport

Parameters:

  • beat_sync number (optional) sync playback start to beat value
  • offset number (optional) if set, this value will be added to the beat_sync value
stop ()
stop transport
set_rec (rec, dur, beat_sync)
enable / disable record head

Parameters:

  • rec number 1 for recording, 2 for queued recording or 0 for not recording
  • dur number (optional) duration in beats for recording
  • beat_sync number (optional) sync recording start to beat value
set_loop (loop)
enable / disable looping

Parameters:

  • loop number 1 for looping or 0 for not looping
set_quantization (q)
quantize playback

Parameters:

  • q float defaults to 1/48 (should be at least 1/96)
set_length (beats)
change pattern length in beats

Parameters:

  • beats number
save (filepath)
save pattern data

Parameters:

load (filepath)
load pattern data

Parameters:

undo ()
undo previous overdub
clear ()
reset
watch (event)
watch

Parameters:

  • event
generated by LDoc 1.5.0 Last updated 2024-10-13 17:45:04