MCPcopy Create free account
hub / github.com/Code-Bullet/Jump-King / Peak

Function Peak

libraries/p5.sound.js:1903–1908  ·  view source on GitHub ↗
(amp, i)

Source from the content-addressed store, hash-verified

1901 };
1902 // process peaks
1903 var Peak = function (amp, i) {
1904 this.sampleIndex = i;
1905 this.amplitude = amp;
1906 this.tempos = [];
1907 this.intervals = [];
1908 };
1909 var allPeaks = [];
1910 // 1. for processPeaks() Function to identify peaks above a threshold
1911 // returns an array of peak indexes as frames (samples) of the original soundfile

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected