Eric Rosenbaum
40dc8487f4
Fix off-by-one error in reverse effect, add a test
2019-07-22 17:47:44 -04:00
Eric Rosenbaum
bbe72e3485
Remove extra spaces
2019-07-22 16:10:31 -04:00
Eric Rosenbaum
d6f2b0a48a
Clean up AudioEffects constructor (needs a refactor)
2019-07-22 16:05:08 -04:00
Eric Rosenbaum
e74255cf10
Use static getters for echo params
2019-07-22 15:07:34 -04:00
Eric Rosenbaum
68a4284e8c
Add util for encodeAndAddSoundToVM
2019-07-09 17:33:33 -04:00
Eric Rosenbaum
7bbe5f0589
Add fade in, fade out and mute effects
2019-07-09 15:32:29 -04:00
Eric Rosenbaum
8f949f532f
Apply effects to selection
2019-07-09 15:32:29 -04:00
Paul Kaplan
4d136c727b
Merge pull request #4339 from paulkaplan/prevent-large-sounds
...
Prevent creating sounds that are too big in the sound editor
2019-01-15 12:25:00 -05:00
Paul Kaplan
2e30f1d426
Limit the size of sounds coming from effects.
2019-01-14 13:10:55 -05:00
Paul Kaplan
f3c15c402f
Prevent auto-trim from producing invalid start and stop points
2019-01-14 12:17:52 -05:00
Paul Kaplan
643d2311b6
Fix the "reverse" audio effect not working with the undo stack.
2018-07-06 09:29:39 -04:00
Ray Schamp
c8182dd5bf
Use bowser[browser name] for detection
...
Also, fix detection of IE so it works. Apparently bowser.name !== 'IE' on IE with bowser. bowser.msie works though.
2018-05-15 10:22:18 -04:00
Ray Schamp
317f11ed92
Use bowser rather than platform
...
bowser correctly detects Chrome Headless as Chrome, is already used by scratchr2, and is more actively maintained than platform.
2018-05-15 09:54:47 -04:00
Paul Kaplan
85f2aeed18
Wrap buffer.stop in try catch because safari explodes on multiple stops
2018-01-31 10:50:21 -05:00
Paul Kaplan
78be69bec1
Use fixed 44k sample rate for webkitOfflineAudioContext.
...
It claims to support other sample rates, as the spec requires, but it
does not.
2018-01-31 10:48:43 -05:00
Paul Kaplan
15fdab9099
Use ponyfill for get user media promise
2018-01-11 10:09:55 -05:00
chrisgarrity
3ddb26deff
Support IE just enough to show unsupported modal ( #1213 )
...
* Added object.assign polyfill
* Fix IE load failure
Don’t call `(window.AudioContext || window.webkitAudioContext)()` if platform is IE
Catch any other errors, and display Browser unsupported in error-boundary.
If for some reason there are no other errors (unlikely), preview-modal will still check for IE and show the unsupported modal.
Polyfilling Object.assign is enough to get through load and show the modal for IE. We can always switch to `babel-polyfill` if there are others needed later, but for now this is smaller.
2018-01-10 10:13:59 -05:00
Paul Kaplan
4dfa89f0a0
Use callback method and vendor prefix offline audio contexts
2017-08-15 09:18:21 -04:00
Paul Kaplan
70587a3f2e
Use StartAudioContext to fix mobile safari audio contexts
2017-08-15 09:18:21 -04:00
Paul Kaplan
4fe264e924
Fix all lint warnings except todo comments (including a bug!)
2017-08-13 12:59:41 -04:00
Paul Kaplan
b03e23740d
Merge branch 'develop' into sound-editor--effects-backend
2017-08-11 10:30:45 -04:00
Paul Kaplan
a5bc0c70da
Update compressors
2017-08-09 14:02:05 -04:00
Paul Kaplan
ef319f149c
Remove unneeded comments
2017-08-09 13:35:45 -04:00
Paul Kaplan
a3a6c72577
Adjust sound effects to playtest levels
2017-08-09 13:35:00 -04:00
Paul Kaplan
d1014d299d
Add audio effects and container test
2017-08-04 12:21:45 -04:00
Paul Kaplan
97aa1fd7ad
Add polyfill for getFloatTimeDomainData
2017-08-03 14:47:31 -04:00
Paul Kaplan
a5587a9258
Add tests for audio utils
2017-07-21 10:08:33 -04:00
Paul Kaplan
1f7c6ad0d2
Move more logic to audio utils
2017-07-21 10:08:33 -04:00
Paul Kaplan
6155ddfc2e
Update require, import and export syntax
2017-07-21 10:08:33 -04:00
Paul Kaplan
e7166851d8
Separate rms calculation into utility to use for sound editor also
2017-07-21 10:08:32 -04:00
Paul Kaplan
ca8b48b328
Make buffer player consume sample rate to allow for different sample rates
2017-07-21 10:08:32 -04:00
Paul Kaplan
8a10c04f42
Add import/export rules and fix lint errors
2017-07-21 08:58:24 -04:00
Paul Kaplan
5a82459ee8
Cleanup audio buffer player
2017-07-10 08:55:55 -04:00
Paul Kaplan
b3d0a1c653
Move to using 0-1 instead of 0-100 range for trim
2017-07-10 08:55:55 -04:00
Paul Kaplan
1a2f06da8a
Add playhead
2017-07-10 08:55:17 -04:00
Paul Kaplan
e0c95ccc7b
Add trimmer
2017-07-10 08:55:17 -04:00
Paul Kaplan
febaac81b3
Merge pull request #504 from paulkaplan/disable-record-before-mic
...
Disable record button before mic access is given
2017-07-07 12:58:59 -04:00
Paul Kaplan
45e60e1854
Make sure not to call callbacks after being disposed
2017-07-06 17:06:38 -04:00
Paul Kaplan
6a940c7f73
Disable record button before mic access is given
2017-07-06 10:57:19 -04:00
Paul Kaplan
df5d8bc8a5
Convert requires to import
2017-06-30 15:14:05 -04:00
Andrew Sun͈̮
4d3be0c75f
Actually make it work
2017-06-29 10:33:08 -04:00
Andrew Sun͈̮
5162c6c175
Satisfy linter
2017-06-29 10:08:52 -04:00
Andrew Sun͈̮
52441bbb51
Fix AudioContext issue in Safari
2017-06-28 18:59:04 -04:00
Paul Kaplan
ee45508cc0
Classify and cleanup
2017-06-26 17:06:57 -04:00
Paul Kaplan
ba706f249a
Refactor auto trim code
2017-06-23 12:59:10 -04:00
Paul Kaplan
a44eb158a4
Refactor using static assets
2017-06-23 12:40:20 -04:00
Paul Kaplan
5ce93bc3bd
Record mono
2017-06-22 17:20:48 -04:00
Paul Kaplan
059726d626
Remove unused code from audio recorder
2017-06-22 16:34:02 -04:00
Paul Kaplan
dca9e70ced
Add recorder and playback
2017-06-22 15:07:41 -04:00