File size: 3,241 Bytes
0b44aaf
6eb8fe0
 
 
 
 
 
 
 
 
 
e1fe56c
 
 
 
 
 
 
 
 
0b44aaf
6eb8fe0
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
---
license: cc-by-4.0
task_categories:
- audio-classification
tags:
- audio
- synthesizer
- audio-effects
- parameter-estimation
- synthetic
pretty_name: StemFlipper synth/effects parameter-estimation scaffold
configs:
- config_name: synth
  data_files:
  - split: train
    path: synth/train-*
- config_name: effects
  data_files:
  - split: train
    path: effects/train-*
---

# StemFlipper — synth & effects parameter-estimation dataset (scaffold)

A synthetic **(audio → parameters)** dataset for the inverse problems StemFlipper
targets: recover a synth patch from its sound, and recover an effect chain from
wet audio. No public dataset pairs real audio with the synth-patch / effect-chain
parameters that produced it — this fills that gap with deterministic synthetic
generation. **The moat is the generator + seeds, not stored audio**: every example
here regenerates bit-for-bit from its seed.

## Configs

- **`synth`** — torchsynth `Voice` renders `(audio, params)`; `params` is the
  78-dim normalized parameter vector (`adsr_1.attack`, `vco_1.tuning`, …).
- **`effects`** — a known `dasp-pytorch` chain (`parametric_eq, compressor, distortion`)
  applied to clean synth voices → `(wet audio, params)`; `param_names` labels each
  value.

```python
from datasets import load_dataset
synth = load_dataset("nakas/stemflipper-dataset", "synth", split="train")
fx    = load_dataset("nakas/stemflipper-dataset", "effects", split="train")
```

## Reproduce / extend from seeds

The published splits are a small demo. Regenerate or scale up deterministically:

```python
from dataset.synth_gen import SynthGenConfig, iter_examples
list(iter_examples(SynthGenConfig(batch_indices=[0, 1, 2])))  # 3 batches
```

Generation spec (seeds):

```json
{
  "sample_rate": 44100,
  "synth": {
    "generator": "dataset/synth_gen.py",
    "batch_size": 32,
    "batch_indices": [
      0,
      1
    ],
    "param_names_count": 78
  },
  "effects": {
    "generator": "dataset/effects_gen.py",
    "chain": [
      "parametric_eq",
      "compressor",
      "distortion"
    ],
    "seeds": [
      0,
      1,
      2,
      3
    ],
    "n_dry": 8,
    "param_names": [
      "parametric_eq.low_shelf_gain_db",
      "parametric_eq.low_shelf_cutoff_freq",
      "parametric_eq.low_shelf_q_factor",
      "parametric_eq.band0_gain_db",
      "parametric_eq.band0_cutoff_freq",
      "parametric_eq.band0_q_factor",
      "parametric_eq.band1_gain_db",
      "parametric_eq.band1_cutoff_freq",
      "parametric_eq.band1_q_factor",
      "parametric_eq.band2_gain_db",
      "parametric_eq.band2_cutoff_freq",
      "parametric_eq.band2_q_factor",
      "parametric_eq.band3_gain_db",
      "parametric_eq.band3_cutoff_freq",
      "parametric_eq.band3_q_factor",
      "parametric_eq.high_shelf_gain_db",
      "parametric_eq.high_shelf_cutoff_freq",
      "parametric_eq.high_shelf_q_factor",
      "compressor.threshold_db",
      "compressor.ratio",
      "compressor.attack_ms",
      "compressor.release_ms",
      "compressor.knee_db",
      "compressor.makeup_gain_db",
      "distortion.drive_db"
    ]
  }
}
```

Generated by `dataset/build.py` in the [StemFlipper](https://huggingface.co/spaces/nakas/stemflipper) repo.