Debian Codegraph @

doc-en/source/src/api/Interface/cgraph.rst

raw
1 cgraph : creates a graph only automated parameter or a shapeable envelope
2 =========================================================================
3
4 Initline
5 ---------
6
7 .. code::
8
9 cgraph(name='graph', label='Envelope', min=0.0, max=1.0, rel='lin',
10 table=False, size=8192, unit='x', curved=False,
11 func=[(0, 0.), (.01, 1), (.99, 1), (1, 0.)], col='red')
12
13 Description
14 ------------
15
16 A graph line represents the evolution of a variable during a Cecilia
17 performance. The value of the graph is passed to the module with a
18 variable named `self.name`. The 'func' argument defines an initial
19 break-point line shaped with time/value pairs (floats) as a list. Time
20 values must be defined from 0 to 1 and are multiplied by the total_time
21 of the process. When True, the 'table' argument writes the graph line in
22 a PyoTableObject named with the variable `self.name`. The graph can then
23 be used for any purpose in the module by recalling its variable. The
24 `col` argument defines the color of the graph line using a color value.
25
26 Parameters
27 -----------
28
29 **name**: str
30 Name of the grapher line.
31 **label**: str
32 Label shown in the grapher popup.
33 **min**: float
34 Minimum value for the Y axis.
35 **max**: float
36 Maximum value for the Y axis.
37 **rel**: str {'lin', 'log'}
38 Y axis scaling.
39 **table**: boolean
40 If True, a PyoTableObject will be created instead of a
41 control variable.
42 **size**: int
43 Size, in samples, of the PyoTableObject.
44 **unit**: str
45 Unit symbol shown in the interface.
46 **curved**: boolean
47 If True, a cosinus segments will be drawn between points.
48 The curved mode can be switched by double-click on the curve
49 in the grapher. Defaults to Flase
50 **func**: list of tuples
51 Initial graph line in break-points (serie of time/value points).
52 Times must be in increasing order between 0 and 1.
53 **col**: str
54 Color of the widget.