# @strudel.cycles/core

> Port of Tidal Cycles to JavaScript

Latest version **0.10.0** (published 2024-01-18) · AGPL-3.0-or-later license · 0 weekly downloads

> **Deprecated.** This package is deprecated.

## Install

```sh
npm install @strudel.cycles/core
pnpm add @strudel.cycles/core
yarn add @strudel.cycles/core
bun add @strudel.cycles/core
```

## Health

**Score 10/100 (F)** — status: deprecated.

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 0.10.0 |
| Published | 2024-01-18 |
| First published | 2022-03-27 |
| Weekly downloads | 0 |
| License | AGPL-3.0-or-later |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Dependencies | 1 |
| Unpacked size | 467.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 3031 |
| Author | Alex McLean |
| Maintainers | yaxupaxo, felixroos |
| Keywords | tidalcycles, strudel, pattern, livecoding, algorave |

## Links

- npm: https://www.npmjs.com/package/@strudel.cycles/core
- Repository: https://github.com/tidalcycles/strudel
- Homepage: https://strudel.cc
- Issues: https://github.com/tidalcycles/strudel/issues
- npm.io page: https://npm.io/package/@strudel.cycles/core

## Dependencies (1)

- [fraction.js](https://npm.io/package/fraction.js.md) ^4.3.7

## Alternatives

- [@sindresorhus/slugify](https://npm.io/package/@sindresorhus/slugify.md) — 3.7M weekly downloads
- [solid-js](https://npm.io/package/solid-js.md) — 2.7M weekly downloads
- [expo-glass-effect](https://npm.io/package/expo-glass-effect.md) — 2.5M weekly downloads
- [nanoassert](https://npm.io/package/nanoassert.md) — 780.8K weekly downloads
- [@ffmpeg/ffmpeg](https://npm.io/package/@ffmpeg/ffmpeg.md) — 529.5K weekly downloads

## Recent versions

- 0.10.0 (latest) — 2024-01-18
- 0.9.0 — 2023-09-17
- 0.8.2 — 2023-07-04
- 0.8.1 — 2023-05-10
- 0.8.0 — 2023-05-05
- 0.7.2 — 2023-03-23
- 0.7.1 — 2023-03-23
- 0.7.0 — 2023-03-23
- 0.6.8 — 2023-01-28
- 0.6.7 — 2023-01-28
- 0.6.6 — 2023-01-28
- 0.6.5 — 2023-01-28
- 0.6.4 — 2023-01-28
- 0.6.3 — 2023-01-28
- 0.6.2 — 2023-01-28
- … 17 more at https://npm.io/package/@strudel.cycles/core/versions

## README

# @strudel.cycles/core

**DEPRECATION NOTE**: This package is old and won't get any updates! The newer version goes by the name of [@strudel/core](https://www.npmjs.com/package/@strudel/core).

This package contains the bare essence of strudel.

## Install

```sh
npm i @strudel.cycles/core --save
```

## Example

```js
import { sequence } from '@strudel.cycles/core';

const pattern = sequence('a', ['b', 'c']);

const events = pattern.queryArc(0, 1);

const spans = events.map(
  (event) => `${event.value}: ${event.whole.begin.toFraction()} - ${event.whole.end.toFraction()} `,
);
```

yields:

```log
a: 0 - 1/2
b: 1/2 - 3/4
c: 3/4 - 1
a: 1 - 3/2
b: 3/2 - 7/4
c: 7/4 - 2
```

- [play with @strudel.cycles/core on codesandbox](https://codesandbox.io/s/strudel-core-test-forked-9ywhv7?file=/src/index.js).
- [open color pattern example](https://raw.githack.com/tidalcycles/strudel/main/packages/core/examples/canvas.html)
- [open minimal repl example](https://raw.githack.com/tidalcycles/strudel/main/packages/core/examples/vanilla.html)
- [open minimal vite example](./examples/vite-vanilla-repl/)

---
_Source: https://npm.io/package/@strudel.cycles/core · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
