Connor McCutcheon
/ Music
factories.mdx
mdx
---
title: Creating Patterns
layout: ../../layouts/MainLayout.astro
---
import { MiniRepl } from '../../docs/MiniRepl';
import { JsDoc } from '../../docs/JsDoc';
# Creating Patterns
The following functions will return a pattern.
These are the equivalents used by the Mini Notation:
| function                       | mini             |
| ------------------------------ | ---------------- |
| `cat(x, y)`                    | `"<x y>"`        |
| `seq(x, y)`                    | `"x y"`          |
| `stack(x, y)`                  | `"x,y"`          |
| `stepcat([3,x],[2,y])`         | `"x@3 y@2"`      |
| `polymeter([a, b, c], [x, y])` | `"{a b c, x y}"` |
| `polymeterSteps(2, x, y, z)`   | `"{x y z}%2"`    |
| `silence`                      | `"~"`            |
## cat
<JsDoc client:idle name="cat" h={0} />
## seq
<JsDoc client:idle name="seq" h={0} />
## stack
<JsDoc client:idle name="stack" h={0} />
## stepcat
<JsDoc client:idle name="stepcat" h={0} />
## arrange
<JsDoc client:idle name="arrange" h={0} />
## polymeter
<JsDoc client:idle name="polymeter" h={0} />
## polymeterSteps
<JsDoc client:idle name="polymeterSteps" h={0} />
## silence
<JsDoc client:idle name="silence" h={0} />
## run
<JsDoc client:idle name="run" h={0} />
## binary
<JsDoc client:idle name="binary" h={0} />
## binaryN
<JsDoc client:idle name="binaryN" h={0} />
After Pattern Constructors, let's see what [Time Modifiers](/learn/time-modifiers) are available.
No comments yet.