This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Copyright (c) 2019 - Peter Johan Salomonsen - All rights reserved | |
*/ | |
global.bpm = 110; | |
global.pattern_size_shift = 4; | |
// global.looptimes = 100; | |
// soloInstrument('bass'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
global.bpm = 120; | |
global.pattern_size_shift = 4; | |
global.WASM_SYNTH_LOCATION = 'https://gist.githubusercontent.com/petersalomonsen/e49e3b861b57a9bbb8769b7cace43311/raw/08b47509211dbec1f578bb9590dd7b03b3084e2d/grooveisinthecode.wasm'; | |
// global.looptimes = 100; | |
/*soloInstrument('pad1'); | |
soloInstrument('pad2'); | |
soloInstrument('pad3');*/ | |
// soloInstrument('lead1'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* "WASM song" | |
* Copyright (c) 2019-2020 - Peter Johan Salomonsen - All rights reserved | |
*/ | |
global.bpm = 123; | |
global.pattern_size_shift = 4; | |
// global.looptimes = 100; | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Copyright (c) 2019 - Peter Johan Salomonsen - All rights reserved | |
*/ | |
global.bpm = 110; | |
global.pattern_size_shift = 4; | |
var pianoVoices = []; | |
for(let n=1;n<=8;n++) { | |
pianoVoices.push('piano'+n); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { StereoSignal } from "../synth/stereosignal.class"; | |
import { Freeverb } from "../fx/freeverb"; | |
import { DelayLine } from "../fx/delayline"; | |
import { SAMPLERATE } from "../environment"; | |
import { TriBandStereoCompressor } from "../fx/tribandstereocompressor"; | |
import { EQBand } from "../fx/eqband"; | |
import { SubPiano } from "../instruments/piano/subpiano"; | |
import { Kick2 } from "../instruments/drums/kick2.class"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
./node_modules/.bin/asc -O3 --use Math=JSMath --runtime none test.ts -o test.wasm | |
node test.js |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* | |
* "4klang first attempt" - originally made for 4klang, remake for livecode wasm env. | |
* | |
* Copyright (c) 2019-2020 - Peter Johan Salomonsen - All rights reserved | |
* | |
*/ | |
global.bpm = 106; | |
global.pattern_size_shift = 4; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// SONGMODE=PROTRACKER | |
import { writeMod, cmd, clr } from './lib/protrackermodwriter.js'; | |
import { createSamples } from './lib/instrumentgenerator.js'; | |
import { createSampleEcho, insertNotesIntoPattern, insertSampleNotesIntoPattern, toPatternArray, createEmptyPatternArray } from './lib/patterntools.js'; | |
onmessage = function(msg) { | |
const samples = createSamples(msg.data.WASM_SYNTH_BYTES, [ | |
(instance) => { | |
instance.setChannelValue(0, 69 - (12 )); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// SONGMODE=YOSHIMI | |
setBPM(80); | |
createTrack(0).steps(4, [ | |
e3 | |
]); | |
createTrack(2).play([[ 3.51, e6(0.50, 59) ], | |
[ 4.00, d6(0.46, 65) ], |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE Yoshimi-data> | |
<Yoshimi-data Yoshimi-author="Alan Ernest Calvert" Yoshimi-major="1" | |
Yoshimi-minor="6"> | |
<INFORMATION> | |
<string name="XMLtype">Parameters</string> | |
</INFORMATION> | |
<BASE_PARAMETERS> | |
<par name="max_midi_parts" value="16" /> | |
<par name="max_kit_items_per_instrument" value="16" /> |
OlderNewer