Skip to content

Commit 86afd2a

Browse files
committed
Version 2.0.7
Feature-parity with the native 2.0.7 SDK, including the dynamically changeable time-stretching sound parameter.
1 parent 50186d2 commit 86afd2a

File tree

4 files changed

+7
-4
lines changed

4 files changed

+7
-4
lines changed

docs.html

+3
Original file line numberDiff line numberDiff line change
@@ -1498,6 +1498,9 @@ <h3>TimeStretching</h3>
14981498
// Time stretching rate (tempo). 1 means no time stretching. Maximum: 4. Values above 2 or below 0.5 are not recommended on mobile devices with low latency audio due high CPU load and risk of audio dropouts.
14991499
ts.rate = 1.04;
15001500

1501+
// Valid values are: 0 (best to save CPU with slightly lower audio quality), 1 (best for DJ apps, modern and &quot;complete&quot; music), 2 (best for instrumental loops and single instruments). Default: 1.
1502+
ts.sound = 1;
1503+
15011504
// Pitch shift cents, limited from -2400 (two octaves down) to 2400 (two octaves up). Examples: 0 (no pitch shift), -100 (one note down), 300 (3 notes up).
15021505
// When the value if a multiply of 100 and is >= -1200 and <= 1200, changing the pitch shift needs only a few CPU clock cycles. Any change in pitchShiftCents involves significant momentary CPU load otherwise.
15031506
ts.pitchShiftCents = 100;

superpowered-worker.js

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

superpowered.bc

43.2 KB
Binary file not shown.

superpowered.js

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)