Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 505e0ed

Browse files
Version 2.6.0
- The entire SDK is a single .js file now. - New AutomaticVocalPitchCorrection class implements the auto-tune effect. Adjustable scale (which notes are valid), range (wide/bass/tenor/alto/soprano), speed and middle frequency. Can be used from subtle vocal pitch correction to the strong popular auto-tune sound. - "Offline mode" for AdvancedAudioPlayer. Set internalBufferSizeSeconds to 0 in the constructor to enable "offline mode", where the player can not be used for real-time playback, but can process audio in an iteration.
1 parent 08ca753 commit 505e0ed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+4043
-5537
lines changed

‎Superpowered.js‎

Lines changed: 804 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎SuperpoweredModule.js‎

Lines changed: 805 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎example_effects/SuperpoweredModule.js‎

Lines changed: 805 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎example_effects/main.js‎

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { SuperpoweredGlue, SuperpoweredWebAudio } from './superpowered/SuperpoweredWebAudio.js';
1+
import { SuperpoweredGlue, SuperpoweredWebAudio } from './SuperpoweredModule.js';
22

33
const states = { NOTRUNNING: 'START', INITIALIZING: 'INITIALIZING', RUNNING: 'STOP' }
44

@@ -30,7 +30,7 @@ async function toggleAudio() {
3030
});
3131
if (!micStream) return;
3232

33-
let currentPath = window.location.pathname.substring(0, window.location.pathname.lastIndexOf('/'));
33+
let currentPath = window.location.href.substring(0, window.location.href.lastIndexOf('/'));
3434
audioNode = await webaudioManager.createAudioNodeAsync(currentPath + '/processor.js', 'MyProcessor', onMessageFromAudioScope);
3535
let audioInput = webaudioManager.audioContext.createMediaStreamSource(micStream);
3636
audioInput.connect(audioNode);
@@ -46,8 +46,7 @@ async function toggleAudio() {
4646

4747
async function loadJS() {
4848
// download and instantiate Superpowered
49-
Superpowered = await SuperpoweredGlue.fetch('./superpowered/superpowered.wasm');
50-
Superpowered.Initialize('ExampleLicenseKey-WillExpire-OnNextUpdate');
49+
Superpowered = await SuperpoweredGlue.Instantiate('ExampleLicenseKey-WillExpire-OnNextUpdate');
5150

5251
// UI: innerHTML may be ugly but keeps this example small
5352
document.getElementById('content').innerHTML = '\

‎example_effects/processor.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { SuperpoweredWebAudio } from './superpowered/SuperpoweredWebAudio.js';
1+
import { SuperpoweredWebAudio } from './SuperpoweredModule.js';
22

33
function calculateFrequency(value, minFreq, maxFreq) {
44
if (value > 0.97) return maxFreq;

‎example_effects/superpowered/SuperpoweredGlue.js‎

Lines changed: 0 additions & 533 deletions
This file was deleted.

‎example_effects/superpowered/SuperpoweredGlueModule.js‎

Lines changed: 0 additions & 533 deletions
This file was deleted.

‎example_effects/superpowered/SuperpoweredTrackLoader.js‎

Lines changed: 0 additions & 44 deletions
This file was deleted.

‎example_effects/superpowered/SuperpoweredTrackLoaderModule.js‎

Lines changed: 0 additions & 44 deletions
This file was deleted.

‎example_effects/superpowered/SuperpoweredTrackLoaderWorker.js‎

Lines changed: 0 additions & 28 deletions
This file was deleted.

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /