Export to WAV
#
DescriptionIn SAFE you can export datasets to .wav
, .flac
and .ogg
files, to make it convenient to process data further in
other programs or programming languages. .wav
files can also be used to conveniently listen to sounds.
The format of the .csv
file is as follows for an MxN
data size. Each cell i seperated by ,
. The header consists of the sample rate fs
the xlabel
, the ylabel
and the tag and unit for each channel. Each tag for x
and
y
channels match, and the units for x
and y
also match respectively. After the header the data is found. All the x
data first, followed
by the y
data.
fs=int | ... | ... | |||
xlabel=str | ... | ... | |||
ylabel=str | ... | ... | |||
tag_0 [x_unit ] | ... | tag_N [x_unit ] | tag_0 [y_unit ] | ... | tag_N [y_unit ] |
x_data_0_0 | ... | x_data_0_N | y_data_0_0 | ... | y_data_0_N |
... | ... | ... | ... | ... | ... |
x_data_M_0 | ... | x_data_M_N | y_data_M_0 | ... | `y_data_M_N |
#
InputThe input is MxN
and is a dataset.
#
AttributesAttribute | Value |
---|---|
Name | ExportToCsv |
Path | ' ' |
Overwrite | True |
Inputs | 1 |
#
NameName specifies the name of the block.
#
PathPath specifies the path where the exported .csv
file should be placed.
#
OverwriteOverwrite specifies if True
when an export happens, the new export should overwrite an existing file with the same name, or
if False
creates a new file with the same name + (1).
#
InputsInputs specifies the number of inputs(s) the block will have. Currently there can only be a single input.