Skip to main content

sound:create a sound field

Version: 0.0.0

Description

Create a DPF field from a vector of samples. This field can then be used as a 'signal' by the DPF Sound operators.

Inputs

InputNameExpected type(s)Description
Pin 0
Required
in_data_vectorvector<double>Vector containing the signal's samples as double values. The first sample corresponds to time t = 0 s.
Pin 1
Required
in_sampling_frequencydoubleSampling frequency of the signal in Hz.
Pin 2
Required
in_unitstringUnit of the signal.

Outputs

OutputNameExpected type(s)Description
Pin 0out_fieldfieldSignal as a DPF field, in the format expected by DPF Sound for a signal.

Configurations

NameExpected type(s)Default valueDescription
mutexboolfalseIf this option is set to true, the shared memory is prevented from being simultaneously accessed by multiple threads.

Scripting

Category: sound

Plugin: sound

Scripting name: None

Full name: None

Internal name: create_field_from_vector

License: avrxp_snd_level1

Changelog

  • Version 0.0.0: Initial release.