| Trilobite 1.4 User Guide | © Darwin Arts L.L.C., 2016

# Sampler Module

The Sampler Module implements a sample and playback buffer with offset, sample duration and pitch control. This module, when triggered by its record trigger signal rising above a threshold, will record its input signal into a buffer. Recording will cease when its record trigger signal falls below the threshold or buffer space is exhausted, whichever comes first. When recording ceases, the playback mode immediately begins. In playback mode, the signal sampled in record mode loops with offset, duration, and rate modifications. The loop offset into the sampled sound is indicated by an input signal. The duration of the loop, as a percentage of the remainder of the sampled sound, is indicated by an input signal. The resampled playback rate of the sampled sound is indicated by yet another input signal.

For a key to understanding the tables on this page, see the Module Types page.

## Adding Input Ports

Adding input ports is not enabled for this module.

## Static Parameters

  # | Title | Type | Description
  0 | Sampler Time Capacity | Floating-point | Indicates the recording capacity of the sampler, in seconds. Range: [0.25, 10.0], LINEAR

## Input Ports

  # | Title | Description | Input Scalar Used | Parameter Scalar Used
  0 | Input Signal | Signal to be Sampled | NO | NO
  1 | Input Record Trigger | If this signal value rises above 0.5, Record mode is activated. When it falls below 0.25, Playback mode is activated. | NO | YES
  2 | Input Loop Start Offset | This signal value indicates the percentage of offset into the sampled sound at which the playback loop starts. If the value is 1.0, then playback is disabled. | NO | YES
  3 | Input Loop Duration | This signal value indicates the percentage of the remainder of the sampled sound after the indicated offset which will be played as loop. If the value is 0.0, then playback is disabled. | NO | YES
  4 | Input Playback Rate | This signal value maps to the range [0.05, 16.0] for resampled playback rates of the loop. | NO | YES

## Output Ports

  # | Title | Description
  0 | Output Signal | Looped and resampled version of the input signal.