Csv

Csv is a Modulation composed based on a Csv file.

Install

cargo add autd3-modulation-audio-file
target_link_libraries(<TARGET> PRIVATE autd3::modulation::audio_file)

Included in the main library.

Included in the main library.

Included in the main library.

APIs

use autd3::prelude::*;
use autd3_modulation_audio_file::{Csv, CsvOption};

fn main() {
let _ = 
Csv {
    path: "path/to/foo.csv",
    sampling_config: 4000.0 * Hz,
    option: CsvOption { delimiter: b',' },
};
}
#include<autd3.hpp>
#include "autd3/modulation/audio_file.hpp"

int main() {
using namespace autd3;
const auto path = "path/to/foo.csv";
modulation::audio_file::Csv(path, 4000.0f * Hz,
                            modulation::audio_file::CsvOption{
                                .delimiter = ',',
                            });
return 0; }
using AUTD3Sharp.Modulation.AudioFile;

using static AUTD3Sharp.Units;
new Csv(
    path: "path/to/foo.csv",
    samplingConfig: 4000f * Hz,
    option: new CsvOption
    {
        Delimiter = ',',
    }
);
import pathlib
from pyautd3 import Hz
from pyautd3.modulation.audio_file import Csv, CsvOption

Csv(
    path=pathlib.Path("path/to/foo.csv"),
    sampling_config=4000.0 * Hz,
    option=CsvOption(
        delimiter=",",
    ),
)