Skip to content

Commit

Permalink
starting audio context on iOS (Days 16-20)
Browse files Browse the repository at this point in the history
  • Loading branch information
stc committed Jan 9, 2019
1 parent 01273c4 commit cd20f65
Show file tree
Hide file tree
Showing 19 changed files with 3,566 additions and 3,444 deletions.
5 changes: 5 additions & 0 deletions Day-16-Granular-Separation/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions Day-16-Granular-Separation/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
"dependencies": {
"@tensorflow/tfjs": "^0.13.4",
"p5": "^0.7.2",
"startaudiocontext": "^1.2.1",
"tfjs": "^0.6.0",
"tone": "^0.12.80"
}
Expand Down
2 changes: 2 additions & 0 deletions Day-16-Granular-Separation/src/index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import p5 from 'p5/lib/p5.min';
import Tone from 'tone';
import StartAudioContext from 'startaudiocontext';

const sketch = (p) => {
var speed = 0.001;
Expand Down Expand Up @@ -82,6 +83,7 @@ const sketch = (p) => {

p.mousePressed = () => {
//sampler.detune = p.ceil(p.random(4)) * 1000;
StartAudioContext(Tone.context).then(function(){});
}

function newVec(x,y) {
Expand Down
12 changes: 9 additions & 3 deletions Day-17-Cellular-Structure/dist/main.js

Large diffs are not rendered by default.

Loading

0 comments on commit cd20f65

Please sign in to comment.