Randomizer for Zebra, ZebraCM, MFM2...
- u-he
- Topic Starter
- 30188 posts since 8 Aug, 2002 from Berlin
Eeeek. I've found a little bug here. The parameter name would be "VoiceCircuit.Arp Step ModA" so it contains 2 spaces... and the scripting language doesn't allow for spaces within identifiers (no language does I guess)...
I gotta change the scripting thing so that it would still be recognized if one wrote VoiceCircuit.ArpStepModA without the spaces...
You could still do it by finding the right parameter numbers, such as VoiceCircuit.Parameter[ 25 ]...
wait... got it... next post
I gotta change the scripting thing so that it would still be recognized if one wrote VoiceCircuit.ArpStepModA without the spaces...
You could still do it by finding the right parameter numbers, such as VoiceCircuit.Parameter[ 25 ]...
wait... got it... next post
- u-he
- Topic Starter
- 30188 posts since 8 Aug, 2002 from Berlin
Code: Select all
#defaults=no
<?
// random notes
for ( int i = 0; i < 16; i++ )
{
VoiceCircuit.Parameter[ 25 + i * 7 ] = rand(-12, 12);
}
// random gates
for ( int i = 0; i < 16; i++ )
{
VoiceCircuit.Parameter[ 24 + i * 7 ] = rand(0, 6);
}
// random duration
for ( int i = 0; i < 16; i++ )
{
VoiceCircuit.Parameter[ 27 + i * 7 ] = rand(0, 3);
}
// random step
for ( int i = 0; i < 16; i++ )
{
VoiceCircuit.Parameter[ 28 + i * 7 ] = rand(0, 3);
}
// random number of voices
for ( int i = 0; i < 16; i++ )
{
VoiceCircuit.Parameter[ 26 + i * 7 ] = rand(0, 6);
}
// random Modulations
for ( int i = 0; i < 16; i++ )
{
VoiceCircuit.Parameter[ 29 + i * 7 ] = rand(-100, 100);
VoiceCircuit.Parameter[ 30 + i * 7 ] = rand(-100, 100);
}
?>
(future versions will have to be made safer though... as the parameter index can vary from version to version)
-
- KVRist
- 186 posts since 7 May, 2004
cool...thanx for that quick random arp function
i will try out a bit later, because i was shopping and now i'm eating..quite tasty "lebberkäsbrötchen"
what i didnt inderstand is, how can someone know , that the arp is belonging to VoiceCircuit ..hmm
is there a pdf or something out there where all objects and functions are listed or am i missing something ?
do u have kind of a list urs ?
i will try out a bit later, because i was shopping and now i'm eating..quite tasty "lebberkäsbrötchen"
what i didnt inderstand is, how can someone know , that the arp is belonging to VoiceCircuit ..hmm
is there a pdf or something out there where all objects and functions are listed or am i missing something ?
do u have kind of a list urs ?
- u-he
- Topic Starter
- 30188 posts since 8 Aug, 2002 from Berlin
Guten Appetit!tengotiempo wrote:cool...thanx for that quick random arp function
i will try out a bit later, because i was shopping and now i'm eating..quite tasty "lebberkäsbrötchen"
what i didnt inderstand is, how can someone know , that the arp is belonging to VoiceCircuit ..hmm
is there a pdf or something out there where all objects and functions are listed or am i missing something ?
do u have kind of a list urs ?
Well, I of course have some sort of a list...
But usually, when you i.e. turn a knob, the value display on top not only shows teh value, but also the module name and the parameter name on the left hand side. These together form the name of the parameter object, where numbers can be used as arrays:
Oscillator1.Tune is the same as Oscillator[ 1 ].Tune
There's more to come about this... bit by bit... here:
http://www.u-he.net/scripting/
Questions can of course be asked here:
http://www.u-he.net/audev/
It'll eventually get some pace some time soon...
-
- KVRist
- 186 posts since 7 May, 2004
just in case u will have a look here again, urs
the FMO1 for example is not reachable via script as well i think, because of the "space" between FM and Ocs1
not sure if i'm right, but i've tried out several spellings...
just writing that to prevent u from forgetting something
the FMO1 for example is not reachable via script as well i think, because of the "space" between FM and Ocs1
not sure if i'm right, but i've tried out several spellings...
just writing that to prevent u from forgetting something
-
- KVRian
- 743 posts since 14 Apr, 2004
Thank you Urs, that's cool..Urs wrote: Random Arpeggiator. Customize to taste![]()
(future versions will have to be made safer though... as the parameter index can vary from version to version)
But, as asked via pm....can you let me know a way to write an .h2p file with textedit without having the rtf file format??
- u-he
- Topic Starter
- 30188 posts since 8 Aug, 2002 from Berlin
tengotiempo wrote:just in case u will have a look here again, urs
the FMO1 for example is not reachable via script as well i think, because of the "space" between FM and Ocs1
not sure if i'm right, but i've tried out several spellings...
just writing that to prevent u from forgetting something
Fixed in the next update
You could of course reach them over the module ID or simply the parameter ID, but d'oh... there's no list yet, indeed!
Later,
- u-he
- Topic Starter
- 30188 posts since 8 Aug, 2002 from Berlin
I'd recommend BBEdit... but... I was hoping that there was still a BBEdit Lite... unfortunately one gets only BBEdit Pro anymore?raikard233 wrote:But, as asked via pm....can you let me know a way to write an .h2p file with textedit without having the rtf file format??
Maybe someone knows a good free Texteditor for Mac which does *not* add ".txt" or any such suffix to every file automatically?
Sigh...
-
- KVRian
- 743 posts since 14 Apr, 2004
Just found TextWrangler from the BBEdit website, it works.Urs wrote: I'd recommend BBEdit... but... I was hoping that there was still a BBEdit Lite... unfortunately one gets only BBEdit Pro anymore?
Maybe someone knows a good free Texteditor for Mac which does *not* add ".txt" or any such suffix to every file automatically?
Sigh...
Urs
Thanx!
http://www.barebones.com/products/textw ... load.shtml
-
- KVRist
- 103 posts since 12 Jan, 2007
yep, this is basically what has become of BBEdit Lite. pretty damn nice for a freebie!raikard233 wrote:Just found TextWrangler from the BBEdit website, it works.
http://www.barebones.com/products/textw ... load.shtml
-
- KVRist
- 178 posts since 16 Nov, 2006
Randomizer seems to be working here with Zebra2 CM on my system. Thanks Urs. 
Mac Pro Quad 2.66 GHz. 9GB RAM
Snow Leopard 10.6.8/Pro Tools 8.0.5/Digi 002R
Live 9.1
Predator, Subboombass
Snow Leopard 10.6.8/Pro Tools 8.0.5/Digi 002R
Live 9.1
Predator, Subboombass
-
- KVRian
- 930 posts since 21 Mar, 2006
Is there any functionality planned that'll make loading scripts easier? Right now I need to save the scripts in every directory so I can easily load it, and also easily save the new preset in the same directory as its humble beginnings. A scripts column in the preset-tab would be great, I think.

- u-he
- Topic Starter
- 30188 posts since 8 Aug, 2002 from Berlin
Well, let's say... "sure - if it takes off"Mighty Pea wrote:Is there any functionality planned that'll make loading scripts easier? Right now I need to save the scripts in every directory so I can easily load it, and also easily save the new preset in the same directory as its humble beginnings. A scripts column in the preset-tab would be great, I think.
Currently I wouldn't want to do too much about it. There should be a few more scripts before anything happens... but then I was thinking about function-menus that can hold scripts specific to modules.
We'll see...
- KVRist
- 136 posts since 14 Jul, 2006 from Berlin, Germany
Great little stuff, Urs!
Thanx...
What's this Zebra2 CM Stuff about? Are there TWO versions of them???
Anyway, stripes rocks...
ganym3d
Thanx...
What's this Zebra2 CM Stuff about? Are there TWO versions of them???
Anyway, stripes rocks...
ganym3d
Lenovo_L412_i5-520m_@_2.4GHz|8GB_RAM|120GB_SSD|128GB_extMemory|Win_7|Live_9.7.7|volca_sample|Novation_Launchpad_Mk2-Launch Control_XL_Mk2-Audiohub_2x4-Circuit|Kaoss_Pad_Mini_2S|Allen&Heath_ZEDi-10|various_PlugIns|Tab_A6|Mazetools_Soniface
-
- KVRist
- 31 posts since 19 May, 2008
yeah, thanks from me also for the randomizer. Very useful, have already used it in MFM for some raw material. It's also a nice way to find the nooks and crannies of any particular Zebra patch, it gave me some different looks at some recent new patches I've been messing with.
-mm
-mm
