File: PdefAllGui.schelp

package info (click to toggle)
supercollider 1%3A3.11.2%2Brepack-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 71,152 kB
  • sloc: cpp: 387,846; lisp: 80,328; ansic: 76,515; sh: 22,779; python: 7,932; makefile: 2,333; perl: 1,123; javascript: 915; java: 677; xml: 582; yacc: 314; lex: 175; objc: 152; ruby: 136
file content (59 lines) | stat: -rw-r--r-- 1,777 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
class:: PdefAllGui
summary:: see all Pdefs and their state
categories:: JITLib>GUI, Live Coding
related:: Classes/TdefAllGui, Classes/PdefGui

description::

PdefAllGui uses link::Classes/PdefGui:: views to display all Pdefs, or a selection. Overview: link::Overviews/JITLib::

ClassMethods::

subsection::Creation

method::new

argument::numItems
the maximum number of Pdefs that can be shown.

argument::parent
a parent view on which to display. If nil, a new window is created; strong::parent:: can also be an existing window or a composite view.

argument::bounds
a desired size and position where to display a JITGui. can be nil, a link::Classes/Point::, or a link::Classes/Rect::. JITGuis know their minimum size ( strong::minSize:: ), and if bounds is nil, minSize is used. if bounds is a point or rect, it will be set to at least minSize. With a rect one can also supply a position where to display. If a point,shown size is the maximum of bounds and minSize.

argument::makeSkip
///// Not Done Yet, but on the list

A flag whether to make a skipjack.

argument::options
///// Not Done Yet, but on the list

the only option for PdefAllGui will be [\makeEdit]. adding a "front" PdefGui that also shows the front Pdef's envir.

Examples::

code::
(
Pdef(\a, { |e| 100.do { |i| i.postln; 0.5.wait } });
Pdef(\b, { |e| 100.do { |i| Pdef(\a).set(\otto, 8.rand); exprand(0.1, 3.0).wait } });
t = PdefAllGui(8);
)

	// if you have too many Pdefs, an ezscroller lets you select
"abcdefghijk".do { |ch| Pdef(ch.asSymbol) };

	// you can also filter which ones you see:
Pdef(\a_otti);
Pdef(\a_annerl);
Pdef(\a_bebe);

	// or better from gui
t.prefix_("a_");
t.filtering_(true);

	// if prefix is "", it will filter anything with "_" in it.
t.prefix_("");
t.filtering_(false);
::