pixi-effects 0.27.1 → 0.27.2

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 (32) hide show
  1. package/CHANGELOG.md +7 -0
  2. package/README.md +6 -6
  3. package/ai/chat-template.html +3 -3
  4. package/dist/Composition-DRCTWIYH.cjs +16 -0
  5. package/dist/{Composition-YW2G6EXL.cjs.map → Composition-DRCTWIYH.cjs.map} +1 -1
  6. package/dist/Composition-TZHVYIGH.js +7 -0
  7. package/dist/{Composition-BJVY5HP7.js.map → Composition-TZHVYIGH.js.map} +1 -1
  8. package/dist/{chunk-X42BGR6P.js → chunk-BQNNZEAX.js} +4 -4
  9. package/dist/{chunk-X42BGR6P.js.map → chunk-BQNNZEAX.js.map} +1 -1
  10. package/dist/{chunk-VH5R473P.cjs → chunk-C7HJJ7MZ.cjs} +61 -61
  11. package/dist/{chunk-VH5R473P.cjs.map → chunk-C7HJJ7MZ.cjs.map} +1 -1
  12. package/dist/{chunk-AR3HVHKF.js → chunk-K3F2YKL4.js} +3 -3
  13. package/dist/{chunk-AR3HVHKF.js.map → chunk-K3F2YKL4.js.map} +1 -1
  14. package/dist/{chunk-ETKTRQL2.cjs → chunk-YOV6MEXH.cjs} +4 -4
  15. package/dist/{chunk-ETKTRQL2.cjs.map → chunk-YOV6MEXH.cjs.map} +1 -1
  16. package/dist/index.cjs +32 -32
  17. package/dist/index.js +5 -5
  18. package/dist/loader.css +1 -1
  19. package/dist/{music-YPUZTWTN.cjs → music-6MTHQEXS.cjs} +269 -99
  20. package/dist/music-6MTHQEXS.cjs.map +1 -0
  21. package/dist/{music-JVRNXHQ5.js → music-72YJAMXH.js} +269 -99
  22. package/dist/music-72YJAMXH.js.map +1 -0
  23. package/dist/three.cjs +5 -5
  24. package/dist/three.js +1 -1
  25. package/llms-full.txt +1 -1
  26. package/package.json +1 -1
  27. package/skills/pixi-effects/SKILL.md +1 -1
  28. package/skills/pixi-effects/template.html +6 -6
  29. package/dist/Composition-BJVY5HP7.js +0 -7
  30. package/dist/Composition-YW2G6EXL.cjs +0 -16
  31. package/dist/music-JVRNXHQ5.js.map +0 -1
  32. package/dist/music-YPUZTWTN.cjs.map +0 -1
package/CHANGELOG.md CHANGED
@@ -1,5 +1,12 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.27.2
4
+
5
+ **Changed**
6
+
7
+ - The footer link to the author's X page now reads "Author on X" (it said "Updates on X"), and the README says only who made it.
8
+ - **The music is made more than twice as fast, with the same samples (to the last bit).** The reel's 80 seconds: 4.45 s to 1.9 s in Node, the sound stage of its load 4.9 s to 2.5 s in Chrome (the whole load 7 s to 4.4 s). The electric piano no longer computes the 1.2 s of silence after each note; what depends only on the pitch and the sample index (the exponentials and the modulator sines of the electric piano and the bell) is computed once per pitch for the render and shared by its notes; a track is filtered and mixed only where it sounds (and until its filter has run out); the volume curve is followed instead of searched; the five saws of the pad, the drums' writes and the reverb are plain loops; the long loops of the mix run outside the generator that slices the render. Four checksums of full renders (two with `loop`) taken before the changes are pinned in tests, and the reel's own checksum was checked.
9
+
3
10
  ## 0.27.1
4
11
 
5
12
  **Fixed**
package/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # pixi-effects
2
2
 
3
- > **Status**: experimental — current release `0.27.1`. The API may still change between minor versions; see the [CHANGELOG](./CHANGELOG.md) for what each release changed.
3
+ > **Status**: experimental — current release `0.27.2`. The API may still change between minor versions; see the [CHANGELOG](./CHANGELOG.md) for what each release changed.
4
4
 
5
5
  **[Guide →](https://yjmtmtk.github.io/pixi-effects/guide/)** · **[Gallery →](https://yjmtmtk.github.io/pixi-effects/examples/gallery/)** · 50 portfolio pieces written as plain data by AI models · **[Examples →](https://yjmtmtk.github.io/pixi-effects/examples/)** · 15 numbered examples, a music lab + an in-browser playground.
6
6
 
@@ -49,8 +49,8 @@ Drop the imports into an [importmap](https://developer.mozilla.org/docs/Web/HTML
49
49
  "imports": {
50
50
  "pixi.js": "https://esm.sh/pixi.js@8.22.0?bundle-deps",
51
51
  "mediabunny": "https://esm.sh/mediabunny",
52
- "pixi-effects": "https://cdn.jsdelivr.net/npm/pixi-effects@0.27.1/dist/index.js",
53
- "pixi-effects/controller": "https://cdn.jsdelivr.net/npm/pixi-effects@0.27.1/dist/Controller.js"
52
+ "pixi-effects": "https://cdn.jsdelivr.net/npm/pixi-effects@0.27.2/dist/index.js",
53
+ "pixi-effects/controller": "https://cdn.jsdelivr.net/npm/pixi-effects@0.27.2/dist/Controller.js"
54
54
  }
55
55
  }
56
56
  </script>
@@ -61,7 +61,7 @@ Drop the imports into an [importmap](https://developer.mozilla.org/docs/Web/HTML
61
61
  </script>
62
62
  ```
63
63
 
64
- Load the `dist/` files **as they are** (jsDelivr's `/npm/…/dist/…`, or unpkg's `https://unpkg.com/pixi-effects@0.27.1/dist/index.js`) rather than a CDN-rebundled build such as `esm.sh/pixi-effects` or jsDelivr's `+esm`: the entries (`pixi-effects`, `…/controller`, `…/three`) share internal chunks, which only works when each file is served untouched.
64
+ Load the `dist/` files **as they are** (jsDelivr's `/npm/…/dist/…`, or unpkg's `https://unpkg.com/pixi-effects@0.27.2/dist/index.js`) rather than a CDN-rebundled build such as `esm.sh/pixi-effects` or jsDelivr's `+esm`: the entries (`pixi-effects`, `…/controller`, `…/three`) share internal chunks, which only works when each file is served untouched.
65
65
 
66
66
  > **Using three.js?** Add two more entries (`three` and `pixi-effects/three`) to this importmap — see [Adding three.js](#adding-threejs-optional) below.
67
67
  >
@@ -77,7 +77,7 @@ Add two more entries to the importmap above: three.js itself, and the `pixi-effe
77
77
  "imports": {
78
78
  "...": "(everything from the importmap above)",
79
79
  "three": "https://esm.sh/three@0.178.0",
80
- "pixi-effects/three": "https://cdn.jsdelivr.net/npm/pixi-effects@0.27.1/dist/three.js"
80
+ "pixi-effects/three": "https://cdn.jsdelivr.net/npm/pixi-effects@0.27.2/dist/three.js"
81
81
  }
82
82
  }
83
83
  </script>
@@ -221,7 +221,7 @@ Some codecs (notably `aac` audio in older Firefox) may need the [mediabunny poly
221
221
 
222
222
  ## Author
223
223
 
224
- Made by [@t_yjm](https://x.com/t_yjm): release notes and small experiments are posted there. Questions, bugs and ideas are welcome as [GitHub issues](https://github.com/yjmtmtk/pixi-effects/issues).
224
+ Made by [@t_yjm](https://x.com/t_yjm). Questions, bugs and ideas are welcome as [GitHub issues](https://github.com/yjmtmtk/pixi-effects/issues).
225
225
 
226
226
  ## License
227
227
 
@@ -59,9 +59,9 @@
59
59
  "imports": {
60
60
  "pixi.js": "https://cdn.jsdelivr.net/npm/pixi.js@8.22.0/dist/pixi.min.mjs",
61
61
  "mediabunny": "https://cdn.jsdelivr.net/npm/mediabunny@1.61.3/+esm",
62
- "pixi-effects": "https://cdn.jsdelivr.net/npm/pixi-effects@0.27.1/dist/index.js",
63
- "pixi-effects/controller": "https://cdn.jsdelivr.net/npm/pixi-effects@0.27.1/dist/Controller.js",
64
- "pixi-effects/presenter": "https://cdn.jsdelivr.net/npm/pixi-effects@0.27.1/dist/Presenter.js"
62
+ "pixi-effects": "https://cdn.jsdelivr.net/npm/pixi-effects@0.27.2/dist/index.js",
63
+ "pixi-effects/controller": "https://cdn.jsdelivr.net/npm/pixi-effects@0.27.2/dist/Controller.js",
64
+ "pixi-effects/presenter": "https://cdn.jsdelivr.net/npm/pixi-effects@0.27.2/dist/Presenter.js"
65
65
  }
66
66
  }
67
67
  </script>
@@ -0,0 +1,16 @@
1
+ 'use strict';
2
+
3
+ var chunkC7HJJ7MZ_cjs = require('./chunk-C7HJJ7MZ.cjs');
4
+ require('./chunk-YOV6MEXH.cjs');
5
+ require('./chunk-P4GY3Z4G.cjs');
6
+ require('./chunk-ZMAD3KJU.cjs');
7
+ require('./chunk-TWZNOUM7.cjs');
8
+
9
+
10
+
11
+ Object.defineProperty(exports, "CompositionSequence", {
12
+ enumerable: true,
13
+ get: function () { return chunkC7HJJ7MZ_cjs.CompositionSequence; }
14
+ });
15
+ //# sourceMappingURL=Composition-DRCTWIYH.cjs.map
16
+ //# sourceMappingURL=Composition-DRCTWIYH.cjs.map
@@ -1 +1 @@
1
- {"version":3,"sources":[],"names":[],"mappings":"","file":"Composition-YW2G6EXL.cjs"}
1
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"Composition-DRCTWIYH.cjs"}
@@ -0,0 +1,7 @@
1
+ export { CompositionSequence } from './chunk-K3F2YKL4.js';
2
+ import './chunk-BQNNZEAX.js';
3
+ import './chunk-TYWFKCPY.js';
4
+ import './chunk-45QKLD6M.js';
5
+ import './chunk-BXOCEZ4U.js';
6
+ //# sourceMappingURL=Composition-TZHVYIGH.js.map
7
+ //# sourceMappingURL=Composition-TZHVYIGH.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":[],"names":[],"mappings":"","file":"Composition-BJVY5HP7.js"}
1
+ {"version":3,"sources":[],"names":[],"mappings":"","file":"Composition-TZHVYIGH.js"}
@@ -3684,7 +3684,7 @@ var AudioSequence = class extends Sequence {
3684
3684
  const raw = spec;
3685
3685
  if (raw.asset !== void 0) console.warn(`pixi-effects: ${who}: has both asset and music \u2014 the music plays; remove one`);
3686
3686
  if (raw.sfx !== void 0) console.warn(`pixi-effects: ${who}: has both sfx and music \u2014 the music plays; remove one`);
3687
- const { resolveMusic, renderMusic, renderMusicAsync, musicLength, musicKey } = await import('./music-JVRNXHQ5.js');
3687
+ const { resolveMusic, renderMusic, renderMusicAsync, musicLength, musicKey } = await import('./music-72YJAMXH.js');
3688
3688
  const music = resolveMusic(spec.music, who);
3689
3689
  if (!music) return;
3690
3690
  const natural = musicLength(music);
@@ -5384,7 +5384,7 @@ function resolveDim(v, scope) {
5384
5384
  var _CompositionSequence = null;
5385
5385
  async function getCompositionSequence() {
5386
5386
  if (!_CompositionSequence) {
5387
- _CompositionSequence = (await import('./Composition-BJVY5HP7.js')).CompositionSequence;
5387
+ _CompositionSequence = (await import('./Composition-TZHVYIGH.js')).CompositionSequence;
5388
5388
  }
5389
5389
  return _CompositionSequence;
5390
5390
  }
@@ -5427,5 +5427,5 @@ async function buildSequenceTree(specs, parent, root) {
5427
5427
  }
5428
5428
 
5429
5429
  export { CameraSequence, DEFAULT_FOV, DEG3 as DEG, FALLOFFS, LIGHT_KINDS, LIGHT_PROPS, LightSequence, MANY_BLURRED, MAX_BLUR, MAX_CASTERS, MAX_LIGHTS, MIN_BLUR, NEAR, NullSequence, SHADOW_TAPS, Sequence, bindClock, blurRadius, buildScope, buildSequenceTree, cameraBasis, checkEase, clockTable, contentLength, createTimeline, ensureFilterLibrary, evaluateExpr, flattenSvgPath, focusProblems, homeCamera, homeDistance, layerInitialZ, layerToWorld, lengthen, lightLevel, noise, packLights, parseEase, projectLayer, projectPoint, rand, random, registerSequenceType, remapOf, resolveAt, timeRemapOf };
5430
- //# sourceMappingURL=chunk-X42BGR6P.js.map
5431
- //# sourceMappingURL=chunk-X42BGR6P.js.map
5430
+ //# sourceMappingURL=chunk-BQNNZEAX.js.map
5431
+ //# sourceMappingURL=chunk-BQNNZEAX.js.map