@audio/synth-rhythm 1.1.3 → 1.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/audio.d.ts +2 -2
  2. package/audio.js +1 -1
  3. package/package.json +4 -1
package/audio.d.ts CHANGED
@@ -10,7 +10,7 @@ type Process = (inputs: Float32Array[][], outputs: Float32Array[][], params: Liv
10
10
 
11
11
  /** Chainable-host options for 'rhythm' */
12
12
  export interface RhythmOptions {
13
- /** 20..300 (default 120) */
13
+ /** 20..300 bpm (default 120) */
14
14
  "bpm"?: Auto
15
15
  /** 1..12 (default 4) */
16
16
  "beats"?: Auto
@@ -29,7 +29,7 @@ export declare const rhythm: {
29
29
  channels: {"inputs":[],"outputs":"any"}
30
30
  streaming: false
31
31
  params: {
32
- /** 20..300 (default 120) */
32
+ /** 20..300 bpm (default 120) */
33
33
  "bpm": { type: "number", default: 120 }
34
34
  /** 1..12 (default 4) */
35
35
  "beats": { type: "number", default: 4 }
package/audio.js CHANGED
@@ -23,7 +23,7 @@ export const rhythm = (ctx) => {
23
23
  rhythm.channels = { inputs: [], outputs: 'any' }
24
24
  rhythm.streaming = false
25
25
  rhythm.params = {
26
- bpm: { type: 'number', min: 20, max: 300, default: 120 },
26
+ bpm: { type: 'number', min: 20, max: 300, default: 120, unit: 'bpm' },
27
27
  beats: { type: 'number', min: 1, max: 12, default: 4, step: 1 },
28
28
  freq: { type: 'number', min: 200, max: 4000, default: 1000, unit: 'Hz' },
29
29
  accentFreq: { type: 'number', min: 200, max: 6000, default: 1500, unit: 'Hz' },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@audio/synth-rhythm",
3
- "version": "1.1.3",
3
+ "version": "1.2.0",
4
4
  "description": "Rhythm / click track — BPM grid with accented downbeats",
5
5
  "type": "module",
6
6
  "sideEffects": false,
@@ -13,6 +13,9 @@
13
13
  },
14
14
  "./package.json": "./package.json"
15
15
  },
16
+ "scripts": {
17
+ "prepublishOnly": "node ../../../compile/tools/tested.js"
18
+ },
16
19
  "files": [
17
20
  "rhythm.js",
18
21
  "rhythm.d.ts",