{
  "schema": "beeps/song@1",
  "name": "touch-plain",
  "title": "Touch · plain",
  "tags": [
    "performance",
    "expression",
    "study"
  ],
  "bpm": 92,
  "loop": false,
  "seed": 308,
  "instruments": {
    "e-piano": {
      "schema": "beeps/patch@1",
      "name": "e-piano",
      "family": "music",
      "tags": [
        "keys",
        "pluck",
        "soft"
      ],
      "duration": 1,
      "layers": [
        {
          "source": {
            "type": "fm",
            "pitch": "C4",
            "operators": [
              {
                "ratio": 1,
                "index": 0
              },
              {
                "ratio": 14,
                "index": 0.35
              }
            ],
            "algorithm": [
              [
                1,
                0
              ]
            ]
          },
          "amp": {
            "attack": 0.003,
            "decay": 0.08,
            "sustain": 0,
            "release": 0.4
          },
          "gainDb": -10
        },
        {
          "source": {
            "type": "fm",
            "pitch": "C4",
            "operators": [
              {
                "ratio": 1,
                "index": 0
              },
              {
                "ratio": 1,
                "index": 1.2
              }
            ],
            "algorithm": [
              [
                1,
                0
              ]
            ]
          },
          "amp": {
            "attack": 0.004,
            "decay": 1.8,
            "sustain": 0.25,
            "release": 0.5
          },
          "filter": {
            "type": "lowpass",
            "cutoff": 3200,
            "resonanceDb": 0,
            "env": {
              "to": 1200,
              "time": 1.2
            }
          }
        },
        {
          "source": {
            "type": "osc",
            "wave": "sine",
            "pitch": "C4"
          },
          "gainDb": -4,
          "amp": {
            "attack": 0.004,
            "decay": 2.2,
            "sustain": 0.35,
            "release": 0.5
          }
        }
      ],
      "meta": {
        "description": "Tine electric piano (FM): warm bell-edged attack that mellows as it decays. Chords and gentle melodies, octave 3-4."
      }
    },
    "sub-bass": {
      "schema": "beeps/patch@1",
      "name": "sub-bass",
      "family": "music",
      "tags": [
        "bass"
      ],
      "duration": 0.5,
      "layers": [
        {
          "source": {
            "type": "osc",
            "wave": "sine",
            "pitch": "C2"
          },
          "amp": {
            "attack": 0.012,
            "decay": 0.4,
            "sustain": 0.85,
            "release": 0.15
          }
        },
        {
          "source": {
            "type": "osc",
            "wave": "triangle",
            "pitch": "C3"
          },
          "gainDb": -16,
          "amp": {
            "attack": 0.012,
            "decay": 0.3,
            "sustain": 0.6,
            "release": 0.12
          },
          "filter": {
            "type": "lowpass",
            "cutoff": 900,
            "resonanceDb": 0
          }
        }
      ],
      "meta": {
        "description": "Round sine sub with a little triangle for small speakers."
      }
    },
    "rim": {
      "schema": "beeps/patch@1",
      "name": "rim",
      "family": "music",
      "tags": [
        "drum",
        "click"
      ],
      "duration": 0.05,
      "layers": [
        {
          "source": {
            "type": "modal",
            "pitch": 1700,
            "modes": [
              [
                1,
                30,
                0
              ],
              [
                2.3,
                25,
                -6
              ]
            ],
            "exciter": "impulse"
          },
          "amp": {
            "attack": 0.001,
            "decay": 0.05,
            "sustain": 0,
            "release": 0.03
          }
        }
      ],
      "meta": {
        "description": "Woody rim click (modal): quiet ticking percussion."
      }
    },
    "shaker": {
      "schema": "beeps/patch@1",
      "name": "shaker",
      "family": "music",
      "tags": [
        "drum",
        "shaker",
        "texture"
      ],
      "duration": 0.12,
      "layers": [
        {
          "source": {
            "type": "grains",
            "rate": 900,
            "grainDecay": 0.002,
            "center": 6500,
            "q": 1.2
          },
          "amp": {
            "attack": 0.01,
            "decay": 0.08,
            "sustain": 0,
            "release": 0.04
          }
        }
      ],
      "meta": {
        "description": "Soft grainy shaker: a short burst of Poisson grains."
      }
    },
    "reed": {
      "duration": 1,
      "layers": [
        {
          "source": {
            "type": "fm",
            "pitch": "D5",
            "operators": [
              {
                "ratio": 1,
                "index": 1
              },
              {
                "ratio": 1,
                "index": 1.7
              }
            ],
            "algorithm": [
              [
                1,
                0
              ]
            ]
          },
          "amp": {
            "attack": 0.045,
            "decay": 0.22,
            "sustain": 0.72,
            "release": 0.16
          },
          "filter": {
            "type": "lowpass",
            "cutoff": 1800,
            "resonanceDb": 0
          },
          "highpass": 180
        }
      ],
      "xRuntime": {
        "inputs": {
          "touch": {
            "min": 0,
            "max": 1,
            "default": 0.5
          }
        },
        "bind": [
          {
            "input": "touch",
            "target": "/layers/0/filter/cutoff",
            "range": [
              -0.9,
              0.8
            ]
          },
          {
            "input": "touch",
            "target": "/layers/0/source/operators/1/index",
            "range": [
              -0.4,
              0.9
            ]
          },
          {
            "input": "touch",
            "target": "/layers/0/amp/attack",
            "range": [
              1,
              -1.5
            ]
          }
        ]
      }
    }
  },
  "progressions": {
    "changes": [
      [
        "Dm9",
        4
      ],
      [
        "Bbmaj9",
        4
      ],
      [
        "Gm9",
        4
      ],
      [
        "A7",
        4
      ],
      [
        "Dm9",
        4
      ],
      [
        "Bbmaj9",
        4
      ],
      [
        "Gm9",
        4
      ],
      [
        "Dm9",
        4
      ]
    ]
  },
  "tracks": {
    "lead": {
      "instrument": "reed",
      "gainDb": -12,
      "pan": 0.08,
      "sends": {
        "reverb": -17,
        "delay": -22
      }
    },
    "keys": {
      "instrument": "e-piano",
      "gainDb": -21,
      "pan": -0.25,
      "sends": {
        "reverb": -19
      }
    },
    "bass": {
      "instrument": "sub-bass",
      "gainDb": -20
    },
    "rim": {
      "instrument": "rim",
      "gainDb": -19,
      "pan": 0.25
    },
    "hat": {
      "instrument": "shaker",
      "gainDb": -24,
      "pan": -0.2
    }
  },
  "patterns": {
    "melody": {
      "bars": 8,
      "notes": [
        [
          0,
          "A4",
          1.5,
          0.56
        ],
        [
          1.75,
          "C5",
          0.5,
          0.7
        ],
        [
          2.5,
          "D5",
          1,
          0.88
        ],
        [
          4.5,
          "F5",
          1.25,
          0.75
        ],
        [
          6,
          "E5",
          0.5,
          0.5
        ],
        [
          6.75,
          "D5",
          1,
          0.61
        ],
        [
          8,
          "Bb4",
          1.5,
          0.68
        ],
        [
          9.75,
          "D5",
          0.5,
          0.52
        ],
        [
          10.5,
          "F5",
          1.25,
          0.82
        ],
        [
          12.25,
          "E5",
          0.75,
          0.55
        ],
        [
          13.25,
          "C#5",
          0.5,
          0.72
        ],
        [
          14,
          "A4",
          1.5,
          0.59
        ],
        [
          16,
          "D5",
          2.5,
          0.86
        ],
        [
          19,
          "A4",
          0.5,
          0.5
        ],
        [
          19.75,
          "C5",
          0.75,
          0.64
        ],
        [
          20.75,
          "F5",
          1.5,
          0.79
        ],
        [
          22.5,
          "E5",
          1,
          0.55
        ],
        [
          24,
          "D5",
          1,
          0.72
        ],
        [
          25.5,
          "Bb4",
          0.5,
          0.5
        ],
        [
          26.25,
          "G4",
          1.25,
          0.67
        ],
        [
          28,
          "A4",
          0.75,
          0.54
        ],
        [
          29,
          "C#5",
          0.5,
          0.71
        ],
        [
          30,
          "D5",
          2,
          0.82
        ]
      ]
    },
    "harmony": {
      "bars": 8,
      "chords": {
        "progression": "changes",
        "octave": 4,
        "voicing": "lead",
        "rhythm": "x... ..x. .... ..x.",
        "strum": 0.012
      },
      "hitBeats": 0.65,
      "vel": 0.6
    },
    "bassline": {
      "bars": 8,
      "notes": [
        [
          0,
          "D2",
          1.5,
          0.65
        ],
        [
          2.5,
          "A2",
          0.5,
          0.5
        ],
        [
          3.5,
          "D2",
          0.35,
          0.55
        ],
        [
          4,
          "Bb1",
          1.5,
          0.65
        ],
        [
          6.5,
          "F2",
          0.5,
          0.5
        ],
        [
          7.5,
          "Bb1",
          0.35,
          0.55
        ],
        [
          8,
          "G2",
          1.5,
          0.65
        ],
        [
          10.5,
          "D3",
          0.5,
          0.5
        ],
        [
          11.5,
          "G2",
          0.35,
          0.55
        ],
        [
          12,
          "A1",
          1.5,
          0.65
        ],
        [
          14.5,
          "E2",
          0.5,
          0.5
        ],
        [
          15.5,
          "A1",
          0.35,
          0.55
        ],
        [
          16,
          "D2",
          1.5,
          0.65
        ],
        [
          18.5,
          "A2",
          0.5,
          0.5
        ],
        [
          19.5,
          "D2",
          0.35,
          0.55
        ],
        [
          20,
          "Bb1",
          1.5,
          0.65
        ],
        [
          22.5,
          "F2",
          0.5,
          0.5
        ],
        [
          23.5,
          "Bb1",
          0.35,
          0.55
        ],
        [
          24,
          "G2",
          1.5,
          0.65
        ],
        [
          26.5,
          "D3",
          0.5,
          0.5
        ],
        [
          27.5,
          "G2",
          0.35,
          0.55
        ],
        [
          28,
          "D2",
          1.5,
          0.65
        ],
        [
          30.5,
          "A2",
          0.5,
          0.5
        ],
        [
          31.5,
          "D2",
          0.35,
          0.55
        ]
      ]
    },
    "rim": {
      "bars": 1,
      "steps": ".... x... .... x...",
      "vel": 0.55
    },
    "hat": {
      "bars": 2,
      "steps": "..x. ..o. ..x. .ox. ..x. ..o. ..x. .o.o",
      "vel": 0.5
    }
  },
  "sections": {
    "study": {
      "bars": 8,
      "play": {
        "lead": "melody",
        "keys": "harmony",
        "bass": "bassline",
        "rim": "rim",
        "hat": "hat"
      }
    }
  },
  "form": [
    "study"
  ],
  "master": {
    "reverb": {
      "preset": "room",
      "returnDb": -7
    },
    "delay": {
      "beats": 0.75,
      "feedback": 0.2,
      "cutoff": 2200,
      "returnDb": -14
    }
  }
}
