<commit_before>var bap = require('../index');

function boombap () {
  var drumKit = bap.kit();
  drumKit.connect(bap.compressor({
    threshold: -8,
    gain: 120
  }));

  // three ways to add a sample layer to a slot
  drumKit.slot('Q').layer('sounds/kick.wav');
  var snare = bap.sample('sounds/snare.wav');
  drumKit.slot('W').layer(snare);
  drumKit.slot('W').connect(bap.reverb({
    filter: 'notch',
    cutoff: 1000,
    wet: 3,
    dry: 80
  }));
  drumKit.slot('E').layer(bap.sample({
    src: 'sounds/hihat.wav',
    volume: 50
  }));
  drumKit.slot('E').connect(bap.reverb({
    wet: 5,
    dry: 80,
    time: 0.5,
    cutoff: 5000
  }));

  var plongKit = bap.kit({
    volume: 90
  });
  plongKit.connect(bap.delay({
    filter: 'highshelf',
    time: 0.5,
    sync: true,
    feedback: 30,
    cutoff: 5000,
    wet: 25
  }));
  plongKit.slot('Q').layer(bap.sample({
    src: 'sounds/plong1.wav',
    duration: 95
  }));
  plongKit.slot('W').layer(bap.sample({
    src: 'sounds/plong2.wav',
    duration: 60
  }));

  var stringKit = bap.kit({
    volume: 90
  });
  stringKit.connect(bap.reverb({
    wet: 5,
    dry: 90,
    cutoff: 2500
  }));
  stringKit.slot('Q').layer(bap.sample({
    src: 'sounds/string1.wav',
    duration: 90
  }));
  stringKit.slot('W').layer(bap.sample({
    src: 'sounds/string2.wav',
    duration: 70
  }));<commit_msg>ok, really the last tweak<commit_after>var bap = require('../index');

function boombap () {
  var drumKit = bap.kit();
  drumKit.connect(bap.compressor({
    threshold: -8,
    gain: 120
  }));

  // three ways to add a sample layer to a slot
  drumKit.slot('Q').layer('sounds/kick.wav');
  var snare = bap.sample('sounds/snare.wav');
  drumKit.slot('W').layer(snare);
  drumKit.slot('W').connect(bap.reverb({
    filter: 'notch',
    cutoff: 1000,
    wet: 3,
    dry: 80
  }));
  drumKit.slot('E').layer(bap.sample({
    src: 'sounds/hihat.wav',
    volume: 50
  }));
  drumKit.slot('E').connect(bap.reverb({
    wet: 5,
    dry: 80,
    time: 0.5,
    cutoff: 5000
  }));

  var plongKit = bap.kit({
    volume: 90
  });
  plongKit.connect(bap.delay({
    filter: 'highshelf',
    time: 0.5,
    sync: true,
    feedback: 30,
    cutoff: 5000,
    wet: 10
  }));
  plongKit.slot('Q').layer(bap.sample({
    src: 'sounds/plong1.wav',
    duration: 95
  }));
  plongKit.slot('W').layer(bap.sample({
    src: 'sounds/plong2.wav',
    duration: 60
  }));

  var stringKit = bap.kit({
    volume: 90
  });
  stringKit.connect(bap.reverb({
    wet: 5,
    dry: 90,
    cutoff: 2500
  }));
  stringKit.slot('Q').layer(bap.sample({
    src: 'sounds/string1.wav',
    duration: 90
  }));
  stringKit.slot('W').layer(bap.sample({
    src: 'sounds/string2.wav',
    duration: 70
  }));
{'fraction_non_alphanumeric': 0.19642857142857142, 'fraction_numerical': 0.04008746355685131, 'mean_word_length': 2.755129958960328, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3055577', 'n_tokens_mistral': 1205, 'n_tokens_neox': 1137, 'n_words': 206}