Commit Graph
598 Commits
Author SHA1 Message Date
Eric Rosenbaum 76a475c31c cast args to numbers 2017-01-10 18:00:33 -05:00
Eric Rosenbaum 3344c92f7e change ‘drumtype’ to ‘drum’ in specmap 2017-01-10 18:00:02 -05:00
Eric Rosenbaum f034564603 Merge branch 'develop' of https://github.com/LLK/scratch-vm into sound 2017-01-09 15:51:47 -05:00
Eric Rosenbaum 4d7ff97011 instrument number is zero-indexed inside audio engine 2017-01-09 15:48:31 -05:00
Eric Rosenbaum ce8b069140 include volume reporter 2017-01-09 15:48:02 -05:00
Eric Rosenbaum 2d7cfd128a use a single global tempo owned by audioengine 2017-01-09 15:47:29 -05:00
Eric Rosenbaum dc9126e067 Merge pull request #373 from ericrosenbaum/sound
Integrate audio engine
2017-01-06 16:28:09 -05:00
Eric Rosenbaum bd8fdad1d4 add check for audioengine 2017-01-06 16:24:16 -05:00
Eric Rosenbaum 18c88c8ee0 fix stop for audio 2017-01-06 16:14:41 -05:00
Eric Rosenbaum b88c6c96e2 initialize audio player once per sprite (not for clones) 2017-01-06 16:14:27 -05:00
Eric Rosenbaum 9980f4da3f lint 2017-01-06 16:13:43 -05:00
Eric Rosenbaum e1b6479e67 fix name of scratch-audio dependency 2017-01-06 15:18:30 -05:00
Eric Rosenbaum fec9e5b91a add audio to playground 2017-01-06 11:49:25 -05:00
Eric Rosenbaum 9350baef3b add current volume block 2017-01-06 10:31:11 -05:00
Eric Rosenbaum dbe2cef93c move promise into audio engine
changes to play note, play drum and rest blocks so their promises to wait are returned by the audio engine
2017-01-06 10:31:01 -05:00
Eric Rosenbaum 4298f4865f remove outdated audio from playground 2017-01-06 10:27:59 -05:00
Eric Rosenbaum c0d57b4b6b separate out main audioengine from audioplayer for each clone 2017-01-04 18:37:55 -05:00
Eric Rosenbaum 5a1386f727 remove redundant type check 2017-01-04 14:42:00 -05:00
Eric Rosenbaum 3bf9238e0c treat numeric input to sound name as 1-indexed 2017-01-04 14:41:14 -05:00
Eric Rosenbaum 7a49a3ae43 lint 2017-01-03 23:41:49 -05:00
Andrew Sliwinski 5daaaa4438 Merge pull request #362 from thisandagain/bugfix/coverage
Add integration test coverage
2017-01-03 09:38:14 -05:00
Andrew Sliwinski bc60fa13ce Merge pull request #361 from thisandagain/bugfix/360
Fix hat blocks in horizontal grammar
2017-01-03 09:37:42 -05:00
Andrew Sliwinski f90827d5f1 Merge pull request #363 from geppy/remove-vestigial-instructions
Removed reference to `StartServerWindows.bat`
2016-12-27 21:25:10 -05:00
geppy 4eb7ed6809 Removed reference to StartServerWindows.bat 2016-12-26 23:03:55 -06:00
Andrew Sliwinski 7d5820585b Resolve lint issues 2016-12-23 21:31:00 -05:00
Andrew Sliwinski dfc6614a5b Build out integration test SB2 files 2016-12-23 21:08:13 -05:00
Andrew Sliwinski b8af7c0723 Add minimal integration tests 2016-12-23 14:09:35 -05:00
Andrew Sliwinski 4709cae4b7 Basic integration (end-to-end) testing for default project 2016-12-23 10:39:19 -05:00
Andrew Sliwinski 48721dd336 If not hat fields are not found, check inputs before continuing. Resolves GH-360 2016-12-23 09:38:18 -05:00
Eric Rosenbaum f0e01d3e87 fix name of sounds menu 2016-12-22 14:12:20 -05:00
Eric Rosenbaum f90807e8a4 add get sound index by name 2016-12-21 16:42:19 -05:00
Eric Rosenbaum f2793a1d59 Merge branch 'develop' of https://github.com/LLK/scratch-vm into sound
# Conflicts:
#	package.json
#	src/engine/runtime.js
#	src/sprites/clone.js
2016-12-21 15:29:57 -05:00
Ray Schamp 2ae9dd28b9 Merge pull request #357 from rschamp/travis-node-stable
Fix "stable" specifier for Travis
2016-12-21 09:23:07 -05:00
Ray Schamp 2569baaa59 Fix "stable" specifier for Travis
This shorthand has become unrecognized, so match the docs suggestion of "node" for the most recent stable release.
2016-12-21 09:20:18 -05:00
Ray Schamp a55a422a3e Merge pull request #353 from rschamp/feature/sprite-info
Report costume data in sprite info reports and targetsUpdate
2016-12-09 09:43:01 -05:00
Ray Schamp e9da046969 Report full sprite info in targetsUpdate
We need more than just the name for the initial render, so send everything consistent with sprite info reports.
2016-12-07 17:11:08 -05:00
Ray Schamp adaf2df743 Emit sprite info report for all sprites
This allows costume data to reach listeners even when the sprite isn't the editing target.

Filter out non-editing target reports in the playground to match previous behavior.
2016-11-30 13:21:00 -05:00
Ray Schamp ce17fdbd30 Include costume data in sprite info reports
Also emit the report on all costume changes
2016-11-30 13:19:49 -05:00
Ray Schamp 3989959ebf Merge pull request #348 from rschamp/feature/flag-glows
Add PROJECT_RUN_START/STOP events
2016-11-28 11:41:34 -05:00
Ray Schamp d00cdd6b2c Account for done threads on threadCount update
Also rename inactiveThreads -> doneThreads, since this describes them better. They are the threads that have completed in the step.
2016-11-28 10:49:05 -05:00
Ray Schamp 0003b294cb Lint 2016-11-24 10:36:30 -05:00
Ray Schamp 55ac7e269c Add PROJECT_RUN_START/STOP events
These events signal when any threads are running or when all threads have stopped running. This maps to whether the green flag or the stop button should be illuminated in the GUI.
2016-11-23 15:47:49 -05:00
Ray Schamp 2ff719f2ba Fix consistency of existing emits 2016-11-23 15:43:05 -05:00
Ray Schamp 9859c3d91a Merge pull request #335 from rschamp/feature/port
Fix dev port number
2016-11-21 14:32:44 -05:00
Ray Schamp 5b36e3cacd Fix dev port number
scratch-www: 8333
scratch-api: 8491
scratch-gui: 8601

Clearly the port should be 8073 for scratch-vm.
2016-11-21 14:25:08 -05:00
Tim Mickel 0994d3f22b Keep min and max scale in relative bounds as in Scratch 2.0 (#333) 2016-11-14 12:32:45 -05:00
Tim Mickel a767c5ec79 Keep min and max scale in relative bounds as in Scratch 2.0 2016-11-14 12:20:29 -05:00
Tim Mickel 4deee071b2 Don't copy threads in step; stable restartThread (#331) 2016-11-10 15:05:49 -05:00
Ray Schamp 867c08b495 Include dotfiles in gh-pages, so .nojekyll works 2016-11-10 14:31:45 -05:00
Ray Schamp 2c3e4536eb Merge pull request #316 from tmickel/feature/remove-empty-project
Remove empty project
2016-11-10 12:56:31 -05:00