Eric Rosenbaum
ff6cd4a094
Remove all audio effects except pitch and pan
2017-06-19 14:33:23 -04:00
Paul Kaplan
c85c757a72
Merge pull request #43 from paulkaplan/fix-detached-buffer-error
...
Make a copy before using audio buffer
2017-06-14 12:31:36 -04:00
Paul Kaplan
5c4a88b739
Make a copy before using audio buffer
2017-06-14 09:10:35 -04:00
Eric Rosenbaum
19e1136e3b
Merge pull request #41 from LLK/bugfix/sound-onended
...
Use native audio buffer source node
2017-04-19 14:10:59 -04:00
Chris Willis-Ford
206dce7268
Merge pull request #37 from cwillisf/standardize-settings
...
Standardize repository settings
2017-04-19 09:51:22 -07:00
Chris Willis-Ford
33293dc426
Merge branch 'develop' into standardize-settings
2017-04-19 09:48:32 -07:00
Eric Rosenbaum
e8864387c6
Use native audio buffer source node
...
Instead of the Tone js wrapper for it, because a recent update to Tone changed the ‘onended’ callback in a way that broke our “play sound until done” block.
2017-04-18 18:40:06 -04:00
Ray Schamp
1fd097d396
Merge pull request #40 from rschamp/es6
...
Update to use ES6 class syntax
2017-04-18 18:29:57 -04:00
Ray Schamp
ea3c4a47f2
Fix while
condition, disable eslint complaint
2017-04-18 18:05:36 -04:00
Ray Schamp
fa879cee9d
Fix static
getters
...
Thanks @ericrosenbaum!
2017-04-18 17:59:37 -04:00
Ray Schamp
bdd6f55dcc
Update Travis to Node 6 LTS
...
For compatibility with ES6
2017-04-18 12:22:06 -04:00
Ray Schamp
9874cf006f
Update to use ES6 class syntax
2017-04-18 12:22:06 -04:00
Eric Rosenbaum
5007c43ddf
Merge pull request #39 from rschamp/eslint-config-scratch
...
Use eslint-config-scratch
2017-04-18 12:01:54 -04:00
Ray Schamp
e50ba400f9
Update syntax for eslint-config-scratch
2017-04-17 11:52:12 -04:00
Ray Schamp
ee8462f53f
Pass with eslint --fix
2017-04-17 11:52:12 -04:00
Ray Schamp
cd699dbc0f
Install and configure eslint-config-scratch
2017-04-17 11:52:12 -04:00
Ray Schamp
7ac04913ba
Merge pull request #16 from LLK/greenkeeper/initial
...
Update dependencies to enable Greenkeeper 🌴
2017-04-17 11:18:03 -04:00
Ray Schamp
0610f8a6ce
Update packages, fix lint error
2017-04-17 11:11:06 -04:00
greenkeeper[bot]
cda87fa155
docs(readme): add Greenkeeper badge
...
https://greenkeeper.io/
2017-04-17 10:51:20 -04:00
greenkeeper[bot]
453c82092b
chore(package): update dependencies
...
https://greenkeeper.io/
2017-04-17 10:51:20 -04:00
Christopher Willis-Ford
8ebfe6eb7a
Ignore source map output file
2017-04-14 14:00:39 -04:00
Christopher Willis-Ford
dc469d4a8e
Standardize repository settings
...
Add `.gitattributes` for consistent line endings across platforms.
Use `node` instead of deprecated `stable` version specifier for Travis.
Set dev tool to `cheap-module-source-map`.
2017-04-11 11:33:12 -04:00
Eric Rosenbaum
c354189385
Merge pull request #33 from LLK/feature/loudness
...
Add mic input for loudness block
2017-04-07 14:02:22 -04:00
Eric Rosenbaum
d08b5d2af9
Update tone version 0.9.0
...
So we can use Tone.UserMedia
2017-04-04 15:00:32 -04:00
Paul Kaplan
f65fa366e0
Merge pull request #35 from paulkaplan/return-promises
...
Return the loader promise for chaining
2017-03-31 13:30:04 -04:00
Paul Kaplan
6128309d93
Add jsdoc for decodeSound function
2017-03-31 12:09:07 -04:00
Paul Kaplan
cc454f2f72
Return the loader promise for chaining
2017-03-31 12:02:36 -04:00
Eric Rosenbaum
dff7f24ad9
Merge pull request #32 from LLK/feature/use-scratch-storage
...
Use scratch storage
2017-03-31 11:04:19 -04:00
Eric Rosenbaum
04467673b3
Add stub for loadSounds function with warning
...
… so that the gui can call it without breaking, until it is updated.
2017-03-31 10:50:21 -04:00
Eric Rosenbaum
b14852ab3c
If mic is not enabled, return -1
...
To match Scratch 2.0 behavior
2017-03-27 13:23:01 -04:00
Eric Rosenbaum
83afeb1916
Tidy up sound decoding
2017-03-27 11:51:01 -04:00
Eric Rosenbaum
3608a5947f
Decode sounds in audio engine
...
Remove logic for loading sounds, since that is handled by Scratch Storage
2017-03-22 18:09:42 -04:00
Eric Rosenbaum
c5daccef7c
Rename to ADPCMSoundDecoder, and only decode
...
Scratch Storage now handles asset loading, so this class is now just the decoder
2017-03-22 18:08:44 -04:00
Eric Rosenbaum
7d6adf5864
Add mic input for loudness block
2017-03-20 18:49:37 -04:00
Eric Rosenbaum
4eb12ea075
Merge pull request #26 from LLK/bugfix/playnote-volume
...
Playnote uses volume from vm to set gain
2017-02-10 14:08:14 -05:00
Eric Rosenbaum
ce9766451f
Update jsdocs
2017-02-09 15:48:37 -05:00
Eric Rosenbaum
b91226f9e8
playnote uses volume from vm to set gain
2017-02-09 14:53:59 -05:00
Eric Rosenbaum
83c4072e59
Merge pull request #14 from LLK/feature/refactor
...
Refactor sound engine (wip)
2017-02-02 17:42:29 -05:00
Eric Rosenbaum
5e0e4e2e82
added a comma to a comment
2017-02-02 15:52:36 -05:00
Eric Rosenbaum
bea203e122
fix JSDoc comment
2017-02-02 15:48:26 -05:00
Eric Rosenbaum
7e671791b8
use an enum for audio effect names
2017-02-02 15:41:16 -05:00
Eric Rosenbaum
de99228cd8
check for own property in for (var _ in _ )
2017-02-02 15:25:36 -05:00
Eric Rosenbaum
1c4709e5b9
bind to set isPlaying flag on ended
2017-02-02 15:25:26 -05:00
Eric Rosenbaum
b68c84af02
check for own property in for (var _ in _ )
2017-02-02 15:10:10 -05:00
Eric Rosenbaum
1a26fecca1
Comment all the things!
2017-02-02 14:53:17 -05:00
Eric Rosenbaum
cdc49def15
create empty object for use as a map
2017-02-02 14:51:02 -05:00
Eric Rosenbaum
a1baa94d3c
initialization
2017-02-02 14:49:17 -05:00
Eric Rosenbaum
7483cbdb2f
JSDoc comments
2017-02-01 18:02:04 -05:00
Eric Rosenbaum
dcdc2c0831
check for non-existent sound
2017-01-31 18:36:29 -05:00
Eric Rosenbaum
08a81af9e5
volume state handled in vm sound blocks
2017-01-31 18:35:37 -05:00