Skip to content

Commit

Permalink
assemblyscript from npm
Browse files Browse the repository at this point in the history
  • Loading branch information
petersalomonsen committed Nov 10, 2019
1 parent 27b9981 commit becec12
Show file tree
Hide file tree
Showing 5 changed files with 26 additions and 50 deletions.
4 changes: 2 additions & 2 deletions wasmaudioworklet/synth1/assembly/index.ts
@@ -1,8 +1,8 @@
// The entry file of the synth WebAssembly module.

// --- Replace with your own mix implementation here
import { mixernext, setChannelValue, PATTERN_SIZE_SHIFT, BEATS_PER_PATTERN_SHIFT } from './mixes/protracker.mix';
export { setChannelValue } from './mixes/protracker.mix';
import { mixernext, setChannelValue, PATTERN_SIZE_SHIFT, BEATS_PER_PATTERN_SHIFT } from './mixes/webchip.mix';
export { setChannelValue } from './mixes/webchip.mix';
// -------------------------------------------------

import { SAMPLERATE } from './environment';
Expand Down
Expand Up @@ -36,7 +36,7 @@ let eqbandl = new EQBand(20, 19500);
let eqbandr = new EQBand(20, 19500);

function createInstrumentArray<T>(length: i32, factoryFunc: () => T): T[] {
const arr = Array.create<T>(length);
const arr = new Array<T>(length);
for(let n = 0; n < length;n++) {
arr[n] = factoryFunc();
}
Expand Down
68 changes: 22 additions & 46 deletions wasmaudioworklet/synth1/package-lock.json

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

2 changes: 1 addition & 1 deletion wasmaudioworklet/synth1/package.json
Expand Up @@ -5,6 +5,6 @@
},
"dependencies": {},
"devDependencies": {
"assemblyscript": "github:AssemblyScript/assemblyscript"
"assemblyscript": ""
}
}
File renamed without changes.

0 comments on commit becec12

Please sign in to comment.