Chip
clamp
inAudioinputControl{f32}minControl{f32}maxControl{f32}
outputControl{f32}
- label
Clamp- description
Clamps a CV input to a specified range.- category
filter- rate
Audio- factory
Audio- has_interface
true- keywords
limit, clip, constrain, bound, saturate- tags
cv, math, limit
Ports
| channels | control_type | default | default_value | dir | doc | name | port_spec | range | relay_mode | relay_type | signal | type |
|---|
1 | f32 | false | | in | | input | | | | f32 | Cv | Control |
1 | f32 | false | | in | | min | | | | f32 | Cv | Control |
1 | f32 | false | | in | | max | | | | f32 | Cv | Control |
1 | f32 | false | | out | clamp(input, min, max) | output | | | | f32 | Audio | Control |
Parameters
| binds_to | clamp | default | kind | mapping | name | range | role | signal | variants | widget |
|---|
| false | 0 | cv | Linear { min: -10.0, max: 10.0 } | input | [-10,10] | Primary | Cv | [] | Slider |
| false | 0 | cv | Linear { min: -10.0, max: 10.0 } | min | [-10,10] | Primary | Cv | [] | Slider |
| false | 1 | cv | Linear { min: -10.0, max: 10.0 } | max | [-10,10] | Primary | Cv | [] | Slider |
Annotations
- cv_output_follows_input
input