pixi-effects 0.27.2 → 0.28.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.
- package/CHANGELOG.md +12 -0
- package/README.md +6 -6
- package/ai/chat-template.html +3 -3
- package/ai/tools/check.mjs +30 -0
- package/dist/{Base-CKGl6jCo.d.ts → Base-C6f0fE8j.d.ts} +1 -1
- package/dist/{Base-DjhdL8B1.d.cts → Base-DI1FCGcH.d.cts} +1 -1
- package/dist/Composition-HFEVIYHN.js +7 -0
- package/dist/{Composition-TZHVYIGH.js.map → Composition-HFEVIYHN.js.map} +1 -1
- package/dist/Composition-NI74UJT3.cjs +16 -0
- package/dist/{Composition-DRCTWIYH.cjs.map → Composition-NI74UJT3.cjs.map} +1 -1
- package/dist/Controller.d.cts +2 -2
- package/dist/Controller.d.ts +2 -2
- package/dist/{Movie-CbYwTs6U.d.cts → Movie-CHcM8HNB.d.ts} +3 -1
- package/dist/{Movie-ILKq2fw_.d.ts → Movie-Cx5ozUGb.d.cts} +3 -1
- package/dist/Presenter.d.cts +2 -2
- package/dist/Presenter.d.ts +2 -2
- package/dist/chunk-4LEX3G3M.cjs +259 -0
- package/dist/chunk-4LEX3G3M.cjs.map +1 -0
- package/dist/{chunk-BQNNZEAX.js → chunk-AK54FIWM.js} +7 -4
- package/dist/chunk-AK54FIWM.js.map +1 -0
- package/dist/{chunk-YOV6MEXH.cjs → chunk-MZCDBRTY.cjs} +7 -4
- package/dist/chunk-MZCDBRTY.cjs.map +1 -0
- package/dist/{chunk-C7HJJ7MZ.cjs → chunk-SBOVUZZY.cjs} +61 -61
- package/dist/{chunk-C7HJJ7MZ.cjs.map → chunk-SBOVUZZY.cjs.map} +1 -1
- package/dist/{chunk-K3F2YKL4.js → chunk-WEJAQAFX.js} +3 -3
- package/dist/{chunk-K3F2YKL4.js.map → chunk-WEJAQAFX.js.map} +1 -1
- package/dist/chunk-ZHUUIF6A.js +250 -0
- package/dist/chunk-ZHUUIF6A.js.map +1 -0
- package/dist/events-EE3SM5LM.cjs +16 -0
- package/dist/events-EE3SM5LM.cjs.map +1 -0
- package/dist/events-KXBWR4IV.js +3 -0
- package/dist/events-KXBWR4IV.js.map +1 -0
- package/dist/index.cjs +49 -33
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +19 -5
- package/dist/index.d.ts +19 -5
- package/dist/index.js +18 -7
- package/dist/index.js.map +1 -1
- package/dist/loader.css +1 -1
- package/dist/{music-6MTHQEXS.cjs → music-6WFTPVHU.cjs} +43 -202
- package/dist/music-6WFTPVHU.cjs.map +1 -0
- package/dist/{music-72YJAMXH.js → music-JKOM5YK6.js} +8 -192
- package/dist/music-JKOM5YK6.js.map +1 -0
- package/dist/three.cjs +5 -5
- package/dist/three.d.cts +2 -2
- package/dist/three.d.ts +2 -2
- package/dist/three.js +1 -1
- package/dist/{types-BNVsBBZf.d.ts → types-DpK1vwcl.d.cts} +79 -1
- package/dist/{types-BNVsBBZf.d.cts → types-DpK1vwcl.d.ts} +79 -1
- package/docs/api.md +28 -0
- package/docs/dsl.md +8 -4
- package/llms-full.txt +39 -6
- package/package.json +1 -1
- package/skills/pixi-effects/SKILL.md +1 -1
- package/skills/pixi-effects/reference/cheatsheet.md +1 -1
- package/skills/pixi-effects/reference/pitfalls.md +1 -0
- package/skills/pixi-effects/template.html +6 -6
- package/dist/Composition-DRCTWIYH.cjs +0 -16
- package/dist/Composition-TZHVYIGH.js +0 -7
- package/dist/chunk-BQNNZEAX.js.map +0 -1
- package/dist/chunk-YOV6MEXH.cjs.map +0 -1
- package/dist/music-6MTHQEXS.cjs.map +0 -1
- package/dist/music-72YJAMXH.js.map +0 -1
package/dist/index.d.cts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export { A as AudioInspectOptions, a as AudioReport, b as AudioSourceReport, C as ContactSheetOptions, F as FontReport, c as FrameEvent, I as InspectOptions, d as InspectReport, e as IssueGroup, L as LayerInfo, f as LoadProgressState, g as LoadStage, h as LoaderOption, M as MotionBlurOptions, i as MotionBlurSpec, j as Movie, k as MovieErrorEvent, l as MovieOptions, O as OnionSkinOptions, P as ProgressEvent, R as RenderOptions, m as ReviewOptions, n as ReviewReport, S as SnapshotOptions, o as SoundMeasure, p as StopEvent, q as StopImage, r as StopImagesOptions, T as TimelineData, s as TimelineHtmlOptions, t as TimelineRow, u as TimelineSvgOptions, v as TimelineTransition, V as VolumeEvent, w as dismissLoader, x as failLoader, y as resolveLoader } from './Movie-
|
|
2
|
-
import { S as SequenceSpec, C as CompositionShape, I as ImageSequenceSpec, a as CameraSequenceSpec, K as Keyframe, T as TextSequenceSpec, M as MusicOptions, P as Props,
|
|
3
|
-
export { A as ArcShapeSpec,
|
|
4
|
-
import { S as Sequence } from './Base-
|
|
1
|
+
export { A as AudioInspectOptions, a as AudioReport, b as AudioSourceReport, C as ContactSheetOptions, F as FontReport, c as FrameEvent, I as InspectOptions, d as InspectReport, e as IssueGroup, L as LayerInfo, f as LoadProgressState, g as LoadStage, h as LoaderOption, M as MotionBlurOptions, i as MotionBlurSpec, j as Movie, k as MovieErrorEvent, l as MovieOptions, O as OnionSkinOptions, P as ProgressEvent, R as RenderOptions, m as ReviewOptions, n as ReviewReport, S as SnapshotOptions, o as SoundMeasure, p as StopEvent, q as StopImage, r as StopImagesOptions, T as TimelineData, s as TimelineHtmlOptions, t as TimelineRow, u as TimelineSvgOptions, v as TimelineTransition, V as VolumeEvent, w as dismissLoader, x as failLoader, y as resolveLoader } from './Movie-Cx5ozUGb.cjs';
|
|
2
|
+
import { S as SequenceSpec, C as CompositionShape, I as ImageSequenceSpec, a as CameraSequenceSpec, K as Keyframe, T as TextSequenceSpec, M as MusicOptions, b as MusicEvents, P as Props, c as TransitionSpec, d as CompositionSpec, e as SequenceCommon } from './types-DpK1vwcl.cjs';
|
|
3
|
+
export { A as ArcShapeSpec, f as AssetSpec, g as AudioAssetSpec, h as AudioMusicSpec, i as AudioSequenceSpec, j as AudioSfxSpec, B as BlendModeName, k as ChromaKeyFilterSpec, l as CircleShapeSpec, m as CompositionSequenceSpec, n as CrossfadeTransition, o as CustomFilterSpec, D as DipTransition, p as DissolveTransition, E as EllipseShapeSpec, q as Expr, F as FilterSpec, G as GradientSpec, r as IrisTransition, L as LightSequenceSpec, s as LineShapeSpec, t as LumaTransition, u as MaskRefSpec, v as MatteRefSpec, w as MusicDrum, x as MusicDrumEvents, y as MusicDrumHit, z as MusicDrums, H as MusicInstrument, J as MusicLevel, N as MusicNote, O as MusicSummary, Q as MusicTrack, R as MusicTrackEvents, U as NullSequenceSpec, V as PathShapeSpec, W as PolygonShapeSpec, X as PropValue, Y as RectShapeSpec, Z as SfxKnobs, _ as SfxOptions, $ as SfxPreset, a0 as SfxVoice, a1 as ShaderSequenceSpec, a2 as ShapeSequenceSpec, a3 as SlideTransition, a4 as Stop, a5 as StopSpec, a6 as TransitionCommon, a7 as VideoSequenceSpec, a8 as WipeTransition, a9 as ZoomTransition, aa as normalizeStops, ab as pictureStops } from './types-DpK1vwcl.cjs';
|
|
4
|
+
import { S as Sequence } from './Base-DI1FCGcH.cjs';
|
|
5
5
|
import 'pixi.js';
|
|
6
6
|
|
|
7
7
|
/** A text style as written in a `text` layer's `style` (numbers, not expressions, for the fields that size the text). */
|
|
@@ -587,6 +587,20 @@ declare function musicBuffer(music: MusicOptions, options?: {
|
|
|
587
587
|
loop?: boolean;
|
|
588
588
|
}): Promise<AudioBuffer>;
|
|
589
589
|
|
|
590
|
+
/**
|
|
591
|
+
* What a `music` score plays, as data: every note and chord with its beat, time, bar, pitches and name, and every drum hit. Use it to make the
|
|
592
|
+
* picture follow the score (light the keys that sound, show the chord name, flash on the snare) without analysing the audio. Do it before
|
|
593
|
+
* `movie.init`, with the same `music` object the layer uses:
|
|
594
|
+
*
|
|
595
|
+
* ```js
|
|
596
|
+
* const ev = await musicEvents(music);
|
|
597
|
+
* ev.tracks[0].notes; // [{ beat: 0, time: 0, duration: 4, bar: 1, name: 'Am7', midi: [57, 60, 64, 67], ... }, ...]
|
|
598
|
+
* ev.drums[0].hits; // [{ beat: 0, time: 0, ... }] (kind: 'kick')
|
|
599
|
+
* ```
|
|
600
|
+
* Swing and humanize are not applied: the times are the written ones. A score that cannot play throws, with the reason.
|
|
601
|
+
*/
|
|
602
|
+
declare function musicEvents(music: MusicOptions): Promise<MusicEvents>;
|
|
603
|
+
|
|
590
604
|
interface DeckPage {
|
|
591
605
|
/** The page's name: shown by the Presenter, and in the stops list. */
|
|
592
606
|
name?: string;
|
|
@@ -718,4 +732,4 @@ interface WithFadeOptions {
|
|
|
718
732
|
*/
|
|
719
733
|
declare function withFade<T extends SequenceCommon>(spec: T, opts: WithFadeOptions): T;
|
|
720
734
|
|
|
721
|
-
export { type AnimateTextOptions, type AnimateTextTween, type AudioEnvelope, type AudioEnvelopeSource, type CameraPathOptions, CameraSequenceSpec, CompositionSpec, type DeckOptions, type DeckPage, type DeckResult, type DeckTransition, type EnvelopeOptions, type FollowPathOptions, ImageSequenceSpec, type KenBurnsOptions, Keyframe, type MeasureStyle, MusicOptions, type OrbitOptions, type ParticlesOptions, Props, type ReactOptions, type ReactProp, SequenceCommon, type SequenceCtor, SequenceSpec, type SplitOptions, type StaggerOptions, type TextPiece, type TextPreset, TextSequenceSpec, type TextSize, TransitionSpec, type WiggleOptions, type WiggleProp, type WithFadeOptions, animateText, audioEnvelope, bpmEnvelope, cameraPath, computeEnvelope, deck, parseEase as ease, followPath, kenBurns, measureText, musicBuffer, musicEnvelope, noise, orbit, particles, rand, random, react, registerSequenceType, splitText, stagger, wiggle, withFade };
|
|
735
|
+
export { type AnimateTextOptions, type AnimateTextTween, type AudioEnvelope, type AudioEnvelopeSource, type CameraPathOptions, CameraSequenceSpec, CompositionShape, CompositionSpec, type DeckOptions, type DeckPage, type DeckResult, type DeckTransition, type EnvelopeOptions, type FollowPathOptions, ImageSequenceSpec, type KenBurnsOptions, Keyframe, type MeasureStyle, MusicEvents, MusicOptions, type OrbitOptions, type ParticlesOptions, Props, type ReactOptions, type ReactProp, Sequence, SequenceCommon, type SequenceCtor, SequenceSpec, type SplitOptions, type StaggerOptions, type TextPiece, type TextPreset, TextSequenceSpec, type TextSize, TransitionSpec, type WiggleOptions, type WiggleProp, type WithFadeOptions, animateText, audioEnvelope, bpmEnvelope, cameraPath, computeEnvelope, deck, parseEase as ease, followPath, kenBurns, measureText, musicBuffer, musicEnvelope, musicEvents, noise, orbit, particles, rand, random, react, registerSequenceType, splitText, stagger, wiggle, withFade };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export { A as AudioInspectOptions, a as AudioReport, b as AudioSourceReport, C as ContactSheetOptions, F as FontReport, c as FrameEvent, I as InspectOptions, d as InspectReport, e as IssueGroup, L as LayerInfo, f as LoadProgressState, g as LoadStage, h as LoaderOption, M as MotionBlurOptions, i as MotionBlurSpec, j as Movie, k as MovieErrorEvent, l as MovieOptions, O as OnionSkinOptions, P as ProgressEvent, R as RenderOptions, m as ReviewOptions, n as ReviewReport, S as SnapshotOptions, o as SoundMeasure, p as StopEvent, q as StopImage, r as StopImagesOptions, T as TimelineData, s as TimelineHtmlOptions, t as TimelineRow, u as TimelineSvgOptions, v as TimelineTransition, V as VolumeEvent, w as dismissLoader, x as failLoader, y as resolveLoader } from './Movie-
|
|
2
|
-
import { S as SequenceSpec, C as CompositionShape, I as ImageSequenceSpec, a as CameraSequenceSpec, K as Keyframe, T as TextSequenceSpec, M as MusicOptions, P as Props,
|
|
3
|
-
export { A as ArcShapeSpec,
|
|
4
|
-
import { S as Sequence } from './Base-
|
|
1
|
+
export { A as AudioInspectOptions, a as AudioReport, b as AudioSourceReport, C as ContactSheetOptions, F as FontReport, c as FrameEvent, I as InspectOptions, d as InspectReport, e as IssueGroup, L as LayerInfo, f as LoadProgressState, g as LoadStage, h as LoaderOption, M as MotionBlurOptions, i as MotionBlurSpec, j as Movie, k as MovieErrorEvent, l as MovieOptions, O as OnionSkinOptions, P as ProgressEvent, R as RenderOptions, m as ReviewOptions, n as ReviewReport, S as SnapshotOptions, o as SoundMeasure, p as StopEvent, q as StopImage, r as StopImagesOptions, T as TimelineData, s as TimelineHtmlOptions, t as TimelineRow, u as TimelineSvgOptions, v as TimelineTransition, V as VolumeEvent, w as dismissLoader, x as failLoader, y as resolveLoader } from './Movie-CHcM8HNB.js';
|
|
2
|
+
import { S as SequenceSpec, C as CompositionShape, I as ImageSequenceSpec, a as CameraSequenceSpec, K as Keyframe, T as TextSequenceSpec, M as MusicOptions, b as MusicEvents, P as Props, c as TransitionSpec, d as CompositionSpec, e as SequenceCommon } from './types-DpK1vwcl.js';
|
|
3
|
+
export { A as ArcShapeSpec, f as AssetSpec, g as AudioAssetSpec, h as AudioMusicSpec, i as AudioSequenceSpec, j as AudioSfxSpec, B as BlendModeName, k as ChromaKeyFilterSpec, l as CircleShapeSpec, m as CompositionSequenceSpec, n as CrossfadeTransition, o as CustomFilterSpec, D as DipTransition, p as DissolveTransition, E as EllipseShapeSpec, q as Expr, F as FilterSpec, G as GradientSpec, r as IrisTransition, L as LightSequenceSpec, s as LineShapeSpec, t as LumaTransition, u as MaskRefSpec, v as MatteRefSpec, w as MusicDrum, x as MusicDrumEvents, y as MusicDrumHit, z as MusicDrums, H as MusicInstrument, J as MusicLevel, N as MusicNote, O as MusicSummary, Q as MusicTrack, R as MusicTrackEvents, U as NullSequenceSpec, V as PathShapeSpec, W as PolygonShapeSpec, X as PropValue, Y as RectShapeSpec, Z as SfxKnobs, _ as SfxOptions, $ as SfxPreset, a0 as SfxVoice, a1 as ShaderSequenceSpec, a2 as ShapeSequenceSpec, a3 as SlideTransition, a4 as Stop, a5 as StopSpec, a6 as TransitionCommon, a7 as VideoSequenceSpec, a8 as WipeTransition, a9 as ZoomTransition, aa as normalizeStops, ab as pictureStops } from './types-DpK1vwcl.js';
|
|
4
|
+
import { S as Sequence } from './Base-C6f0fE8j.js';
|
|
5
5
|
import 'pixi.js';
|
|
6
6
|
|
|
7
7
|
/** A text style as written in a `text` layer's `style` (numbers, not expressions, for the fields that size the text). */
|
|
@@ -587,6 +587,20 @@ declare function musicBuffer(music: MusicOptions, options?: {
|
|
|
587
587
|
loop?: boolean;
|
|
588
588
|
}): Promise<AudioBuffer>;
|
|
589
589
|
|
|
590
|
+
/**
|
|
591
|
+
* What a `music` score plays, as data: every note and chord with its beat, time, bar, pitches and name, and every drum hit. Use it to make the
|
|
592
|
+
* picture follow the score (light the keys that sound, show the chord name, flash on the snare) without analysing the audio. Do it before
|
|
593
|
+
* `movie.init`, with the same `music` object the layer uses:
|
|
594
|
+
*
|
|
595
|
+
* ```js
|
|
596
|
+
* const ev = await musicEvents(music);
|
|
597
|
+
* ev.tracks[0].notes; // [{ beat: 0, time: 0, duration: 4, bar: 1, name: 'Am7', midi: [57, 60, 64, 67], ... }, ...]
|
|
598
|
+
* ev.drums[0].hits; // [{ beat: 0, time: 0, ... }] (kind: 'kick')
|
|
599
|
+
* ```
|
|
600
|
+
* Swing and humanize are not applied: the times are the written ones. A score that cannot play throws, with the reason.
|
|
601
|
+
*/
|
|
602
|
+
declare function musicEvents(music: MusicOptions): Promise<MusicEvents>;
|
|
603
|
+
|
|
590
604
|
interface DeckPage {
|
|
591
605
|
/** The page's name: shown by the Presenter, and in the stops list. */
|
|
592
606
|
name?: string;
|
|
@@ -718,4 +732,4 @@ interface WithFadeOptions {
|
|
|
718
732
|
*/
|
|
719
733
|
declare function withFade<T extends SequenceCommon>(spec: T, opts: WithFadeOptions): T;
|
|
720
734
|
|
|
721
|
-
export { type AnimateTextOptions, type AnimateTextTween, type AudioEnvelope, type AudioEnvelopeSource, type CameraPathOptions, CameraSequenceSpec, CompositionSpec, type DeckOptions, type DeckPage, type DeckResult, type DeckTransition, type EnvelopeOptions, type FollowPathOptions, ImageSequenceSpec, type KenBurnsOptions, Keyframe, type MeasureStyle, MusicOptions, type OrbitOptions, type ParticlesOptions, Props, type ReactOptions, type ReactProp, SequenceCommon, type SequenceCtor, SequenceSpec, type SplitOptions, type StaggerOptions, type TextPiece, type TextPreset, TextSequenceSpec, type TextSize, TransitionSpec, type WiggleOptions, type WiggleProp, type WithFadeOptions, animateText, audioEnvelope, bpmEnvelope, cameraPath, computeEnvelope, deck, parseEase as ease, followPath, kenBurns, measureText, musicBuffer, musicEnvelope, noise, orbit, particles, rand, random, react, registerSequenceType, splitText, stagger, wiggle, withFade };
|
|
735
|
+
export { type AnimateTextOptions, type AnimateTextTween, type AudioEnvelope, type AudioEnvelopeSource, type CameraPathOptions, CameraSequenceSpec, CompositionShape, CompositionSpec, type DeckOptions, type DeckPage, type DeckResult, type DeckTransition, type EnvelopeOptions, type FollowPathOptions, ImageSequenceSpec, type KenBurnsOptions, Keyframe, type MeasureStyle, MusicEvents, MusicOptions, type OrbitOptions, type ParticlesOptions, Props, type ReactOptions, type ReactProp, Sequence, SequenceCommon, type SequenceCtor, SequenceSpec, type SplitOptions, type StaggerOptions, type TextPiece, type TextPreset, TextSequenceSpec, type TextSize, TransitionSpec, type WiggleOptions, type WiggleProp, type WithFadeOptions, animateText, audioEnvelope, bpmEnvelope, cameraPath, computeEnvelope, deck, parseEase as ease, followPath, kenBurns, measureText, musicBuffer, musicEnvelope, musicEvents, noise, orbit, particles, rand, random, react, registerSequenceType, splitText, stagger, wiggle, withFade };
|
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { CompositionSequence, maskSourceOf } from './chunk-
|
|
2
|
-
import { createTimeline, lengthen, ensureFilterLibrary, checkEase, parseEase, homeDistance, DEFAULT_FOV, random, noise, flattenSvgPath, rand, DEG, timeRemapOf, contentLength, resolveAt } from './chunk-
|
|
3
|
-
export { noise, rand, random, registerSequenceType } from './chunk-
|
|
1
|
+
import { CompositionSequence, maskSourceOf } from './chunk-WEJAQAFX.js';
|
|
2
|
+
import { createTimeline, lengthen, ensureFilterLibrary, checkEase, parseEase, homeDistance, DEFAULT_FOV, random, noise, flattenSvgPath, rand, DEG, timeRemapOf, contentLength, resolveAt } from './chunk-AK54FIWM.js';
|
|
3
|
+
export { Sequence, noise, rand, random, registerSequenceType } from './chunk-AK54FIWM.js';
|
|
4
4
|
import { usesAdvancedBlend, enableAdvancedBlend } from './chunk-TYWFKCPY.js';
|
|
5
5
|
import { collectPropKeys } from './chunk-45QKLD6M.js';
|
|
6
6
|
import { warnUnknownOptions, suggestName } from './chunk-BXOCEZ4U.js';
|
|
@@ -498,7 +498,7 @@ function analyzeAudio(mix, sources, stats, movieDuration, opts = {}) {
|
|
|
498
498
|
issues.push(`${layer} (${source}) is cut off by the end of the movie at ${movieDuration}s (it runs to ${s.end.toFixed(2)}s)`);
|
|
499
499
|
}
|
|
500
500
|
}
|
|
501
|
-
return { layer, source, start: s.start, end: s.end, peakDb, sound };
|
|
501
|
+
return { layer, source, start: s.start, end: s.end, peakDb, sound, ...s.music ? { music: s.music } : {} };
|
|
502
502
|
});
|
|
503
503
|
const whole = measureLoudness(chans, sr);
|
|
504
504
|
const silences = findSilences(chans, sr, { minLength: 1 });
|
|
@@ -4332,7 +4332,7 @@ async function audioEnvelope(source, options = {}) {
|
|
|
4332
4332
|
|
|
4333
4333
|
// src/audio/musicEnvelope.ts
|
|
4334
4334
|
async function musicEnvelope(music, options = {}) {
|
|
4335
|
-
const { resolveMusic, renderMusic, musicLength, musicBeatTimes, TempoMap } = await import('./music-
|
|
4335
|
+
const { resolveMusic, renderMusic, musicLength, musicBeatTimes, TempoMap } = await import('./music-JKOM5YK6.js');
|
|
4336
4336
|
const messages = [];
|
|
4337
4337
|
const m = resolveMusic(music, "musicEnvelope()", (msg) => messages.push(msg));
|
|
4338
4338
|
if (!m) throw new Error(`pixi-effects: musicEnvelope(): ${messages.join(" ") || "the music has nothing to play"}`);
|
|
@@ -4345,7 +4345,7 @@ async function musicEnvelope(music, options = {}) {
|
|
|
4345
4345
|
|
|
4346
4346
|
// src/audio/musicBuffer.ts
|
|
4347
4347
|
async function musicBuffer(music, options = {}) {
|
|
4348
|
-
const { resolveMusic, renderMusic, musicLength } = await import('./music-
|
|
4348
|
+
const { resolveMusic, renderMusic, musicLength } = await import('./music-JKOM5YK6.js');
|
|
4349
4349
|
const messages = [];
|
|
4350
4350
|
const m = resolveMusic(music, "musicBuffer()", (msg) => messages.push(msg));
|
|
4351
4351
|
if (!m) throw new Error(`pixi-effects: musicBuffer(): ${messages.join(" ") || "the music has nothing to play"}`);
|
|
@@ -4360,6 +4360,17 @@ async function musicBuffer(music, options = {}) {
|
|
|
4360
4360
|
return buffer;
|
|
4361
4361
|
}
|
|
4362
4362
|
|
|
4363
|
+
// src/audio/musicEvents.ts
|
|
4364
|
+
async function musicEvents(music) {
|
|
4365
|
+
const { resolveMusic } = await import('./music-JKOM5YK6.js');
|
|
4366
|
+
const { describeEvents } = await import('./events-KXBWR4IV.js');
|
|
4367
|
+
const messages = [];
|
|
4368
|
+
const m = resolveMusic(music, "musicEvents()", (msg) => messages.push(msg));
|
|
4369
|
+
if (!m) throw new Error(`pixi-effects: musicEvents(): ${messages.join(" ") || "the music has nothing to play"}`);
|
|
4370
|
+
for (const msg of messages) console.warn(msg);
|
|
4371
|
+
return describeEvents(m);
|
|
4372
|
+
}
|
|
4373
|
+
|
|
4363
4374
|
// src/presets/deck.ts
|
|
4364
4375
|
var PAGE_KEYS = ["name", "duration", "sequences", "stops", "notes", "advance", "initial", "keyframes", "filters", "filterArea", "blendMode", "mask", "maskInverted"];
|
|
4365
4376
|
var DECK_KEYS = ["pages", "transition", "width", "height", "frameRate", "background", "canvas", "assets", "poster", "motionBlur", "loader"];
|
|
@@ -4441,6 +4452,6 @@ function withFade(spec, opts) {
|
|
|
4441
4452
|
return spec;
|
|
4442
4453
|
}
|
|
4443
4454
|
|
|
4444
|
-
export { Movie, animateText, audioEnvelope, bpmEnvelope, cameraPath, computeEnvelope, deck, dismissLoader, parseEase2 as ease, failLoader, followPath, kenBurns, measureText, musicBuffer, musicEnvelope, normalizeStops, orbit, particles, pictureStops, react, resolveLoader, splitText, stagger, wiggle, withFade };
|
|
4455
|
+
export { Movie, animateText, audioEnvelope, bpmEnvelope, cameraPath, computeEnvelope, deck, dismissLoader, parseEase2 as ease, failLoader, followPath, kenBurns, measureText, musicBuffer, musicEnvelope, musicEvents, normalizeStops, orbit, particles, pictureStops, react, resolveLoader, splitText, stagger, wiggle, withFade };
|
|
4445
4456
|
//# sourceMappingURL=index.js.map
|
|
4446
4457
|
//# sourceMappingURL=index.js.map
|