| 1 |
csplitter : creates a multi-knobs slider used to split the spectrum in sub-regions |
| 2 |
================================================================================== |
| 3 |
|
| 4 |
Initline |
| 5 |
--------- |
| 6 |
|
| 7 |
.. code:: |
| 8 |
|
| 9 |
csplitter(name='splitter', label='Pitch', min=20.0, max=20000.0, |
| 10 |
init=[500.0, 2000.0, 5000.0], rel='log', res='float', |
| 11 |
gliss=0.025, unit='x', up=False, num_knobs=3, col='red', help='') |
| 12 |
|
| 13 |
Description |
| 14 |
------------ |
| 15 |
|
| 16 |
When created, the splitter is stacked in the slider pane of the main |
| 17 |
Cecilia window in the order it is defined. The values of the splitter |
| 18 |
slider are passed to the module with a variable named `self.name`. The |
| 19 |
knob values are collected using `self.name[0]` to `self.name[num-knobs-1]`. |
| 20 |
The `up` argument passes the values of the splitter on mouse up if set to |
| 21 |
True or continuously if set to False. The `gliss` argument determines the |
| 22 |
duration of the portamento (in seconds) applied between values. The |
| 23 |
resolution of the splitter slider can be set to int or float using the |
| 24 |
`res` argument. The slider color can be set using the `col` argument and |
| 25 |
a color value. However, sliders with `up` set to True are greyed out and |
| 26 |
the `col` argument is ignored. |
| 27 |
|
| 28 |
The csplitter is designed to be used with the FourBand() object in |
| 29 |
order to allow multi-band processing. Although the FourBand() parameters |
| 30 |
can be changed at audio rate, it is not recommended. This filter is CPU |
| 31 |
intensive and can have erratic behavior when boundaries are changed too |
| 32 |
quickly. |
| 33 |
|
| 34 |
Parameters |
| 35 |
----------- |
| 36 |
|
| 37 |
**name**: str |
| 38 |
Name of the splitter slider. |
| 39 |
**label**: str |
| 40 |
Label shown in the csplitter label. |
| 41 |
**min**: float |
| 42 |
Minimum value of the splitter slider. |
| 43 |
**max**: float |
| 44 |
Maximum value of the splitter slider. |
| 45 |
**init**: list of float |
| 46 |
Splitter knobs initial values. List must be of length `num_knobs`. |
| 47 |
Defaults to [500.0, 2000.0, 5000.0]. |
| 48 |
**rel**: str {'lin', 'log'} |
| 49 |
Splitter slider scaling. Defaults to 'lin'. |
| 50 |
**res**: str {'int', 'float'} |
| 51 |
Splitter slider resolution. Defaults to 'float' |
| 52 |
**gliss**: float |
| 53 |
Portamento between values in seconds. Defaults to 0.025. |
| 54 |
**unit**: str |
| 55 |
Unit symbol shown in the interface. |
| 56 |
**up**: boolean |
| 57 |
Value passed on mouse up if True. Defaults to False. |
| 58 |
**num_knobs**: int |
| 59 |
Number of junction knobs. Defaults to 3. |
| 60 |
**col**: str |
| 61 |
Color of the widget. |
| 62 |
**help**: str |
| 63 |
Help string shown in the csplitter tooltip. |
| 64 |
|
| 65 |
|