subnaut;1470295 wrote:Based on the thread
REndomPatch - Free patch generator for Mac! which was already based on the thread
Redominator Random Repatch Generator, I have created a multiplatform script to generate Rack Extension patches off of other Rack Extension patches.
Update: YouTube Video Demo now up. Hopefully this helps anyone who might've been intimidated to try it out
https://www.youtube.com/watch?v=3zvtYTofjMw
Requirements:
------------------------------------------------------------
1) PERL must be installed. For Windows, I used:
http://strawberryperl.com/. You honestly just download and double-click.
2) You must have JoshuaPhilgarlic's definition files here:
http://znarfelectronix.de/rendompatch/definitions.zip. The patch assumes they are located in a subfolder called "Definitions" within the same folder as the script is run. You can change this by editing the script in a text editor.
3) You must have a patch to modify. This script does not generate patches from scratch. If you want to make brand new patches do this
a) Load Rack Extension
b) Reset Device
c) Save the "Init Patch.repatch"
d) Run the script on the Init Patch with maximum randomness
e.g.
perl repatch.pl Revival "Init Patch.repatch" 100 100
------------------------------------------------------------
Usage:
------------------------------------------------------------
It is actually very simple to use. But I will explain in detail so you know all options. If you have ever run a perl script before or really any type of script, just run:
perl repatch.pl RackExtensionName BasePatchName.repatch [randchance] [randdegree]
(Windows):
1) Open Windows Command Prompt. Start Menu -> Command Prompt or Start Menu -> cmd.exe
2) Navigate to the directory where you saved the script and definitions
cd C:\Users\default.default-PC\Documents\Reason\REpatch
3) Execute the program by typing the command syntax into the Command Prompt
C:\Users\default.default-PC\Documents\Reason\REpatch>perl repatch.pl Revival "Revival Hawaiian Organ.repatch" 30 30
The first number is the percent chance any given parameter will be modified (or stay completely untouched). Said differently, it is the percentage of parameters on the device that will be modified.
The second number is the amount any given parameter will be modified. 100 means it can be modified to any value within it's minimum and maximum range. Lower numbers will keep it closer to the value it's already at.
You do not have to enter the numbers. The default settings are stored in the script and are 30 30. You can also change the default values in the script, if you find you are using certain random values quite frequently and don't want to type them every time.
If you open the program in a text editor you can read more about the arguments and flags, and you can change certain variables (such as path to the Definitions folder) to set it more to your liking.
------------------------------------------------------------
Download:
------------------------------------------------------------
https://www.dropbox.com/s/clrpwayus3eyyqj/repatch.pl
------------------------------------------------------------
Edit: P.S.
Currently I have tested this with Revival, PX7, and Antidote. I assume it works with all of JoshuaPhilgarlic's definition files, but I don't have the other Rack Extensions to test it with.
Also, I realize one part in particular in the script is highly inefficient, but it really doesn't matter with modern computers. If you want to improve the script, you are by all means welcome to.
Also, as with JoshuaPhilgarlic's project. If anyone wants to create additional definition files using the same format, this script should be able to create patches for them without any further modification.
--
Update: If you are using the script for new patches, instead of mutations, spktkpkt has created an interactive version (less need for command line options). See post #9 for explanation and download link.