TDesignLib:
Filter:
Classes (extension) | Math

TDesignLib : Object
ExtensionExtension

A library to load and search t-designs in support the TDesign class.

Description

A library to support the TDesign class which loads t -designs from the quark's library, which can then be introspected.

The T-Designs found here are from the work of:
McLaren's Improved Snub Cube and Other New Spherical Designs in Three Dimensions, R. H. Hardin and N. J. A. Sloane, Discrete and Computational Geometry, 15 (1996), pp. 429-441.
and are downloaded directly from their site:
http://neilsloane.com/sphdesigns/

Class Methods

TDesignLib.getDesign(numPoints, t, dim: 3)

Return an Array of designs matching the criteria.

Arguments:

numPoints

(describe argument here)

t

Fundamental parameter t. Can be nil, but the returned Array will contain multiple matches if the library contains more than one design matching numPoints.

dim

Currently all designs are dimension 3.

TDesignLib.availableDesigns

Post a list of designs available in the library.

TDesignLib.lib

Return the library: a List of Dictionary objects each with key/value pairs of the \numPoints, \t, and \dim of the design.

TDesignLib.path

TDesignLib.path = value

Return the path which holds the t-design files. Defaults to -defaultPath if not set.

TDesignLib.defaultPath

Return the default path which holds the t-design files.

TDesignLib.initLib

Initialize the library (load from disk). Most other methods call this internally so you likely won't need to do this directly.

TDesignLib.downloadAll(savePath, makeDir: false)

Download all of the t-designs and save them to savePath, creating the directory as needed if makeDir is true.

NOTE: The t-design library is included in this quark, so a normal installation of this quark shouldn't require use of this method.

Ambisonic Toolkit

TDesignLib.getHoaDesigns(optimize: 'energy', order)

From extension in /home/stefan/.local/share/SuperCollider/downloaded-quarks/atk-sc3/Classes/extTDesignLib.sc

Return a Dictionary of t-designs sutiable for ambisonic encoding or decoding.

Arguments:

optimize

Optimize criteria:

\energyTotal energy
\spreadEEnergy spread
NOTE: Optimizing for energy spread, \spreadE, returns a t-design sampled so that energy is smoothed evenely across the sphere, and uses a t-design with more points than \energy.
order

Ambisonic order.

Inherited class methods

Instance Methods

Inherited instance methods