|
|
|
@@ -3,7 +3,7 @@ import { LoopingSource } from "./LoopingSource"; |
|
|
|
import { Source } from "./Source"; |
|
|
|
|
|
|
|
export function makeGlorps(): Source { |
|
|
|
const source: Source = new IntervalSource("Guts"); |
|
|
|
const source: IntervalSource = new IntervalSource("Guts"); |
|
|
|
source.loadSound("bowels-to-intestines"); |
|
|
|
source.loadSound("intestines-to-bowels"); |
|
|
|
source.loadSound("intestines-to-stomach"); |
|
|
|
@@ -16,20 +16,14 @@ export function makeGlorps(): Source { |
|
|
|
|
|
|
|
console.log(source); |
|
|
|
|
|
|
|
return source; |
|
|
|
} |
|
|
|
|
|
|
|
export function makeDigestion(): Source { |
|
|
|
const source: Source = new LoopingSource("Digestion"); |
|
|
|
source.loadSound("fen-stomach"); |
|
|
|
source.loadSound("fen-intestines"); |
|
|
|
source.loadSound("fen-bowels"); |
|
|
|
source.interval = [4, 8]; |
|
|
|
source.pitch = [0.75, 1.25]; |
|
|
|
|
|
|
|
return source; |
|
|
|
} |
|
|
|
|
|
|
|
export function makeBurps(): Source { |
|
|
|
const source: Source = new IntervalSource("Burps"); |
|
|
|
const source: IntervalSource = new IntervalSource("Burps"); |
|
|
|
source.loadSound("belch (1)"); |
|
|
|
source.loadSound("belch (2)"); |
|
|
|
source.loadSound("belch (3)"); |
|
|
|
@@ -47,13 +41,17 @@ export function makeBurps(): Source { |
|
|
|
source.loadSound("belch (15)"); |
|
|
|
source.loadSound("belch (16)"); |
|
|
|
|
|
|
|
source.interval = [10, 30]; |
|
|
|
|
|
|
|
source.pitch = [0.8, 1.1]; |
|
|
|
|
|
|
|
source.active = false; |
|
|
|
|
|
|
|
return source; |
|
|
|
} |
|
|
|
|
|
|
|
export function makeGurgles(): Source { |
|
|
|
const source: Source = new IntervalSource("Gurgles"); |
|
|
|
const source: IntervalSource = new IntervalSource("Gurgles"); |
|
|
|
source.loadSound("gurgles/gurgle (1)"); |
|
|
|
source.loadSound("gurgles/gurgle (2)"); |
|
|
|
source.loadSound("gurgles/gurgle (3)"); |
|
|
|
@@ -76,5 +74,41 @@ export function makeGurgles(): Source { |
|
|
|
source.loadSound("gurgles/gurgle (20)"); |
|
|
|
source.loadSound("gurgles/gurgle (21)"); |
|
|
|
|
|
|
|
source.pitch = [0.6, 1.2]; |
|
|
|
source.interval = [2, 10]; |
|
|
|
source.panning = [-0.6, 0.6]; |
|
|
|
return source; |
|
|
|
} |
|
|
|
|
|
|
|
export function makeHeartbeat(): LoopingSource { |
|
|
|
const source: LoopingSource = new LoopingSource("Heartbeat"); |
|
|
|
|
|
|
|
source.loadSound("heartbeat"); |
|
|
|
source.volume = 0.3; |
|
|
|
|
|
|
|
return source; |
|
|
|
} |
|
|
|
|
|
|
|
export function makeBreathing(): LoopingSource { |
|
|
|
const source: LoopingSource = new LoopingSource("Breathing"); |
|
|
|
|
|
|
|
source.loadSound("breaths"); |
|
|
|
|
|
|
|
return source; |
|
|
|
} |
|
|
|
|
|
|
|
export function makeRumble(): LoopingSource { |
|
|
|
const source: LoopingSource = new LoopingSource("Rumble"); |
|
|
|
|
|
|
|
source.loadSound("rumble"); |
|
|
|
|
|
|
|
return source; |
|
|
|
} |
|
|
|
|
|
|
|
export function makeSquishing(): LoopingSource { |
|
|
|
const source: LoopingSource = new LoopingSource("Squishing"); |
|
|
|
|
|
|
|
source.loadSound("squishing"); |
|
|
|
|
|
|
|
return source; |
|
|
|
} |