We often use our Volca FM synth to create sounds and soundtracks for creative projects.
To help assist with sound design, we often utilize the Synthmata Volca FM tool, which is a free online patch editor for Volca FM + DX7 created by oscillatorsink.
And for us, sometimes we just want a completely random patch. To facilitate this, we created a simple UserScript that generates a new, random patch when you click the New Patch button:
// ==UserScript==
// @name Randomize Inputs for Synthmata Volca FM
// @namespace https://synthmata.com/volca-fm/
// @version 0.2
// @description Randomizes the values of certain inputs on a webpage
// @author asimpleart.com
// @match *://synthmata.com/volca-fm/
// @grant none
// ==/UserScript==
function setRandomValues() {
let inputs = document.getElementsByClassName("randomizerParameter");
for (let i = 0; i < inputs.length; i++) {
let min = 10;
let max = 79;
inputs[i].value = Math.floor(Math.random() * (max - min + 1)) + min;
}
}
//Attach this event to the random_newpatch button
document.getElementById("random_newpatch").addEventListener("click", setRandomValues);
//Add a key binding, press 1 to generate a new patch
document.addEventListener('keydown', (event) => {
if (event.key === '1') {
random_newpatch.click();
}
});
We hope others may find this little hack useful. Just load up the script in your favorite UserScript extension (we use TamperMonkey) and you’re all set.