├── .editorconfig ├── .eslintignore ├── .eslintrc.js ├── .gitattributes ├── .github ├── CONTRIBUTING.md ├── ISSUE_TEMPLATE.md ├── PULL_REQUEST_TEMPLATE.md └── workflows │ ├── ci-cd.yml │ ├── commitlint.yml │ └── signature-assistant.yml ├── .gitignore ├── .husky ├── .gitattributes └── commit-msg ├── .npmignore ├── .nvmrc ├── CHANGELOG.md ├── CONTRIBUTING.md ├── LICENSE ├── README.md ├── TRADEMARK.txt ├── commitlint.config.js ├── package.json ├── release.config.js ├── renovate.json5 ├── sound-files └── drums │ ├── BassDrum(1b)_22k.wav │ ├── Bongo_22k.wav │ ├── Cabasa(1)_22k.wav │ ├── Clap(1)_22k.wav │ ├── Claves(1)_22k.wav │ ├── Conga(1)_22k.wav │ ├── Cowbell(3)_22k.wav │ ├── Crash(2)_22k.wav │ ├── Cuica(2)_22k.wav │ ├── GuiroLong(1)_22k.wav │ ├── GuiroShort(1)_22k.wav │ ├── HiHatClosed(1)_22k.wav │ ├── HiHatOpen(2)_22k.wav │ ├── HiHatPedal(1)_22k.wav │ ├── Maracas(1)_22k.wav │ ├── SideStick(1)_22k.wav │ ├── SnareDrum(1)_22k.wav │ ├── Tambourine(3)_22k.wav │ ├── Tom(1)_22k.wav │ ├── Triangle(1)_22k.wav │ ├── Vibraslap(1)_22k.wav │ └── WoodBlock(1)_22k.wav ├── src ├── .eslintrc.js ├── ADPCMSoundDecoder.js ├── ArrayBufferStream.js ├── AudioEngine.js ├── Loudness.js ├── SoundBank.js ├── SoundPlayer.js ├── StartAudioContext.js ├── effects │ ├── Effect.js │ ├── EffectChain.js │ ├── PanEffect.js │ ├── PitchEffect.js │ └── VolumeEffect.js ├── index.js ├── log.js └── uid.js ├── test ├── AudioEngine.js ├── SoundPlayer.js ├── __mocks__ │ ├── AudioContext.js │ ├── AudioEngine.js │ ├── AudioNode.js │ ├── AudioParam.js │ └── AudioTarget.js └── effects │ └── EffectShape.js └── webpack.config.js /.editorconfig: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scratchfoundation/scratch-audio/HEAD/.editorconfig -------------------------------------------------------------------------------- /.eslintignore: -------------------------------------------------------------------------------- 1 | node_modules/* 2 | dist.js 3 | -------------------------------------------------------------------------------- /.eslintrc.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scratchfoundation/scratch-audio/HEAD/.eslintrc.js -------------------------------------------------------------------------------- /.gitattributes: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scratchfoundation/scratch-audio/HEAD/.gitattributes -------------------------------------------------------------------------------- /.github/CONTRIBUTING.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scratchfoundation/scratch-audio/HEAD/.github/CONTRIBUTING.md -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scratchfoundation/scratch-audio/HEAD/.github/ISSUE_TEMPLATE.md -------------------------------------------------------------------------------- /.github/PULL_REQUEST_TEMPLATE.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scratchfoundation/scratch-audio/HEAD/.github/PULL_REQUEST_TEMPLATE.md -------------------------------------------------------------------------------- /.github/workflows/ci-cd.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scratchfoundation/scratch-audio/HEAD/.github/workflows/ci-cd.yml -------------------------------------------------------------------------------- /.github/workflows/commitlint.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scratchfoundation/scratch-audio/HEAD/.github/workflows/commitlint.yml -------------------------------------------------------------------------------- /.github/workflows/signature-assistant.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scratchfoundation/scratch-audio/HEAD/.github/workflows/signature-assistant.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scratchfoundation/scratch-audio/HEAD/.gitignore -------------------------------------------------------------------------------- /.husky/.gitattributes: -------------------------------------------------------------------------------- 1 | * text eol=lf 2 | -------------------------------------------------------------------------------- /.husky/commit-msg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scratchfoundation/scratch-audio/HEAD/.husky/commit-msg -------------------------------------------------------------------------------- /.npmignore: -------------------------------------------------------------------------------- 1 | # Development files 2 | /.circleci 3 | 4 | # Testing 5 | /.nyc_output 6 | /coverage 7 | -------------------------------------------------------------------------------- /.nvmrc: -------------------------------------------------------------------------------- 1 | 18 2 | -------------------------------------------------------------------------------- /CHANGELOG.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scratchfoundation/scratch-audio/HEAD/CHANGELOG.md -------------------------------------------------------------------------------- /CONTRIBUTING.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scratchfoundation/scratch-audio/HEAD/CONTRIBUTING.md -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scratchfoundation/scratch-audio/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scratchfoundation/scratch-audio/HEAD/README.md -------------------------------------------------------------------------------- /TRADEMARK.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scratchfoundation/scratch-audio/HEAD/TRADEMARK.txt -------------------------------------------------------------------------------- /commitlint.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scratchfoundation/scratch-audio/HEAD/commitlint.config.js -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scratchfoundation/scratch-audio/HEAD/package.json -------------------------------------------------------------------------------- /release.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scratchfoundation/scratch-audio/HEAD/release.config.js -------------------------------------------------------------------------------- /renovate.json5: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scratchfoundation/scratch-audio/HEAD/renovate.json5 -------------------------------------------------------------------------------- /sound-files/drums/BassDrum(1b)_22k.wav: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scratchfoundation/scratch-audio/HEAD/sound-files/drums/BassDrum(1b)_22k.wav -------------------------------------------------------------------------------- /sound-files/drums/Bongo_22k.wav: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scratchfoundation/scratch-audio/HEAD/sound-files/drums/Bongo_22k.wav -------------------------------------------------------------------------------- /sound-files/drums/Cabasa(1)_22k.wav: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scratchfoundation/scratch-audio/HEAD/sound-files/drums/Cabasa(1)_22k.wav -------------------------------------------------------------------------------- /sound-files/drums/Clap(1)_22k.wav: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scratchfoundation/scratch-audio/HEAD/sound-files/drums/Clap(1)_22k.wav -------------------------------------------------------------------------------- /sound-files/drums/Claves(1)_22k.wav: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scratchfoundation/scratch-audio/HEAD/sound-files/drums/Claves(1)_22k.wav -------------------------------------------------------------------------------- /sound-files/drums/Conga(1)_22k.wav: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scratchfoundation/scratch-audio/HEAD/sound-files/drums/Conga(1)_22k.wav -------------------------------------------------------------------------------- /sound-files/drums/Cowbell(3)_22k.wav: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scratchfoundation/scratch-audio/HEAD/sound-files/drums/Cowbell(3)_22k.wav -------------------------------------------------------------------------------- /sound-files/drums/Crash(2)_22k.wav: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scratchfoundation/scratch-audio/HEAD/sound-files/drums/Crash(2)_22k.wav -------------------------------------------------------------------------------- /sound-files/drums/Cuica(2)_22k.wav: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scratchfoundation/scratch-audio/HEAD/sound-files/drums/Cuica(2)_22k.wav -------------------------------------------------------------------------------- /sound-files/drums/GuiroLong(1)_22k.wav: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scratchfoundation/scratch-audio/HEAD/sound-files/drums/GuiroLong(1)_22k.wav -------------------------------------------------------------------------------- /sound-files/drums/GuiroShort(1)_22k.wav: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scratchfoundation/scratch-audio/HEAD/sound-files/drums/GuiroShort(1)_22k.wav -------------------------------------------------------------------------------- /sound-files/drums/HiHatClosed(1)_22k.wav: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scratchfoundation/scratch-audio/HEAD/sound-files/drums/HiHatClosed(1)_22k.wav -------------------------------------------------------------------------------- /sound-files/drums/HiHatOpen(2)_22k.wav: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scratchfoundation/scratch-audio/HEAD/sound-files/drums/HiHatOpen(2)_22k.wav -------------------------------------------------------------------------------- /sound-files/drums/HiHatPedal(1)_22k.wav: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scratchfoundation/scratch-audio/HEAD/sound-files/drums/HiHatPedal(1)_22k.wav -------------------------------------------------------------------------------- /sound-files/drums/Maracas(1)_22k.wav: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scratchfoundation/scratch-audio/HEAD/sound-files/drums/Maracas(1)_22k.wav -------------------------------------------------------------------------------- /sound-files/drums/SideStick(1)_22k.wav: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scratchfoundation/scratch-audio/HEAD/sound-files/drums/SideStick(1)_22k.wav -------------------------------------------------------------------------------- /sound-files/drums/SnareDrum(1)_22k.wav: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scratchfoundation/scratch-audio/HEAD/sound-files/drums/SnareDrum(1)_22k.wav -------------------------------------------------------------------------------- /sound-files/drums/Tambourine(3)_22k.wav: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scratchfoundation/scratch-audio/HEAD/sound-files/drums/Tambourine(3)_22k.wav -------------------------------------------------------------------------------- /sound-files/drums/Tom(1)_22k.wav: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scratchfoundation/scratch-audio/HEAD/sound-files/drums/Tom(1)_22k.wav -------------------------------------------------------------------------------- /sound-files/drums/Triangle(1)_22k.wav: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scratchfoundation/scratch-audio/HEAD/sound-files/drums/Triangle(1)_22k.wav -------------------------------------------------------------------------------- /sound-files/drums/Vibraslap(1)_22k.wav: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scratchfoundation/scratch-audio/HEAD/sound-files/drums/Vibraslap(1)_22k.wav -------------------------------------------------------------------------------- /sound-files/drums/WoodBlock(1)_22k.wav: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scratchfoundation/scratch-audio/HEAD/sound-files/drums/WoodBlock(1)_22k.wav -------------------------------------------------------------------------------- /src/.eslintrc.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scratchfoundation/scratch-audio/HEAD/src/.eslintrc.js -------------------------------------------------------------------------------- /src/ADPCMSoundDecoder.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scratchfoundation/scratch-audio/HEAD/src/ADPCMSoundDecoder.js -------------------------------------------------------------------------------- /src/ArrayBufferStream.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scratchfoundation/scratch-audio/HEAD/src/ArrayBufferStream.js -------------------------------------------------------------------------------- /src/AudioEngine.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scratchfoundation/scratch-audio/HEAD/src/AudioEngine.js -------------------------------------------------------------------------------- /src/Loudness.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scratchfoundation/scratch-audio/HEAD/src/Loudness.js -------------------------------------------------------------------------------- /src/SoundBank.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scratchfoundation/scratch-audio/HEAD/src/SoundBank.js -------------------------------------------------------------------------------- /src/SoundPlayer.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scratchfoundation/scratch-audio/HEAD/src/SoundPlayer.js -------------------------------------------------------------------------------- /src/StartAudioContext.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scratchfoundation/scratch-audio/HEAD/src/StartAudioContext.js -------------------------------------------------------------------------------- /src/effects/Effect.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scratchfoundation/scratch-audio/HEAD/src/effects/Effect.js -------------------------------------------------------------------------------- /src/effects/EffectChain.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scratchfoundation/scratch-audio/HEAD/src/effects/EffectChain.js -------------------------------------------------------------------------------- /src/effects/PanEffect.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scratchfoundation/scratch-audio/HEAD/src/effects/PanEffect.js -------------------------------------------------------------------------------- /src/effects/PitchEffect.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scratchfoundation/scratch-audio/HEAD/src/effects/PitchEffect.js -------------------------------------------------------------------------------- /src/effects/VolumeEffect.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scratchfoundation/scratch-audio/HEAD/src/effects/VolumeEffect.js -------------------------------------------------------------------------------- /src/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scratchfoundation/scratch-audio/HEAD/src/index.js -------------------------------------------------------------------------------- /src/log.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scratchfoundation/scratch-audio/HEAD/src/log.js -------------------------------------------------------------------------------- /src/uid.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scratchfoundation/scratch-audio/HEAD/src/uid.js -------------------------------------------------------------------------------- /test/AudioEngine.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scratchfoundation/scratch-audio/HEAD/test/AudioEngine.js -------------------------------------------------------------------------------- /test/SoundPlayer.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scratchfoundation/scratch-audio/HEAD/test/SoundPlayer.js -------------------------------------------------------------------------------- /test/__mocks__/AudioContext.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scratchfoundation/scratch-audio/HEAD/test/__mocks__/AudioContext.js -------------------------------------------------------------------------------- /test/__mocks__/AudioEngine.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scratchfoundation/scratch-audio/HEAD/test/__mocks__/AudioEngine.js -------------------------------------------------------------------------------- /test/__mocks__/AudioNode.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scratchfoundation/scratch-audio/HEAD/test/__mocks__/AudioNode.js -------------------------------------------------------------------------------- /test/__mocks__/AudioParam.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scratchfoundation/scratch-audio/HEAD/test/__mocks__/AudioParam.js -------------------------------------------------------------------------------- /test/__mocks__/AudioTarget.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scratchfoundation/scratch-audio/HEAD/test/__mocks__/AudioTarget.js -------------------------------------------------------------------------------- /test/effects/EffectShape.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scratchfoundation/scratch-audio/HEAD/test/effects/EffectShape.js -------------------------------------------------------------------------------- /webpack.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/scratchfoundation/scratch-audio/HEAD/webpack.config.js --------------------------------------------------------------------------------