/ music / double-pendulum
Sign in
music / double-pendulum
double-pendulum / src / compositions / c02-orbits / index.ts
16 lines · 566 BCodeBlameHistory
5c043e1Add composition 2: orbitsJeremy Magland 1import type { Composition } from "../../core/composition.ts";
75ca48aOverhaul playback: background-computed, buffered, one clockJeremy Magland 2import { createStreamPiece, type StreamDef } from "../../stream/piece.ts";
5c043e1Add composition 2: orbitsJeremy Magland 3import defaults from "./defaults.json";
75ca48aOverhaul playback: background-computed, buffered, one clockJeremy Magland 4import { estimateLength, layout } from "./layout.ts";
5c043e1Add composition 2: orbitsJeremy Magland 5import { schema } from "./schema.ts";
75ca48aOverhaul playback: background-computed, buffered, one clockJeremy Magland 6import { orbitsView } from "./view.ts";
8const def: StreamDef = { id: "02-orbits", schema, layout, estimateLength, view: orbitsView };
5c043e1Add composition 2: orbitsJeremy Magland 9
10export const orbits: Composition = {
5c043e1Add composition 2: orbitsJeremy Magland 12 title: "orbits",
13 schema,
14 defaults,
75ca48aOverhaul playback: background-computed, buffered, one clockJeremy Magland 15 create: (view, params) => createStreamPiece(def, view, params),
5c043e1Add composition 2: orbitsJeremy Magland 16};
↑↓ move↵openescclose