Plug-ins, Hosts, Apps,
Hardware, Soundware
Developers
(Brands)
Videos Groups
Whats's in?
Banks & Patches
Download & Upload
Music Search
KVR
   
KVR Forum » u-he
Thread Read
Randomizer for Zebra, ZebraCM, MFM2...
Goto page Previous  1, 2, 3, 4, 5, 6, 7, 8, 9  Next
Urs
KVRAF
- profile
- e-mail
- www
PostPosted: Thu Apr 10, 2008 6:38 am reply with quote
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
^ Joined: 07 Aug 2002  Member: #3542  Location: Berlin
Urs
KVRAF
- profile
- e-mail
- www
PostPosted: Thu Apr 10, 2008 6:40 am reply with quote

#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);
   }
   
?>


Random Arpeggiator. Customize to taste Very Happy

(future versions will have to be made safer though... as the parameter index can vary from version to version)
^ Joined: 07 Aug 2002  Member: #3542  Location: Berlin
tengotiempo
KVRist
- profile
- pm
PostPosted: Thu Apr 10, 2008 7:09 am reply with quote
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 ?
^ Joined: 07 May 2004  Member: #24380  
Urs
KVRAF
- profile
- e-mail
- www
PostPosted: Thu Apr 10, 2008 7:27 am reply with quote
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 ?

Guten Appetit!

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...

Wink Urs
^ Joined: 07 Aug 2002  Member: #3542  Location: Berlin
tengotiempo
KVRist
- profile
- pm
PostPosted: Thu Apr 10, 2008 9:56 am reply with quote
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 Wink
^ Joined: 07 May 2004  Member: #24380  
raikard233
KVRian
- profile
- pm
- e-mail
- www
PostPosted: Thu Apr 10, 2008 10:18 am reply with quote
Urs wrote:

Random Arpeggiator. Customize to taste Very Happy

(future versions will have to be made safer though... as the parameter index can vary from version to version)


Thank you Urs, that's cool..
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?? Help
^ Joined: 14 Apr 2004  Member: #21151  Location: Rome
Urs
KVRAF
- profile
- e-mail
- www
PostPosted: Thu Apr 10, 2008 10:36 am reply with quote
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 Wink

Shit!

Fixed in the next update Cool

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,

Wink Urs
^ Joined: 07 Aug 2002  Member: #3542  Location: Berlin
Urs
KVRAF
- profile
- e-mail
- www
PostPosted: Thu Apr 10, 2008 10:47 am reply with quote
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?? Help

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...

Wink Urs
^ Joined: 07 Aug 2002  Member: #3542  Location: Berlin
raikard233
KVRian
- profile
- pm
- e-mail
- www
PostPosted: Thu Apr 10, 2008 10:57 am reply with quote
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...

Wink Urs


Just found TextWrangler from the BBEdit website, it works.
Thanx!

http://www.barebones.com/products/textwrangler/download.shtm l
^ Joined: 14 Apr 2004  Member: #21151  Location: Rome
amoeba
KVRist
- profile
- pm
PostPosted: Thu Apr 10, 2008 1:05 pm reply with quote
raikard233 wrote:
Just found TextWrangler from the BBEdit website, it works.
http://www.barebones.com/products/textwrangler/download.shtm l

yep, this is basically what has become of BBEdit Lite. pretty damn nice for a freebie!
^ Joined: 11 Jan 2007  Member: #135627  
Gothboy
KVRist
- profile
- pm
- www
PostPosted: Wed Apr 16, 2008 8:52 am reply with quote
Randomizer seems to be working here with Zebra2 CM on my system. Thanks Urs. Cool
----
Mac Pro Quad 2.66 GHz. 9GB RAM
Snow Leopard 10.6.8/Pro Tools 8.0.5/Digi 002R
Live 8.3.4
Predator, Subboombass
^ Joined: 16 Nov 2006  Member: #128695  
Mighty Pea
KVRian
- profile
- pm
PostPosted: Thu Apr 17, 2008 1:28 am reply with quote
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.
----
^ Joined: 21 Mar 2006  Member: #102329  
Urs
KVRAF
- profile
- e-mail
- www
PostPosted: Thu Apr 17, 2008 1:56 am reply with quote
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.

Well, let's say... "sure - if it takes off"

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...
^ Joined: 07 Aug 2002  Member: #3542  Location: Berlin
ganym3d
KVRist
- profile
- pm
- e-mail
PostPosted: Mon May 05, 2008 12:07 pm reply with quote
Great little stuff, Urs!

Thanx...

What's this Zebra2 CM Stuff about? Are there TWO versions of them???

Anyway, stripes rocks...

ganym3d
----
CAUTION! Bad English!
^ Joined: 14 Jul 2006  Member: #113209  Location: Berlin, Germany
mattmitch
KVRist
- profile
- pm
PostPosted: Mon May 19, 2008 4:38 pm reply with quote
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
^ Joined: 19 May 2008  Member: #180957  
All times are GMT - 8 Hours

Printable version
Page 4 of 9
Goto page Previous  1, 2, 3, 4, 5, 6, 7, 8, 9  Next
Display posts from previous:   
ReplyNew TopicPrevious TopicNext Topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Username: Password:  
KVR Developer Challenge 2012