CsoundUnity 4.0.0-alpha.3
Loading...
Searching...
No Matches
Class List
Here are the classes, structs, unions and interfaces with brief descriptions:
 NCsound
  NUnity
   NCsoundCSharp
    CCsoundThe P/Invoke layer: the Csound 7 C API as it is reached from C#. The platform's library name and the callback delegates live here; Csound.NativeMethods holds the entry points themselves. Code outside the package should use CsoundUnity rather than calling these
   NMIDI
    NInternal
     CIMidiReceiverPlatform-specific MIDI input receiver. Implementations enumerate connected MIDI sources, open input ports, and invoke the callback with raw MIDI bytes on every incoming message
     CMidiPacketSplitterSplits a run of MIDI bytes into the messages it holds
   NNativeAudioInput
    CAndroidAudioInputFallbackFallback audio input for Android devices that cannot use AAudio (API < 26). Uses Unity's Microphone API, which works on all Android versions but has higher latency than AAudio
    CAudioInputDevicePlatform-agnostic descriptor for an audio input device returned by CsoundUnityNativeAudioInput.Devices
    CAudioInputDeviceIndexAttributeDraws a device index as the list of inputs the machine has, read before play, with the system's own first. Choosing that one turns CsoundUnityNativeAudioInput.UseSystemDefaultDevice on, and choosing a device turns it off and stores the position: one control for what is one decision
    CAudioInputSampleRateAttributeDraws an int field as a choice among the rates the selected input device declares, read from AudioInputDevice.SupportedSampleRates, with 0 standing for Csound's own rate. Falls back to a plain field on a device that declares no list
    CCsoundUnityAudioInputRouterCross-platform audio input coordinator for CsoundUnity
    CCsoundUnityNativeAudioInputManages native multi-channel audio input and routes captured samples into the Csound spin buffer each ksmps cycle
    CNativeAudioInputBridgeP/Invoke declarations for the native audio input plugins. The API surface is identical on macOS (CoreAudio) and Android (AAudio); only the library name differs
    CWebGLAudioInputWebGL audio input: the browser microphone, as seen from C#
   NTimelines
    CCsoundUnityChannelPlayableBehaviourThe PlayableBehaviour for a single clip on a CsoundUnityChannelTrack. Holds the target value for the Csound channel that will be blended by CsoundUnityMixerBehaviour. Supports three modes: Fixed (constant value), Random (S&H stepped), RandomSmooth (interpolated)
    CCsoundUnityChannelPlayableClipThe PlayableAsset for a clip on a CsoundUnityChannelTrack. Holds the template CsoundUnityChannelPlayableBehaviour and creates a blendable ScriptPlayable<T> for it at runtime
    CCsoundUnityChannelTrackA Unity Timeline track that automates a named Csound channel value over time. Clips placed on this track will be blended together by CsoundUnityMixerBehaviour. Bind a CsoundUnity component to this track in the Timeline window
    CCsoundUnityMixerBehaviourThe mixer PlayableBehaviour for CsoundUnityChannelTrack. Blends the values from all active CsoundUnityChannelPlayableBehaviour clips and sets the result on the named Csound channel each frame
    CCsoundUnityMusicalTransportOwns manual director evaluation while musical transport is enabled
    CCsoundUnityScoreClipStateThe saved state of one sequencer clip inside a CsoundUnityScoreState, plus what is needed to find the clip it came from again
    CCsoundUnityScoreMixerBehaviourNo-op mixer for CsoundUnityScoreTrack. Required by Unity Timeline so that CsoundUnityScorePlayableClip can use UnityEngine.Timeline.ClipCaps.Blending, which enables the Clip Properties curve editor for animatable parameters. All actual score scheduling logic lives in CsoundUnityScorePlayableBehaviour.ProcessFrame
    CCsoundUnityScorePlayableBehaviourPlayableBehaviour for a clip on a CsoundUnityScoreTrack. Sends Csound score events when the clip plays. Supports Score, Swarm, Arpeggio, Euclidean, Stochastic, Chord, Pattern and Step
     CPatternLaneOne lane in a Pattern clip: maps to a single Csound instrument number and carries its own on/off step pattern plus velocity settings
     CSequencerStepOne step in a StepLane. Values of 0 mean "use lane default"
     CStepLaneOne lane in a Step clip: maps to a single Csound instrument and carries per-step pitch, velocity, and duration data
     CScoreInfoThe part of a clip that is set once and not animated: which mode it runs in, which instrument it plays, and the per mode settings. Timeline animates the fields on the behaviour itself, not these
     CSchedulerCheckpoint
    CCsoundUnityScorePlayableClipThe PlayableAsset for a clip on a CsoundUnityScoreTrack. Holds the serialized CsoundUnityScorePlayableBehaviour and creates a ScriptPlayable<T> for it at runtime
    CCsoundUnityScoreStateThe saved state of every sequencer clip of one timeline. Created from CsoundUnity/Timeline Snapshot in the asset menu, or by the Save button on CsoundUnityTimelineController
    CCsoundUnityScoreTrackA Unity Timeline track that sends Csound score events. Clips placed on this track will trigger score events on the bound CsoundUnity component. Bind a CsoundUnity component to this track in the Timeline window
    CCsoundUnitySharedBeatClockIntegrates director time into beats, or maps it at a fixed reference tempo for musical transport. Sampling the same director time twice returns the same tempo and position, so every clip in an evaluation sees the same grid
     CFrame
    CCsoundUnitySharedBeatCursorA clip's next unscheduled ordinal on the master's beat grid. Pattern length changes only the lane index, never the grid. This value is copied into the scheduler checkpoint on rebuilds
    CCsoundUnityTimelineClipEventA clip entering or leaving the director's active arrangement position
    CCsoundUnityTimelineClipUnityEventInspector callbacks receiving clip lifecycle data
    CCsoundUnityTimelineControllerProvides runtime access to CsoundUnityScorePlayableBehaviour instances running inside a PlayableDirector
    CCsoundUnityTimelineDebugMonitorDraws an on screen readout of what the director is playing: the tracks, the clips active now and what each one is sending. The panel refreshes on its own interval, so reading it costs less than a value polled every frame
    CCsoundUnityTimelineEventDispatcherTracks arrangement membership and predicted real-time onsets independently of graph behaviour lifetimes
    CCsoundUnityTimelineEventSourceSource identity shared by clip, note and step notifications; contains no graph behaviour references
    CCsoundUnityTimelineNoteEventA generated note sent to Csound; optional musical values are qualified by their Has flags
    CCsoundUnityTimelineNoteUnityEventInspector callbacks receiving generated-note data
    CCsoundUnityTimelineStarterWaits for CsoundUnity to be fully initialized before starting the PlayableDirector. Attach this to any GameObject in a Timeline scene that uses CsoundUnity clips. Set the PlayableDirector to NOT play on awake, then let this component start it
    CCsoundUnityTimelineStepEventA sequencer position, emitted even for a rest; StepIndex is zero based
    CCsoundUnityTimelineStepUnityEventInspector callbacks receiving sequencer positions
    CITempoProviderA BPM source for score clips that opt in to shared tempo
    CPatternUIBuilderGenerates and manages the runtime UI for CsoundUnityScorePlayableBehaviour.ScoreMode.Pattern clips. Inherits clip navigation, chip strip, and UI primitives from SequencerUIBase
     CPatternLaneUIThe widgets of one pattern lane: its mute toggle and the row of step squares
    CSequencerPresetA saved sequencer setup: the mode, the grid, and the lanes with their steps. Created from CsoundUnity/Sequencer Preset in the asset menu, and applied by the Step and Pattern sequencer UI
    CSequencerPresetCatalogBuilt-in Pattern and Step preset data shared by the runtime builders and the clip inspector. Names are read-only; row and preset accessors return copies so applying or editing a preset cannot change the catalog. Application rules remain in the callers
     CStepNoteOne note or rest, expressed as MIDI pitch and optional velocity/duration overrides
     CStepLaneLane metadata and notes; editor and runtime choose which fields to apply
     CStepPresetA named Step preset. Returned arrays belong to the caller
    CSequencerPresetLaneOne lane of the sequencer: an instrument, its defaults, and its steps
    CSequencerPresetStepOne step of one lane
    CSequencerUIBaseShared foundation for StepUIBuilder and PatternUIBuilder. Owns the clip-navigation chip strip, the BPM display, and all UI-helper primitives that are byte-for-byte identical in both concrete builders
    CStepUIBuilderGenerates and manages the runtime UI for CsoundUnityScorePlayableBehaviour.ScoreMode.Step clips. Inherits clip navigation, chip strip, and UI primitives from SequencerUIBase
     CStepCellUIThe widgets of one cell in a step lane: the coloured square and the note name drawn on it
     CStepLaneUIThe widgets of one step lane: its mute toggle and the row of cells
   NUtilities
    NComponents
     NUI
      CCsoundUnityButtonA Unity UI Button component that integrates with CsoundUnity. Can operate in two modes: ButtonMode.Score sends a score event to Csound when clicked, ButtonMode.Channel acts as a trigger on a named channel, toggling its value between 0 and 1
      CCsoundUnityDropdownA Unity UI Dropdown component that integrates with CsoundUnity. Maps a Cabbage combobox widget to a Unity Dropdown, populating options automatically from the channel controller and sending the selected index (1-based, as Cabbage expects) to Csound
      CCsoundUnityEncoderAn endless rotary encoder UI component that drives a single Csound channel, corresponding to a Cabbage encoder widget
      CCsoundUnityKeyboardMaps physical keyboard keys to MIDI note events sent to CsoundUnity. Corresponds to the Cabbage keyboard widget
      CCsoundUnityKnobA rotary knob UI component that drives a single Csound channel, corresponding to a Cabbage rslider widget
      CCsoundUnityLabelDisplays text associated with a Cabbage label widget. On initialisation the label text is read from the CsoundChannelController whose channel name matches _channel. If no channel is set the text shown in the inspector's _labelText field is left as-is, allowing purely static labels
      CCsoundUnityMeterA read-only Unity UI Slider that displays a value written to a Csound channel by the orchestra (i.e. the data flows FROM Csound TO the UI, not vice-versa). Corresponds to the Cabbage meter widget. The slider's interactable flag is forced to false at runtime. Range (min/max) is read from the CsoundChannelController parsed from the CSD, so make sure the meter widget declares a range()
      CCsoundUnityNSliderDraggable number-box widget that integrates with CsoundUnity. Corresponds to the Cabbage nslider widget
      CCsoundUnityPianoKeyAttach to each key button in a Canvas piano keyboard. Forwards pointer-down / pointer-up (mouse and touch) to CsoundUnityKeyboard as note-on / note-off events
      CCsoundUnityRangeSliderA Unity UI Range Slider that drives two Csound channels (min and max) simultaneously using two independent draggable handles on a shared track
      CCsoundUnitySliderA Unity UI Slider component that integrates with CsoundUnity. Automatically maps the slider range (0-1) to the min/max of a named Csound channel, and updates the channel value in real time as the slider is moved. Exposes both sides of the widget to code: Value, the slider's own position, and ChannelValue, the value in the channel's own range
      CCsoundUnityToggleA Unity UI Toggle component that integrates with CsoundUnity. Maps a Cabbage checkbox widget to a Unity Toggle, sending 0 or 1 to the named Csound channel
      CCsoundUnityXYPadA Unity UI XY Pad that sends two Csound channel values in real time via drag gestures
    NMonoBehaviours
     CAudioDisplayVisualises audio data as a waveform or frequency spectrum using a LineRenderer
     CAudioOutputRecorderRecords what Unity finally plays, every channel of it, into a WAV file
     CCopyFilesToPersistentDataPathCopies files from Resources or StreamingAssets into Application.persistentDataPath so that Csound can find them via Environment Variables (e.g. SFDIR, SSDIR, SADIR)
      CAdditionalFileInfoOne non-audio file to copy, such as a csd or a soundfont
      CAudioFileInfoOne audio file to copy
     CCsoundUnityDopplerWrites the geometry between this object and the AudioListener into Csound channels, so an orchestra can produce its own Doppler shift and its own propagation delay
     CCsoundUnityNativeAudioInputMonitorOn-screen panel for CsoundUnityNativeAudioInput: which device is open, whether anything is arriving, an input meter, and a list to switch device without leaving play mode
     CTableLoaderLoads audio samples from an AudioClip into a Csound table
     CURLButtonOpens a URL in the system browser. Wire OpenURL to a Button's onClick and type the address in the inspector, so a scene can carry a clickable credit or documentation link without a script of its own
     CWaveformDrawerRead samples from an AudioClip, draw its waveform in a RawImage, and use an Image as a progress bar
    CAudioSamplesUtilsUtility class that provides various methods for working with audio samples. It includes methods to convert between different audio data types, extract channel data, and retrieve audio sample data from different sources
    CFFTUtilsUtility class for real-time FFT spectrum analysis
    CMusicUtilsStatic utilities for music theory calculations: scale intervals, frequency conversion, tempo math. These are shared across CsoundUnity features (Timelines, standalone components, etc.)
    CRemapUtilsUtility class for remapping numeric values between ranges, with optional clamping and exponential skewing
    CSceneObjectUtilsFinds objects in loaded scenes and provides runtime lookup keys across supported Unity versions
    CWriteAudioFileUtilsUtility class for writing WAV and AIFF audio files from Unity AudioClip data
   CAudioChannelReaderReads the audio a CsoundUnity instance publishes on one of its named audio channels, one finished block at a time, from any thread
   CAudioInputRouteDefines a single audio-rate connection from a source CsoundUnity instance into this instance's Csound spin (input) buffer
   CAudioPathSharedThe small decisions the three audio paths must make identically: which Csound channel feeds a Unity output channel, how far the startup fade has got, and what to divide a sample by
   CCabbage3BoundsWhere a widget sits, in pixels
   CCabbage3ChannelOne channel of a widget. Cabbage 3 lets a widget carry any number of these, each with its own id and its own interaction, so they are channels rather than parts of one control
   CCabbage3ChannelLabelThe name a channel shows in a plugin host's parameter list, never on screen
   CCabbage3DocumentThe root object of a Cabbage 3 section
   CCabbage3LabelThe text a widget shows on screen
   CCabbage3ParserReads the <Cabbage> JSON section of a Cabbage 3 csd into CsoundChannelController entries, the shape the Cabbage 2 line parser also produces, so presets, the inspector and the UI components see one model
   CCabbage3RangeThe numeric bounds of one Cabbage 3 channel
   CCabbage3ReadingWhat reading a Cabbage 3 section produced: the channel controllers, and everything the csd declared that this version does not act on. One object, so a caller that wants the warnings does not read the csd a second time to get them
   CCabbage3SizeA form's window size, which it carries instead of bounds
   CCabbage3WidgetOne widget. A single class for every type, because the widgets array is heterogeneous and type says which fields carry anything
   CCarrierClipBuilds the clip CsoundUnity and CsoundUnityChild put on their AudioSource when the user has not put one there themselves. It carries no audio: it exists so FMOD gives the AudioSource a DSP node, without which OnAudioFilterRead is never called at all, and so that what arrives in that callback is the gain Unity wants applied — volume, mute, distance and the panner's placement, all of it already in those samples
   CCsoundArrayChannelArguments
   CCsoundArrayChannelInfoMetadata for the shape observed under the same channel lock as an array copy
   CCsoundArrayChannelInteropABI prefixes from the bundled Csound headers; never copies or replaces an ARRAYDAT structure
   CCsoundBridgeRegistryShared static registry of Csound bridges for the IAudioGenerator path
   CCsoundChannelControllerUtility class for controller and channels
   CCsoundChannelDataArguments
   CCsoundChildControlControl struct for CsoundUnityChild IAudioGenerator path.
   CCsoundChildEntryEntry stored in CsoundChildRegistry for one CsoundUnityChild instance operating in the IAudioGenerator path
   CCsoundChildRealtimeRealtime struct for CsoundUnityChild IAudioGenerator path.
   CCsoundChildRegistryShared static registry of CsoundChildEntry objects for the CsoundUnityChild IAudioGenerator path
   CCsoundControlLayer 2a — Control state (control thread).
   CCsoundPvsChannelArguments
   CCsoundPvsChannelInfoMetadata and frame counter observed atomically with a PVS snapshot
   CCsoundPvsChannelInteropPVSDAT/AUXCH prefixes from the bundled headers, independent of MYFLT precision
   CCsoundRealtimeLayer 2b — Realtime state (audio thread).
   CCsoundRootControlControl struct for the AudioPath.RootOutput path (Unity 6+)
   CCsoundRootRealtimeRealtime struct for the AudioPath.RootOutput path (Unity 6+)
   CCsoundSharedBufferWait-free, single-producer / multiple-consumer snapshot buffer used to hand blocks of audio from the thread that produces them to any number of threads that observe them
   CCsoundTableCopyRequestThe result of an asynchronous table copy. Poll this on the calling thread
   CCsoundUnityRuns Csound inside a scene: compiles a .csd, performs it while the scene plays, and exposes its channels to the rest of the game
   CCsoundUnityBridgeThe managed wrapper around one native Csound instance: it creates Csound, compiles the csd, and exposes the calls CsoundUnity needs — channels, score events, the spin and spout buffers, function tables and teardown. One bridge belongs to one CsoundUnity
    COpcodeArgumentTypesHolds the output type string, input type string, and flags for a Csound opcode
    CChannelInfoDescribes a single Csound software-bus channel: its name, data type, direction, and optional control hints
    CChannelHintsThis structure holds the parameter hints for control channels
   CCsoundUnityChildCsoundUnityChild is a component that can output AudioChannels found in the csd of the associated CsoundUnity gameObject
   CCsoundUnityMidiInputPlatform-agnostic MIDI input component for CsoundUnity. Add this component to the same GameObject as CsoundUnity (or assign the CsoundUnity reference in the inspector). Make sure the CSD has <CsOptions> -M0 </CsOptions> to activate Csound's MIDI subsystem
   CCsoundUnityPresetA set of control channel values for one csd, saved as an asset
   CCsoundUnityVectorMorphVector synthesis component: blends four CsoundUnityPreset placed at the corners of a unit square using bilinear interpolation, driven by a 2D position in [0,1]×[0,1]. Inspired by the Sequential Prophet VS and Korg Wavestation vector synthesis paradigm
   CCsoundWorkerA Csound instance on a thread of its own, started with -n -d so it touches no audio device. Used for work that must not run on the audio thread: rendering a csd to a file, and scanning a csd for the channels its orchestra allocates
   CEnvironmentSettingsThis class describes a setting that is meant to be used to set Csound's Global Environment Variables
   CINativeAudioInputProviderImplemented by Csound.Unity.NativeAudioInput.CsoundUnityNativeAudioInput. When assigned to CsoundUnity.nativeAudioInputProvider, this method is called once per ksmps boundary (before PerformKsmps) on the Unity audio thread to write captured microphone samples into the Csound spin buffer
   CSpoutRendererDrives Csound for one Unity audio block and copies spout into the block's buffer. The two Unity 6 audio paths, AudioPath.IAudioGenerator and AudioPath.RootOutput, both consist of this: they differ in where Unity hands the buffer to them, not in what they do with it, so they embed this and keep their own plumbing