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
Eric Rosenbaum
b70607d659
comments
2017-01-31 18:35:06 -05:00
Eric Rosenbaum
c564ca5b90
remove unused function
2017-01-31 18:34:56 -05:00
Eric Rosenbaum
088efdeb0e
sounds track playing state
2017-01-30 18:13:18 -05:00
Eric Rosenbaum
7f741a509c
sounds stop and restart when played again
2017-01-30 18:12:52 -05:00
Eric Rosenbaum
0742e8e0b0
update comments
2017-01-30 11:27:05 -05:00
Eric Rosenbaum
bee8210764
use promise on playback finished
2017-01-30 11:26:55 -05:00
Eric Rosenbaum
002a378d97
soundplayers are explicitly connected to output node when created
2017-01-30 11:25:43 -05:00
Eric Rosenbaum
42f231858a
effects are managed by vm target and audio engine
2017-01-30 11:24:55 -05:00
Eric Rosenbaum
263f614ef8
pitch effect is applied to active sound players array
2017-01-30 11:18:28 -05:00
Eric Rosenbaum
c9029396c6
state of effects, volume and instrument managed by target in vm
2017-01-30 11:17:18 -05:00
Eric Rosenbaum
7b07d150da
set instrument moved to target in vm
2017-01-30 11:14:07 -05:00
Eric Rosenbaum
8557c4a7ab
audio engine manages play note and beat timing
2017-01-30 11:13:34 -05:00
Eric Rosenbaum
e1d478244d
audioengine loads sounds indexed by md5
...
audioplayers store list of their own active sound players indexed by md5 of the sound. sound players are created when the sound is played, deleted when it ends, and removed from the list of active sound players. the pitch effect uses this list of active sound players to set their playback ratios.
2017-01-30 11:09:45 -05:00
Eric Rosenbaum
a150f018b5
comments
2017-01-30 10:59:03 -05:00
Eric Rosenbaum
b32ee9267b
properties for number of instruments and drums for use by vm
2017-01-11 11:40:35 -05:00
Eric Rosenbaum
3c520d6e10
converesion from one-indexing to zero-indexing happens in vm
2017-01-11 11:26:03 -05:00
Eric Rosenbaum
ad81e1d3de
load and play drum sounds from drumplayer
2017-01-10 18:05:29 -05:00
Eric Rosenbaum
ca8bc2b45d
move global tempo setting to audio engine
2017-01-10 18:04:54 -05:00
Eric Rosenbaum
b540c8ec7b
remove commented code
2017-01-10 18:04:13 -05:00
Eric Rosenbaum
e2255bbbbf
comments
2017-01-10 18:04:01 -05:00
Eric Rosenbaum
c54fc0f154
comments
2017-01-10 18:03:15 -05:00
Eric Rosenbaum
703502cfbb
add stopall function for instruments and drums
2017-01-10 18:02:45 -05:00
Eric Rosenbaum
193a9f181b
initial experiment with drumplayer (
2017-01-10 11:35:03 -05:00
Eric Rosenbaum
85489d8a95
add drum sound samples from scratch 2.0
2017-01-10 11:05:47 -05:00
Eric Rosenbaum
0a55312899
change function name to playNoteForSecWithInst
2017-01-10 11:01:36 -05:00
Eric Rosenbaum
a1c31c3f4b
send duration in sec to instrumentplayer
2017-01-10 11:00:22 -05:00
Eric Rosenbaum
03d78a203b
fix beatsToSec function (was getting millis)
2017-01-10 10:59:55 -05:00
Eric Rosenbaum
6948968a85
lint
2017-01-09 21:33:31 -05:00
Eric Rosenbaum
0bd84dd9a6
fix changeTempo to set global tempo
2017-01-09 21:30:23 -05:00
Eric Rosenbaum
d8ab835901
move play note functionality to InstrumentPlayer
2017-01-09 21:28:51 -05:00
Eric Rosenbaum
2058b2dd19
single tempo owned by audioengine
2017-01-09 15:56:59 -05:00
Eric Rosenbaum
9b3119c96e
comments
2017-01-09 15:54:21 -05:00
Eric Rosenbaum
2ca88c880e
play note and play drum return a promise to wait some number of beats
2017-01-08 18:57:51 -05:00
Eric Rosenbaum
4cefe6d2ad
set, change, and report volume
2017-01-08 18:57:10 -05:00
Eric Rosenbaum
a6bb22b90a
fix effect names
2017-01-08 18:56:10 -05:00
Eric Rosenbaum
082be2689d
comments
2017-01-08 18:55:37 -05:00
Eric Rosenbaum
3a9e6b8634
check if no sound at index before playing
2017-01-08 18:38:18 -05:00
Eric Rosenbaum
9731a58f0b
change package name to scratch-audio
2017-01-06 10:02:28 -05:00
Eric Rosenbaum
10cd3a2c31
separate out main audioengine from audioplayer for each clone
2017-01-04 18:34:11 -05:00
Eric Rosenbaum
b99b639cd2
set wet value for echo to 0.5
2017-01-04 15:30:20 -05:00
Eric Rosenbaum
792a7ca953
comments
2016-12-22 23:17:55 -05:00
Eric Rosenbaum
c71ccbb020
log
2016-12-05 14:22:15 -05:00