Files
moeka-project/packages/motion-driver-magic
nanakura dc26878386
CI / Lint (push) Canceled after 0s
CI / Build Test (stage-web) (push) Canceled after 0s
CI / Build Test (ui-loading-screens) (push) Canceled after 0s
CI / Build Test (ui-transitions) (push) Canceled after 0s
CI / Unit Test (push) Canceled after 0s
CI / Type Check (push) Canceled after 0s
CI / Check Provenance (push) Canceled after 0s
Sync Labels / sync-labels (push) Successful in 1m43s
chore: prune unused apps and services for the moeka fork
- Remove stage-tamagotchi, stage-pocket, server, and engine workspaces with their workflows, addons, and docs
- Switch the toolchain from pnpm to bun, replace lockfiles with bun.lock
- Rewrite remaining product references to Moeka
2026-09-14 16:40:49 +07:00
..

@proj-airi/motion-driver-magic

MAGIC means Markovian Animation Generator with Illusory Conditioning. This package fits procedural motion models and generates normalized motion frames. Its root entry point exports the VAR and AR-HMM models.

Use the package

import type { TrainingSequence } from '@proj-airi/motion-driver-magic'

import { fit } from '@proj-airi/motion-driver-magic'

const sequence: TrainingSequence = {
  sampleRateHz: 30,
  sourceDurationMs: 1000,
  frames,
}

const model = fit(sequence, { method: 'var', order: 12, ridge: 0.001 })
const generator = model.toGenerator({ seed: 1 })
const frame = generator.next({ noiseScale: 1 })

When to use it

Use this package for model fitting and seeded procedural motion generation. The caller controls scheduling, filtering, transport, and renderer integration.

Do not import Vue, renderer objects, recording editors, or browser scheduling into this package. Convert application recordings to fixed-width numeric frames before fitting a model.