Skip to content

Commit

Permalink
feat: CHANGELOG
Browse files Browse the repository at this point in the history
  • Loading branch information
danigb committed Dec 17, 2024
1 parent 2277a86 commit 2b26403
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 1 deletion.
17 changes: 17 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,22 @@
# smplr

## 0.16.x

#### DrumMachine sample groups

DrumMachines group different samples with same prefix under the same group. For example `tom-1.ogg` and `tom-2.ogg` forms the `tom` group:

```js
const drums = new DrumMachine(context, { instrument: "TR-808" });
drum.sampleNames; // => ['kick-1', 'kick-2', 'snare-1', 'snare-2', ...]
drum.sampleGroups; // => ['kick', 'snare']
drum.getGroupVariations('kick') => // => ['kick-1', 'kick-2']
```

⚠️ This is a breaking change: before `sampleNames` returns `sampleGroups`. Now `sampleNames` return all sample names.

Also, before 0.16.0 `getGroupVariations` was `getVariations`. Now `getVariations` is deprecated.

## 0.15.x

#### Disable scheduler with `disableScheduler` option
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "smplr",
"version": "0.15.1",
"version": "0.16.0",
"homepage": "https://github.com/danigb/smplr#readme",
"description": "A Sampled collection of instruments",
"main": "dist/index.js",
Expand Down

0 comments on commit 2b26403

Please sign in to comment.