aprilexe Posted November 13, 2017 Share Posted November 13, 2017 Im working with the MIDI to Plugin Parameter script and using velocity to trigger changes in the controls on Reveal Spire synth. Works great ! Is it possible to change the Target values from Min and Max to random or a probability/seed percentage ? Basically Im trying to make a patch randomizer. Seems like this script will work great. I changed the number of targets from 4 to 128. Learning the plugin parameters for the targets is simple. So far Ive been setting up about 10 parameter targets on Spire, playing notes at different velocity and when something interesting comes up I turn off the scripter and save the synth patch. Setting min/max values for the targets and inverting them is working well but I would like to add a random menu item. I made two scripter presets using about 40 Spire parameters each. Oscillator settings, unison and filter mainly. One uses note as the trigger and the other uses velocity. MIDI to Plugin Parameter Randomize Spire Note and Velocity.zip Quote Link to comment Share on other sites More sharing options...
ValliSoftware Posted January 2, 2018 Share Posted January 2, 2018 Here's a function I use. function RandomRange(min, max) { return parseInt(Math.random() * (max - min) + min); } To use var v = RandomRange(5, 12); v will return any number between 5 and 12 Quote Link to comment Share on other sites More sharing options...
angelonyc Posted January 13, 2018 Share Posted January 13, 2018 Nice work ValliSoftware. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.