clipasm 0.3.2

A strict, typed language for compiling and rendering Video and Audio graphs
Documentation
<!-- Generated by clipasm-reference-docs. Do not edit directly. -->

# Built-in programs

Look up the callable programs that create or transform Video and Audio values.

These programs are registered in ClipAsm and use normal call syntax. Imported source programs use the same call model. Language forms such as [`clip` and stack blocks](../language/composition-forms.md) are documented separately and do not appear in `clipasm programs`.

The type shapes below are lookup notation, not ClipAsm declaration syntax. See [statements and calls](../language/statements-and-calls.md) for authored syntax.

## Program catalog

### Sources

| Program | Summary | Type shape | Properties |
| --- | --- | --- | --- |
| [`image`]image.md | Create a Video from an image file. | `() -> Video` | — |
| [`video`]video.md | Load a Video from a video file. | `() -> Video` | — |
| [`audio`]audio.md | Load standalone Audio from an audio file. | `() -> Audio` | — |

### Timeline

| Program | Summary | Type shape | Properties |
| --- | --- | --- | --- |
| [`concat`]concat.md | Concatenate one or more homogeneous timelines. | `(T...) -> T` | generic |
| [`repeat`]repeat.md | Repeat a Video or Audio timeline. | `(T) -> T` | generic |
| [`trim`]trim.md | Keep a selected range of a Video or Audio timeline. | `(T) -> T` | generic |
| [`drop`]drop.md | Remove one Video or Audio value from the stack. | `(T) -> none` | generic |

### Audio

| Program | Summary | Type shape | Properties |
| --- | --- | --- | --- |
| [`extract_audio`]extract_audio.md | Extract the meaningful Audio from a Video. | `(Video) -> Audio` | — |
| [`set_audio`]set_audio.md | Replace a Video's Audio with standalone Audio. | `(Video, Audio) -> Video` | — |

### Effects

| Program | Summary | Type shape | Properties |
| --- | --- | --- | --- |
| [`zoom_in`]zoom_in.md | Apply a linear zoom-in effect to a Video. | `(Video) -> Video` | — |

### Transitions

| Program | Summary | Type shape | Properties |
| --- | --- | --- | --- |
| [`flash_cut`]flash_cut.md | Join two Videos with a brief white-flash transition. | `(Video, Video) -> Video` | — |
| [`crossfade`]crossfade.md | Overlap two Videos with a crossfade transition. | `(Video, Video) -> Video` | — |

### Body programs

| Program | Summary | Type shape | Properties |
| --- | --- | --- | --- |
| [`join`]join.md | Transform and concatenate two Video or Audio timelines in a body. | `(T, T) -> T` | generic; accepts a body |
| [`during`]during.md | Replace a selected timeline range with the result of a body. | `(T) -> T` | generic; accepts a body |