@onjmin/dtm 0.1.65 → 0.1.66

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.
package/dist/index.js CHANGED
@@ -3451,7 +3451,7 @@ var createSynth = (ctx, destination = ctx.destination, tone = {}) => {
3451
3451
  const g2 = ctx.createGain();
3452
3452
  osc.frequency.setValueAtTime(150, t0);
3453
3453
  osc.frequency.exponentialRampToValueAtTime(50, t0 + 0.12);
3454
- g2.gain.setValueAtTime(vol * 0.9, t0);
3454
+ g2.gain.setValueAtTime(vol * 0.135, t0);
3455
3455
  g2.gain.exponentialRampToValueAtTime(1e-3, t0 + 0.18);
3456
3456
  osc.connect(g2).connect(destination);
3457
3457
  osc.start(t0);
@@ -3470,7 +3470,7 @@ var createSynth = (ctx, destination = ctx.destination, tone = {}) => {
3470
3470
  filter.type = isSnareLike ? "bandpass" : "highpass";
3471
3471
  filter.frequency.value = isSnareLike ? 2e3 : 8e3;
3472
3472
  const g = ctx.createGain();
3473
- g.gain.setValueAtTime(vol * (isSnareLike ? 0.7 : 0.4), t0);
3473
+ g.gain.setValueAtTime(vol * (isSnareLike ? 0.105 : 0.06), t0);
3474
3474
  g.gain.exponentialRampToValueAtTime(1e-3, t0 + dur);
3475
3475
  src.connect(filter).connect(g).connect(destination);
3476
3476
  src.start(t0);
package/dist/index.mjs CHANGED
@@ -3329,7 +3329,7 @@ var createSynth = (ctx, destination = ctx.destination, tone = {}) => {
3329
3329
  const g2 = ctx.createGain();
3330
3330
  osc.frequency.setValueAtTime(150, t0);
3331
3331
  osc.frequency.exponentialRampToValueAtTime(50, t0 + 0.12);
3332
- g2.gain.setValueAtTime(vol * 0.9, t0);
3332
+ g2.gain.setValueAtTime(vol * 0.135, t0);
3333
3333
  g2.gain.exponentialRampToValueAtTime(1e-3, t0 + 0.18);
3334
3334
  osc.connect(g2).connect(destination);
3335
3335
  osc.start(t0);
@@ -3348,7 +3348,7 @@ var createSynth = (ctx, destination = ctx.destination, tone = {}) => {
3348
3348
  filter.type = isSnareLike ? "bandpass" : "highpass";
3349
3349
  filter.frequency.value = isSnareLike ? 2e3 : 8e3;
3350
3350
  const g = ctx.createGain();
3351
- g.gain.setValueAtTime(vol * (isSnareLike ? 0.7 : 0.4), t0);
3351
+ g.gain.setValueAtTime(vol * (isSnareLike ? 0.105 : 0.06), t0);
3352
3352
  g.gain.exponentialRampToValueAtTime(1e-3, t0 + dur);
3353
3353
  src.connect(filter).connect(g).connect(destination);
3354
3354
  src.start(t0);
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "author": "onjmin",
3
3
  "license": "MIT",
4
4
  "name": "@onjmin/dtm",
5
- "version": "0.1.65",
5
+ "version": "0.1.66",
6
6
  "description": "MMLを中間言語に用いた、モバイルファーストなDAW / ピアノロール打ち込みコンポーネント",
7
7
  "homepage": "https://onjmin.github.io/dtm",
8
8
  "repository": {