Randomizer for Zebra, ZebraCM, MFM2...

Official support for: u-he.com
Post Reply New Topic
RELATED
PRODUCTS

Post

groundhum wrote:
I think this will do it (unless I screwed up something).

Code: Select all

int pitchClass[8] = {0, 2, 4, 5, 7, 9, 11, 12};
int sign;

for ( int i = 0; i < 16; i++ )
{
    sign = rand(0,1);
    if (sign == 0) sign = -1;
    VoiceCircuit.Parameter[ 25 + i * 7 ] = pitchClass[rand(0,7)] * sign;
}
Nice. Thanks. For some reason that only returns negative values (something wrong with the if structure maybe?). In any case, just putting the negatives in the pitchClass array works.

Edit:
oops, just realized the negative values aren't symmetrical (duh!). Here's the right array:

Code: Select all

 
int pitchClass[ 15 ] = {-1, -3, -5, -7, -8, -10, -12, 0, 2, 4, 5, 7, 9, 11, 12}; 

for ( int i = 0; i < 16; i++ )
{

      VoiceCircuit.Parameter[ 25 + i * 7 ] = pitchClass[rand(0, 15)]; 
}
Pretty handy little script. Thanks again.

Post

You might try

Code: Select all

if (sign == 0) 
{
   sign = -1;
}
Urs "highly recommends" curly braces to help the compiler. It could also be that rand() needs a larger range to get away from 0. I'd poke at it, but I'm lazy.
Most people wouldn't know good music if it bit them in the ass. –FZ

Post

Is there any current / working URI for randomizer? It seems that all URIs here as in the preset area of u-he gives 404.

thanks you guys ß)

Niels.
---
((d^b))
dettenbach audio
http://dettenbach.com

B+B patches for Novation Peak:
http://dettenbach.com/sounds/synthesize ... ation_peak

Post


Post

Yep, that one seems to work.

Post

Thanks very much for this Urs. May I ask, what is the difference in application between the randomize.h2p and randomizeNoNoise.h2p?

Post

LFO8 wrote:Thanks very much for this Urs. May I ask, what is the difference in application between the randomize.h2p and randomizeNoNoise.h2p?
I don't remember… :oops:

Post

LFO8 wrote:Thanks very much for this Urs. May I ask, what is the difference in application between the randomize.h2p and randomizeNoNoise.h2p?
Looking at the scripts themselves, the only difference between Randomize.h2p and RandomizeNoNoise.h2p is the following:
RandomizeNoNoise.h2p wrote:#cm=Noise1
Vol=0.00
The volume amount for noise is always set to zero. That's probably most useful on devices other than Zebra2 where you can simply remove the noise module from the grid.

Post

Thanks guys.

Post

Hi!

I am using these scripts in Zebralette and Tyrell with uncommented "for wierd stuff" block for full randomization (need this for spectral effects randomization). Works well, but there is one annoying thing - after I close the plugin window and reopen it, it changes the size of GUI to random as well!

Does anyone know how to fix/block this from happening?

Post

AUTO-ADMIN: Non-MP3, WAV, OGG, SoundCloud, YouTube, Vimeo, Twitter and Facebook links in this post have been protected automatically. Once the member reaches 5 posts the links will function as normal.
I was about to get in touch with u-he via the support info, to ask if there was a way to randomise parameters in bulk = found this old thread and seems the patchlib is still up and working.. had some fun with it already!

@sekka - I also get random gui pages / sizes, etc in zebra2.. but for me this isn't much of an issue as I plan to trigger the randomise function with the gui in the background, and then record in realtime the live output to capture those happy accidents.

I am having one issue of 'silence' in Zebra2 though - anybody else having this same issue?

When I uncomment the last section:

Code: Select all (#)

// uncomment next block for really wild stuff!


int a = Global.numParameters;

for ( int i = 0; i < a; i++ )
{
	float mn = Global.Parameter[ i ].min;
	float mx = Global.Parameter[ i ].max;

	Global.Parameter[ i ] = rand( mn, mx );

}
After loading this preset once or twice, I'll usually get a sound or two, and then a 3rd time loading the preset I get silence. From here, even when trying to load another preset, or 'init' patch, the synth is silent.. no sound whatsoever, and so I have to remove the vst, load a new instance.

Not sure if there's a bunch of parameters I can add to prevent the randomisation affecting the parameters which are causing this?

Diva seems to let me repeatedly load the preset and produces sounds.. so perhaps it's zebra specific?

Post

I also had issues with silence (in Zebralette), made some corrections to the file and now get them not so often. Try this code, it basically resets some values:

Code: Select all

#defaults=no
<?

	// edit next line to set percentage

float percentage = 25;




	// off we go!

int fractionalType = 1;

int startParam = 1;

int endParam = Global.numParameters;

for ( int i = startParam; i < endParam; i++ )
{
	if ( Global.Parameter[ i ].type == fractionalType )
	{
		float range = Global.Parameter[ i ].max - Global.Parameter[ i ].min;
	
		int change = rand( -range, range ) * percentage / 100.0;
		
		float value = Global.Parameter[ i ] + change;
	
		if ( value > Global.Parameter[ i ].max )
		{
			value = Global.Parameter[ i ].max;
		}
		
		if ( value < Global.Parameter[ i ].min )
		{
			value = Global.Parameter[ i ].min;
		}
		
		Global.Parameter[ i ] = value;
	}
}

// uncomment next block for really wild stuff!


int a = Global.numParameters;

for ( int i = 0; i < a; i++ )
{
		
	float mn = Global.Parameter[ i ].min;
	float mx = Global.Parameter[ i ].max;

	Global.Parameter[ i ] = rand( mn, mx );
}



?>

#AM=Zebralette
#Vers=10003
#Endian=little
#nm=13
#ms=none
#ms=ModWhl
#ms=PitchW
#ms=Breath
#ms=Xpress
#ms=LfoG1
#ms=Gate
#ms=Velocity
#ms=Pressure
#ms=KeyFollow
#ms=Env1
#ms=MSEG1
#ms=Lfo1
#nv=2
#mv=Gate
#mv=Env1
#cm=main
CcOp=104.79
#LFOG=1
#ModFX1=1
#Delay1=1
#cm=PCore
#SBase=4
#Swing=0.00
#STrig=1
#PSong=1
#PFold=0
#PFile=1
#GFile=2
#ChLay=0
#SurrO=1
#cm=LFOG
#Sync=4
#Trig=0
#Wave=0
#Phse=0.00
#cm=VCC
#LFO1=1
#OSC1=1
#Voices=1
#Mode=0
#Porta=0.00
PB=2
PBD=2
Drft=1
MTunS=0
MTunN=3
MTunT=4
Trsp=-12
FTun=0.00
#cm=ENV1
#Mode=0
#iMode=0
#sMode=0
init=0.00
Atk=0.00
#Dec=50.00
#Sus=80.00
#SusT=0.00
#Sus2=0.00
#Rel=15.00
#Vel=30.00
#V2I=0.00
#V2A=0.00
#V2D=0.00
#V2S=0.00
#V2FR=0.00
#V2S2=0.00
#V2R=0.00
#K2I=0.00
#K2A=0.00
#K2D=0.00
#K2S=0.00
#K2FR=0.00
#K2S2=0.00
#K2R=0.00
#Slope=0.00
#TBase=0
#cm=MSEG1
TmUn=1
#Env=5
#Vel=0.00
#Atk=0.00
#Lpt=0.00
#Rel=0.00
Trig=0
#cm=LFO1
#Sync=3
#Trig=0
#Wave=0
#Phse=0.00
#Dly=0.00
#DMS1=1
#DMD1=0.00
#Rate=0.00
#FMS1=0
#FMD1=0.00
#cm=OSC1
#Wave=0
Tune=12.00
KeyScl=100.00
#TMSrc=0
#TMDpt=0.00
#Phse=0.00
#PhsMSrc=0
#PhsMDpt=0.00
#WNum=5.00
#WPSrc=11
#WPDpt=0.00
#VtoD=0.00
#Curve=6
Prec=5.00
#FX1Tp=0
#SFX1=0.00
#FX1Sc=0
#FX1Dt=0.00
#FX2Tp=0
#SFX2=0.00
#FX2Sc=0
#FX2Dt=0.00
#Poly=0
#Dtun=0.00
KVsc=7
Vol=100.00
VolSc=0
VolDt=0.00
Pan=0.00
PanSc=0
PanDt=0.00
#Sync=0.00
#SncSc=0
#SncDt=0.00
#SncOn=0
#PolW=50.00
#PwmOn=0
WaTb=8
RePhs=0
#Norm=50.00
Rend=0
#cm=VMix
Pan=0.00
Vol=50.00
VCA=1
ModSrc=0
ModDpt=0.00
PanSrc=0
PanDpt=0.00
#cm=ModFX1
#Mode=0
#Cent=20.00
#Sped=50.00
#PhOff=50.00
#Dpth=50.00
#FeeB=0.00
#Mix=0.00
#LCut=0.00
#HCut=100.00
#Quad=0.00
#Qphs=25.00
#Leq=0.00
#Heq=0.00
#Q1=0.00
#Q2=0.00
#EQon=1
#cm=Delay1
#Mode=0
#Mix=0.00
#FB=10.00
CB=25.00
#LP=100.00
#HP=0.00
#Drv=0.00
#Sync1=4
#Sync2=4
#Sync3=4
#Sync4=4
#T0=100.00
#T1=100.00
#T2=100.00
#T3=100.00
#Pan1=-100.00
#Pan2=100.00
#Pan3=-100.00
#Pan4=100.00
#cm=ZMas
OSC1=9
MSEG1=10

Post

Caution, these randomizer scripts are currently a bit broken, they can even lead to crashes. The priority to fix this wasn't very high since they didn't seem to be very popular anymore, but we will eventually get to fix these issues.

Post

This is a really cool feature for sound effects :tu:

Post

Hello,
I am trying to use the Random XY on latest Zebra 2 install but nothing happens on the XY Pads, knobs or values.

How can this work?
Thank you!

Post Reply

Return to “u-he”