Skip to content

Commit

Permalink
add rev shortcut
Browse files Browse the repository at this point in the history
  • Loading branch information
Bubobubobubobubo committed Oct 24, 2023
1 parent 4e9f7ea commit a567416
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/classes/SoundEvent.ts
Original file line number Diff line number Diff line change
Expand Up @@ -398,6 +398,18 @@ export class SoundEvent extends AudibleEvent {
public rdim = this.roomdim;
public size = (value: number) => this.updateValue("roomsize", value);
public sz = this.size;
public rev = (room: number, size: number, fade?: number, lp?: number, dim?: number) => {
this.updateValue("room", room)
this.updateValue("roomsize", size)
if (fade)
this.updateValue("roomfade", fade)
if (lp)
this.updateValue("roomlp", lp)
if (dim)
this.updateValue("roomdim", dim)

return this;
}

// Compressor
public comp = (value: number) => this.updateValue("compressor", value);
Expand Down

0 comments on commit a567416

Please sign in to comment.