ServerView:
Filter:
ServerView/Classes (extension) | GUI

ServerView
ExtensionExtension

An improved GUI for server information

Description

ServerView is a replacement for the standard SuperCollider server gui. It has a cleaner and more compact look, it supports multiple servers, and displays graphs of CPU usage, Synth counts, as well as a scope and input/output levels.

NOTE: ServerView is built to use the M+ font series: http://mplus-fonts.osdn.jp/mplus-outline-fonts/index-en.html

It will work without these installed, but layout and affordances may not be correct.

Keyboard shortcuts / interaction

pShow node hierarchy window
nDump all node information to post window (s.queryAllNodes(true))
lShow level meters window.
<space>Boot server (if not already running)
sShow scope window
fShow frequency scope window
dEnable / disable dumping of OSC messages
mMute server volume
0Reset server volume to 0dB

Horizontal / vertical mouse wheel or scroll actions over the scope will zoom horizontally and vertically.

Clicking graph widgets will reset their bounds.

Clicking the server name will boot / kill the server.

Adding widgets.

ServerView is populated by widgets that must be subclasses of ServerWidgetBase. To add a new widget type to the ServerView:

1. Create a subclass of ServerWidgetBase. It should not implement a constructor, and must implement a view method that returns a valid View.

2. Add the class to *widgets in your startup file, or any time before a ServerView is created.

Class Methods

.new

Create a new ServerView

Arguments:

key

A Symbol or other IdentityDictionary-appropriate object used to identify the ServerView. See Singleton: -new for behavior. Unless you need multiple ServerView's, no argument is required.

.widgets

Arguments:

widgetlist

A list of subclasses of ServerWidgetBase to be displayed in the ServerView. By default, it contains ServerStatusWidget, VolumeWidget, ScopeWidget. Set this in your startup file to enable alternative configurations of widgets.

Instance Methods

.close

Close the view;

.onClose

Sets or gets the object to be evaluated when the view is destroyed (i.e. closed or removed). It is passed the view as an argument.

.front

Bring ServerView to front. If this ServerView has not been created yet, create it.

.registerKeyAction

Add a keyboard action to the ServerView.

Arguments:

key

A Char representing an ascii key.

action

A function to execute when key is detected.

Examples

ServerView works as a singleton, so the default constructor will always refer to the same object.