CsoundUnity 4.0.0-alpha.3
Loading...
Searching...
No Matches
Csound.Unity.CsoundUnityPreset Class Reference

A set of control channel values for one csd, saved as an asset. More...

Inheritance diagram for Csound.Unity.CsoundUnityPreset:

Public Attributes

string presetName
 The preset's name, which CreatePreset gives to the asset as well.
string csoundFileName
 The file name of the csd this preset was saved from.
List< CsoundChannelController > channels
 The saved channels. Applying the preset writes their value, and the value2 of a two-value widget such as an xypad or a range slider.

Package Functions

string ToJson ()

Detailed Description

A set of control channel values for one csd, saved as an asset.

A preset carries values and nothing else: the channel definition — type, range, skew, increment, a combobox's option list — belongs to the csd. Create one with CsoundUnity.CreatePreset(string, string, List<CsoundChannelController>), and apply it with CsoundUnity.SetPreset(CsoundUnityPreset).

Member Function Documentation

◆ ToJson()

string Csound.Unity.CsoundUnityPreset.ToJson ( )
inlinepackage

Member Data Documentation

◆ channels

List<CsoundChannelController> Csound.Unity.CsoundUnityPreset.channels

The saved channels. Applying the preset writes their value, and the value2 of a two-value widget such as an xypad or a range slider.

◆ csoundFileName

string Csound.Unity.CsoundUnityPreset.csoundFileName

The file name of the csd this preset was saved from.

◆ presetName

string Csound.Unity.CsoundUnityPreset.presetName

The preset's name, which CreatePreset gives to the asset as well.


The documentation for this class was generated from the following file: