Skip to content

dspk generate

Write a synthetic recording (noise, line noise, drifting units)

dspk generate [OPTIONS] <OUTPUT>

Arguments

  • <OUTPUT>
    Output file (bin) or folder (zarr)

Options

  • -c, --channels <CHANNELS>: default 384
  • -d, --duration <DURATION>: default 1
    Length: seconds, or with a unit (90s, 10m, 2h)
  • -r, --sample-rate <SAMPLE_RATE>: default 30000
    Sample rate (Hz)
  • --noise <NOISE>: default 15
    White Gaussian noise, RMS (µV)
  • --line-noise <LINE_NOISE>: default 25
    Power-line interference amplitude (µV)
  • --units <UNITS>
    Simulated units (default: one per 4 channels, at most 64); 0 for noise only
  • -f, --format <FORMAT>
    • bin: Flat binary + JSON .meta sidecar
    • zarr: Chunked Zarr v3 store (float32)
  • --dtype <DTYPE>: default float32, one of float32, int16
    Stored sample type (bin)
  • --order <ORDER>
    Memory order (bin)
    • channel-major
    • time-major: Interleaved frames, as acquisition systems write
  • --step <STEP>: default 0.195
    µV per stored step (bin, int16)