# @strudel.cycles/mini

> Mini notation for strudel

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/mini
pnpm add @strudel.cycles/mini
yarn add @strudel.cycles/mini
bun add @strudel.cycles/mini
```

## 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 | 261.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 3031 |
| Author | Felix Roos |
| Maintainers | yaxupaxo, felixroos |
| Keywords | tidalcycles, strudel, pattern, livecoding, algorave |

## Links

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

## Dependencies (1)

- [@strudel.cycles/core](https://npm.io/package/@strudel.cycles/core.md) 0.10.0

## 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.0 — 2023-03-23
- 0.6.0 — 2023-01-28
- 0.5.0 — 2022-12-13
- 0.4.1 — 2022-11-17
- 0.4.0 — 2022-11-13
- 0.3.3 — 2022-11-08
- 0.3.2 — 2022-11-08
- 0.3.1 — 2022-11-06
- 0.3.0 — 2022-11-06
- … 11 more at https://npm.io/package/@strudel.cycles/mini/versions

## README

# @strudel.cycles/mini

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

This package contains the mini notation parser and pattern generator.

## Install

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

## Example

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

const pattern = mini('a [b c*2]');

const events = pattern.firstCycle().map((e) => e.show());
console.log(events);
```

yields:

```log
(0/1 -> 1/2, 0/1 -> 1/2, a)
(1/2 -> 3/4, 1/2 -> 3/4, b)
(3/4 -> 7/8, 3/4 -> 7/8, c)
(7/8 -> 1/1, 7/8 -> 1/1, c)
```

[Play with @strudel.cycles/mini codesandbox](https://codesandbox.io/s/strudel-mini-example-oe9wcu?file=/src/index.js)

## Mini Notation API

See "Mini Notation" in the [Strudel Tutorial](https://strudel.cc/learn/mini-notation)

## Building the Parser

The parser [krill-parser.js] is generated from [krill.pegjs](./krill.pegjs) using [peggy](https://peggyjs.org/).
To generate the parser, run

```js
npm run build:parser
```

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