Repository navigation
API Type ModifierSpec
type ModifierSpec =
| {
deadzone: {
max?: number;
min?: number;
shape?: "axial" | "radial";
};
}
| {
negate: | true
| {
x?: boolean;
y?: boolean;
z?: boolean;
};
}
| {
swizzle: string;
}
| {
scale: | number
| {
x?: number;
y?: number;
z?: number;
};
}
| {
curve: {
exponent: number;
};
}
| {
smooth: {
rate: number;
};
};Defined in: src/engine/input/contextTypes.ts:8
Modifiers change a value, in order. On a mapping, or on the action (after every mapping's).
{
deadzone: {
max?: number;
min?: number;
shape?: "axial" | "radial";
};
}Values under min read 0; the rest rescale to 0..1 up to max (default 1). radial (default for vectors) uses the length.
{
negate: | true
| {
x?: boolean;
y?: boolean;
z?: boolean;
};
}Flip components: { negate: { y: true } }; true flips all.
{
swizzle: string;
}Reorder components: "yx" (a 1D control into Y), "zyx"…
{
scale: | number
| {
x?: number;
y?: number;
z?: number;
};
}Multiply: one factor, or per component.
{
curve: {
exponent: number;
};
}Response curve: each component's magnitude to the power exponent, sign kept.
{
smooth: {
rate: number;
};
}Exponential smoothing toward the input, rate per second (higher follows faster).
This wiki is generated from docs/wiki/ and the myco module's source on every push to master. Change pages there in a pull request: edits made here are not kept.
Basics
Gameplay
Rendering
Audio
- Playing sound
- Why is there no sound?
- Playlists
- Interactive music
- Sound generators
- Spatial audio
- Audio mixer
- Live mixing
- Loudness
- Audio profiler
- Audio takes
Reference