mirror of
https://github.com/scratchfoundation/scratch-audio.git
synced 2024-12-22 14:02:29 -05:00
Web Audio-based audio engine for Scratch 3.0
c12bf02b33
The number of samples in the ADPCM can be known once the data chunk is extracted and the block size is known. From there the audio buffer can be created and its channel data passed to the decompress method. A lot of time is saved by writing to the channel data directly instead of writing to one array, copying that to another array, and then finally copying to the channel data. A surprising amount of time is saved by using one getChannelData call instead of calling to store each sample. |
||
---|---|---|
.github | ||
sound-files/drums | ||
src | ||
test | ||
.editorconfig | ||
.eslintignore | ||
.eslintrc.js | ||
.gitattributes | ||
.gitignore | ||
.npmignore | ||
.travis.yml | ||
CONTRIBUTING.md | ||
LICENSE | ||
package.json | ||
README.md | ||
TRADEMARK.txt | ||
webpack.config.js |
scratch-audio
Scratch audio engine is for playing sounds, instruments and audio effects in Scratch 3.0 projects
Please note this project is at an early stage and we are not ready for pull requests
Installation
This requires you to have Git and Node.js installed.
In your own node environment/application:
npm install https://github.com/LLK/scratch-audio.git
If you want to edit/play yourself:
git clone git@github.com:LLK/scratch-audio.git
cd scratch-audio
npm install
Testing
npm test
Donate
We provide Scratch free of charge, and want to keep it that way! Please consider making a donation to support our continued engineering, design, community, and resource development efforts. Donations of any size are appreciated. Thank you!