SpatioScope:
Filter:
SpeakersCorner/classes (extension) | GUI > Views

SpatioScope
ExtensionExtension

monitor volume levels on multiple speakers

Description

SpatioScope has a layout of speaker positions in 2D space, and shows the volume levels at each speaker's location.

Class Methods

.group

get and set the parent group of the listening synths (to set a spcific order, or to load-balance with supernova)

.new

Arguments:

locations

locations in space of [-1, 1] for x and y

server

which server to watch

parent

which window or view to show the spatioScope on

bounds

view bounds for the spatioScope

busOffset

busOffset at which spatioScope begins to listen

.grid

create a spatioScope with a grid of locations

Arguments:

numx

number of locations per row

numy

number of locations per column

server

which server

parent

which window or view to show the spatioScope on

bounds

view bounds for the spatioScope

.gridPos

create a grid of locations to use in a spatioScope

.ring

create a spatioScope with a ring of locations

Arguments:

num

number of locations

radius

radius of ring

angleOffset

clockwise angle offset for location 1: 0 is right, 0.5pi is bottom, etc.

server

which server

parent

which window or view to show the spatioScope on

bounds

view bounds for the spatioScope

.ringPos

create an array of locations that form a ring

.rings

create a spatioScope with locations that form concentric rings

Arguments:

nums

number of speakers in each ring

radii

the radii of each ring (nil distributes the radii between 0 and 1)

angleOffsets

the angle offsets for each ring; if a single value, it applies to all rings.

server

which server

parent

which window or view to show the spatioScope on

bounds

view bounds for the spatioScope

Instance Methods

.gui

.start

.stop

start and stop the spatioScope

.isOn

boolean whether spatioscope is running

.show

show (and usually start) the spatioScope

.hide

hide (and usually stop) the spatioScope

.locations

Get the xy locations of the channels

.magnify

get and set a factor by which to magnify amp levels shown

.amps

the current amps measured

.redLevel

get and set the amp level above which the meter turns redCol

.redCol

get and set color for overload level display

.ampAlpha

get and set amp colors transparency

.arListen

tell spatio to listen to audio rate channels with:

Arguments:

busIndex
numChannels
decayTime

.krListen

tell spatio to listen to a control rate signal with:

Arguments:

busIndex
numChannels
decayTime

.rate

the rate and bus type to listen to: one of [\audio, \control]

.busOffset

the bus channel from which to start listening (see examples on top)

.numChannels

The number of adjacent busses to listen to, which is inferred from the number of locations.

.proxy

the nodeproxy which runs the observing synths

.get

.set

get and set parameters of the proxy. usually, this is \decayTime and \busOffset.

.server

.skipjack

.resp

internal instance variables

.parent

.parentView

.bounds

parent view or window of the spatioScope, and its initial bounds

.startBtn

.stopBtn

.ampViews

.magSlider

gui variables

.background

.foreground

get and set the background and foreground colors _before_ showing the spatioScope view

.clickAction

the action to perform when a click happens on the spatioscope. passes in the indices of the ampviews touched.

.indicesFor

find indices of ampViews at a given point

Examples