solid-knobs / rangeCreators
- createFrequencyRange
- createVolumeRange
- createPercentageRange
- createBipolarPercentageRange
- createAccuratePercentageRange
- createToggleRange
▸ createFrequencyRange(start?
, end?
): ContinuousRange
Creates a range for frequency values.
Name | Type | Default value | Description |
---|---|---|---|
start |
number |
20 |
The start frequency in hertz (default = 20). |
end |
number |
20000 |
The end frequency in hertz (default = 20000). |
▸ createVolumeRange(start?
, end?
): ContinuousRange
Name | Type | Default value |
---|---|---|
start |
number |
0 |
end |
number |
1 |
▸ createPercentageRange(start?
, end?
): ContinuousRange
Creates a range for percentage values.
Name | Type | Default value | Description |
---|---|---|---|
start |
number |
0 |
The start value (default = 0). |
end |
number |
1 |
The end value (default = 1). |
▸ createBipolarPercentageRange(start?
, end?
): ContinuousRange
Creates a range for percentages going from -end
... end
.
Name | Type | Default value | Description |
---|---|---|---|
start |
number |
0 |
The start value (default = 0). |
end |
number |
1 |
The end value (default = 1). |
▸ createAccuratePercentageRange(start?
, end?
): ContinuousRange
Creates a range that displays percentages with more accuracy.
Name | Type | Default value | Description |
---|---|---|---|
start |
number |
0 |
The start value (default = 0). |
end |
number |
1 |
The end value (default = 1). |
▸ createToggleRange(offLabel?
, onLabel?
): ChoiceRange
Creates a range whose value is either 0 or 1.
Name | Type | Default value | Description |
---|---|---|---|
offLabel |
string |
'Off' |
The label for when the value is 0. |
onLabel |
string |
'On' |
The label for when the value is 1. |