Skip to content

SoundShape beta ​

Interface of @v12-engine/client

ts
export interface SoundShape

How a sound is played, besides which: how loud, how fast (and so how high), to which side, from where in the file, over and over or not, faded in over so many seconds, and what it goes through. Each left out changes nothing

Members ​

echo ​

ts
echo?: number;

Seconds between it and its echo, each quieter: a canyon at 0.3

highpass ​

ts
highpass?: number;

Hz below which it is cut: thin (a radio, a phone) at 400

in ​

ts
in?: number;

Seconds it fades in over

loop ​

ts
loop?: boolean;

Whether the sound repeats until it is stopped

lowpass ​

ts
lowpass?: number;

Hz above which it is cut: muffled (a wall, a helmet) at 600, a radio's top at 3500

pan ​

ts
pan?: number;

To which side, -1 (left) to 1 (right), over where it is heard from

rate ​

ts
rate?: number;

How fast it plays, and so how high (1; 2 an octave up)

reverb ​

ts
reverb?: number;

How much of a room's echo is heard with it, 0 to 1: a hall at 0.4

start ​

ts
start?: number;

Seconds into the file it begins at

volume ​

ts
volume?: number;

How loud, 0 to 1 and over (1)