---
title: "Sample & Hold"
description: "Local-first visual environment for building and running AI workflows. Build agents visually, deploy anywhere, privacy by design."
canonical: https://docs.nodetool.ai/nodes/nodetool/audio/synth/samplehold
markdown: https://docs.nodetool.ai/nodes/nodetool/audio/synth/samplehold.md
product: NodeTool
source: https://github.com/nodetool-ai/nodetool/blob/main/docs/nodes/nodetool/audio/synth/samplehold.md
---

# Sample & Hold

**Type:** `nodetool.audio.synth.SampleHold`

**Namespace:** `nodetool.audio.synth`

## Description

Samples the signal input on each trigger rising edge and holds it.
    cv, synthesis, sample-hold, modular

    On a trigger rising edge (≥ 0.5) at sample k, the held value becomes signal[k]; the output is the held value every sample. The signal input drives chunk cadence; the trigger is frame-aligned with hold-last.

    Use cases:
    - Classic random-stepped CV (noise → signal, clock → trigger)
    - Quantize an LFO into steps
    - Freeze a modulation value on demand

## Properties

| Property | Type | Description | Default |
|----------|------|-------------|---------|
| signal | `cv` | Stream to sample (drives chunk cadence). | - |
| trigger | `cv` | Sampling clock — samples on each rising edge (≥ 0.5). | - |

## Outputs

| Output | Type | Description |
|--------|------|-------------|
| cv | `cv` |  |

## Related Nodes

Browse other nodes in the [nodetool.audio.synth](./) namespace.
