View New Content

Sign In / Sign Up


First time here? Just enter your current email and sign up.
×
or

Jump to content

Photo

First Script Package for MicroTonic


42 replies to this topic

#1 Magnus Lidström

Magnus Lidström

    Advanced Member

  • Administrators
  • 426 posts

Posted 18 May 2011 - 11:26 PM

I implemented a simple scripting language in MicroTonic version 3.0 and now with the release of MicroTonic version 3.0.1 I feel that the scripting engine has matured enough to start releasing some scripts.

Before you start downloading and installing I'd like to prepare you for what you should expect from these and possible future MicroTonic scripts.

The scripts are based on a language that I developed a few years back called PikaScript (more on this in a separate post). PikaScript is a simple and robust language, but it is also very slow, so I decided not to allow scripts to run in real-time. That is, these scripts can just process patch, pattern (and MIDI configuration) data, they cannot process incoming MIDI or outgoing audio in real-time. Also, this is the first time I open up a product to scripting possibilities so I wanted to keep things extremely simple. The only way you will be able to interact with the scripts is through text input and output.

In short, these scripts are more of the nature of automating repetitive and complex UI tasks rather than providing polished and slick new features to MicroTonic. That said, if you'll take time to read the script descriptions below you'll see that some of them are actually quite creative. For instance, by utilizing some clever midi configuration options there is a script that allows you to transpose entire patterns with MIDI notes.

Here is the download: Attached File  MicroTonic Script Package 1.zip   561.43KB   611 downloads

(Notice that you have to be a registered Sonic Charge customer in order to download attachments from the forum. If you are having trouble downloading it may be because your forum email does not match the email you registered with. Please contact support.)

Windows Installation Procedure

Place the entire contents of this package into a folder with the name "MicroTonic Scripts" in the same directory as the Microtonic Drum Patches and Microtonic Presets are located. E.g. "C:\Program Files\Sonic Charge\MicroTonic Scripts".

Mac Installation Procedure

Create the folder "/Library/Application Support/Sonic Charge/MicroTonic Scripts" and place the entire contents of this package into the folder.

Script Descriptions

(The following descriptions are taken from the header comments in the source files.)

Auto Sort Drum Channels

Classifies the drum patches in the current preset using some magic neural network algorithms and then reorders the channels so that the bass drum typically lands on channel 1, the snare drum on channel 5 etc. Muted channels will be ignored.

Notice that although the neural networks are built on statistics from thousands of drum patches, they sometimes make horrible mistakes. You have to be a little understanding.

One reason for sorting presets with this script is to get a more consistent mapping of MIDI notes to drum sounds. Another reason is that the morph feature and loading of only patches / patterns may work better if the channel layouts of the different presets correlate.

You may wish to modify the RENAME_PATCHES, MARK_UNCERTAINS and ADD_INITIALS constants.

CC to All Channels

Copies the CC assignments for the currently selected channel to all (unmuted) channels, so that you can easily take control over all channels from your MIDI controller. Sort of similar to the "Edit All" button in the GUI.

Export Drum Patches

Iterates all .mtpreset files from a chosen directory and exports all their drum patches (as .mtdrum files) to another chosen directory. Useful for expanding your drum patch library with patches from Patternarium presets.

Extend Pattern

Extends the current pattern to 16 steps through repetition (only works if pattern is < 16 steps).

Generate Scale

Copies the drum patch of the current drum channel to all eight channels and transposes each channel according to a user-supplied list of semitones. This allows you to create melodic sequences with the MicroTonic pattern engine.

Half Tempo

Stretches the pattern group so that it will play at half tempo (with exception of swing and fills).

Make Transposable

Copies the currently active program to all 16 programs in MicroTonic, transposes them and configures MIDI so that you can play the transposed programs in a scale starting at A2 going up to C4.

Note Variations

Replicates the currently selected drum channel on all muted channels and then mutates them by a selectable amount. The pattern triggers are then distributed randomly between the mutated channels, thus creating random note variations within a beat.

Pick New Patches

Replaces the drum patches for all drum channels (that aren't muted) with randomly picked factory patches from the installed patch packages. Each patch will be replaced by a patch of the same category, as determined by the patch name.

E.g. a BD patch will be replaced by a new random BD patch and an SD patch will be replaced with another SD patch. If the category cannot be determined (i.e. the patch name doesn't contain a known category prefix), the patch is left untouched.

One suggestion is to run the `Auto Sort Drum Channels` script to automatically categorize the drum sounds before executing this script.

Random Morph

This script copies the current preset to the left morph edge and randomizes the right edge. You can now slowly morph from left to right to find a new preset and then run the script again.

Suggest Preset Name

Generates a random preset name using a statistical algorithm based on character sequences from an English dictionary.



All scripts are released as public domain. You may (and are encouraged) to modify them as you wish.


  • Johnny Hawk likes this

#2 Jazzyspoon

Jazzyspoon

    Newbie

  • Registered Owner
  • Pip
  • 2 posts

Posted 19 May 2011 - 01:31 PM

Working great here. Really interesting new features. having a blast with them. :)
www.jazzyspoon.com
soundcloud.com/jazzyspoon

#3 thedi

thedi

    Newbie

  • Registered Owner
  • Pip
  • 3 posts

Posted 19 May 2011 - 06:40 PM

Just downloaded the scripts, will check them soon!

#4 Sjoerd

Sjoerd

    Newbie

  • Registered Owner
  • Pip
  • 9 posts

Posted 19 May 2011 - 08:57 PM

The icon that shows up in the GUI (when you have put scripts in the proper folder) looks cool, too. :)

#5 German Fafian

German Fafian

    Newbie

  • Registered Owner
  • Pip
  • 1 posts

Posted 20 May 2011 - 04:54 AM

Excellent!!!

Been "testing" these and they work flawlessly.
Some very nice ideas coming out :)
Thanks :D

#6 Bronto Scorpio

Bronto Scorpio

    Advanced Member

  • Registered Owner
  • PipPipPip
  • 32 posts

Posted 20 May 2011 - 05:21 PM

Nice!
I'll test this after the weekend :)

Cheers
Dennis
Please excuse my bad english.
My Website (Free Stuff!)

#7 Jason

Jason

    Newbie

  • Registered Owner
  • Pip
  • 8 posts

Posted 20 May 2011 - 06:20 PM

jätteNICE! Thank you Magnus! Excellent work! :wub::unsure::wub:

#8 BoB SwanS

BoB SwanS

    Member

  • Registered Owner
  • PipPip
  • 19 posts

Posted 21 May 2011 - 10:01 AM

Great! Looking forward to playing with these!!

#9 Tronikform

Tronikform

    Newbie

  • Registered Owner
  • Pip
  • 3 posts

Posted 21 May 2011 - 01:59 PM

Thanks!

#10 Burger King

Burger King

    Newbie

  • Registered Owner
  • Pip
  • 2 posts

Posted 22 May 2011 - 03:47 AM

Created folder on my Mac and put in in application support but cant seem to get the scripts working.

#11 Burger King

Burger King

    Newbie

  • Registered Owner
  • Pip
  • 2 posts

Posted 22 May 2011 - 08:06 AM

Created folder on my Mac and put in in application support but cant seem to get the scripts working.

OOps, nevermind, just saw the new icon. :rolleyes:

#12 Bronto Scorpio

Bronto Scorpio

    Advanced Member

  • Registered Owner
  • PipPipPip
  • 32 posts

Posted 22 May 2011 - 09:27 AM

The scripts work perfectly here :)
Thanks again for these!

Cheers
Dennis
Please excuse my bad english.
My Website (Free Stuff!)

#13 Max Sokoleski

Max Sokoleski

    Newbie

  • Registered Owner
  • Pip
  • 1 posts

Posted 22 May 2011 - 12:54 PM

Works like charm here!

Stort tack ska du ha såklart.

...microtonic just got even more easy and fun to play with....the script function is a genius thing...i can see it grow and expand functionality of this already amazing drumcomputer.

#14 davea

davea

    Newbie

  • Registered Owner
  • Pip
  • 7 posts

Posted 22 May 2011 - 02:03 PM

I've just installed it & it seems very interesting and useful, will checked it out more deeply asap. Great idea and as always : keep this awesome work !

#15 ntns

ntns

    Newbie

  • Registered Owner
  • Pip
  • 5 posts

Posted 25 May 2011 - 09:09 PM

здорово просто здорово thank you very its my lovely drum synth

#16 Nebulae

Nebulae

    Newbie

  • Registered Owner
  • Pip
  • 8 posts

Posted 06 June 2011 - 04:56 PM

My goodness, talk about a tool that just keeps on giving! I think I've used MT on every track for years now...

#17 Nevzat Sarihan

Nevzat Sarihan

    Newbie

  • Registered Owner
  • Pip
  • 3 posts

Posted 06 June 2011 - 05:57 PM

great additions thank you

#18 Agi

Agi

    Member

  • Registered Owner
  • PipPip
  • 10 posts

Posted 08 June 2011 - 10:43 PM

Oh My God!
I've just tested Export Drum Patches script for the "best of patternarium" folder and....in 10 seconds (more or less) this script has creatd 960 new patches!!!
I think this scripts will boost MT potential a lot!!!
Now I go to test the other scripts.
Big thanx Magnus,this machine is a masterpiece! :wub:
http://soundcloud.com/atari-maori

#19 Bronto Scorpio

Bronto Scorpio

    Advanced Member

  • Registered Owner
  • PipPipPip
  • 32 posts

Posted 09 June 2011 - 12:50 AM

...I've just tested Export Drum Patches script for the "best of patternarium" folder and....in 10 seconds (more or less) this script has creatd 960 new patches!!!...

Great idea!
I'll do the same asap!

Cheers
Dennis
Please excuse my bad english.
My Website (Free Stuff!)

#20 Gordon Sauve

Gordon Sauve

    Newbie

  • Registered Owner
  • Pip
  • 3 posts

Posted 22 September 2011 - 01:22 AM

Cannot see how to use these Scripts. Simple question: where is the load button?

Thanks,
Gordon

#21 Gordon Sauve

Gordon Sauve

    Newbie

  • Registered Owner
  • Pip
  • 3 posts

Posted 29 September 2011 - 01:46 AM

Can anyone tell me how to use these scripts please?

#22 Magnus Lidström

Magnus Lidström

    Advanced Member

  • Administrators
  • 426 posts

Posted 29 September 2011 - 01:26 PM

Can anyone tell me how to use these scripts please?


Sorry, missed your previous question. There is no load button for the scripts, you need to install them in the proper location on your hard-drive (and then restart / reload MicroTonic). There is a "Read Me" inside the zip that explains the procedure. I'm copying here:

--------------------8<--------------------8<---------------------

Windows Installation Procedure

Place the entire contents of this package into a folder with the name "MicroTonic Scripts" in the same directory as the MicroTonic VST plug-in files. E.g. C:\Program Files\VSTPlugIns\SonicCharge\MicroTonic Scripts.

Mac Installation Procedure

Create the folder "/Library/Application Support/Sonic Charge/MicroTonic Scripts" and place the entire contents of this package into the folder.

--------------------8<--------------------8<---------------------

When you have done this, you should find a small cog-wheel icon in the upper-left corner of MicroTonic and there you will find the scripts.

Let me know if you need further assistance.

#23 Gordon Sauve

Gordon Sauve

    Newbie

  • Registered Owner
  • Pip
  • 3 posts

Posted 29 September 2011 - 02:35 PM

Many thanks Magnus! I see the cog now. I missed it previously :blink: I really like the note variation script.

I'll need to figure out what the rest do when I have some more time.

Cheers,
Gordon

#24 Jalex

Jalex

    Newbie

  • Registered Owner
  • Pip
  • 5 posts

Posted 15 October 2011 - 01:07 PM

I did everything according to instructions, dont work. mac os snow leo 10.6.8

#25 locaa

locaa

    Newbie

  • Registered Owner
  • Pip
  • 2 posts

Posted 25 November 2011 - 11:33 PM

Hello

I did everything according to instructions, dont work. Mac Lion 10.7

Please for Info or help me

Thanks

#26 Magnus Lidström

Magnus Lidström

    Advanced Member

  • Administrators
  • 426 posts

Posted 05 December 2011 - 10:46 AM

I did everything according to instructions, dont work. Mac Lion 10.7


Sorry for the late reply. It is difficult to know why this is not working for you. After you have created a folder called "Sonic Charge" under "/Library/Application Support" and another folder called "MicroTonic Scripts" under this one, do you see a cog wheel in the upper-left corner at all? It should look like this:

Attached File  MicroTonic Cog.jpg   135.11KB   49 downloads

#27 philip formby

philip formby

    Newbie

  • Registered Owner
  • Pip
  • 8 posts

Posted 13 March 2012 - 03:50 PM

just remember to rename the file ! took me 5 minutes to figure that out:)

#28 re_mute

re_mute

    Newbie

  • Registered Owner
  • Pip
  • 3 posts

Posted 19 April 2012 - 09:41 AM

Hello

I did everything according to instructions, dont work. Mac Lion 10.7

Please for Info or help me

Thanks



Another thing to try is to make sure that none of the folders ie "Sonic Charge" etc don't have a space at the end. Had me scratching my head for days trying
to get the scripts to show up only to find this was the culprit.

#29 mism

mism

    Member

  • Registered Owner
  • PipPip
  • 10 posts

Posted 23 April 2012 - 08:02 PM

As a new forum member, but long time Microtonic user I want to say "Hi" and "Thank you soo much" for the best drum synth around.

How could I have missed to join this forum and download those great scripts. THANKS!!!

Is there a possibility at all to make the scripts control change assignable, or is this just a personal dream? :rolleyes:

Peace

#30 Magnus Lidström

Magnus Lidström

    Advanced Member

  • Administrators
  • 426 posts

Posted 23 April 2012 - 10:25 PM

Is there a possibility at all to make the scripts control change assignable, or is this just a personal dream? :rolleyes:


Do you mean like for executing a script by pressing a MIDI CC button?

Not in the current version, sorry.

#31 mism

mism

    Member

  • Registered Owner
  • PipPip
  • 10 posts

Posted 24 April 2012 - 12:10 AM

Do you mean like for executing a script by pressing a MIDI CC button?

Not in the current version, sorry.


Yes, that is what I mean.
So I guess "not in the current version" means maybe in future versions, that sounds hopeful. :rolleyes:

Thanks for answering!

#32 Ant9

Ant9

    Member

  • Registered Owner
  • PipPip
  • 26 posts

Posted 28 April 2012 - 04:32 PM

I also want to note the great benefit of scripts. Thank you very much.
Magnus By the way, was made to the version, is there any plans to (distant or not too much) updated version? :rolleyes: However, the plug-in and is now very cool, but just curious.

#33 scififunk

scififunk

    Newbie

  • Registered Owner
  • Pip
  • 3 posts

Posted 26 May 2012 - 02:38 PM

Hey, Im having trouble opening the scripts. What programme do I need to associate the PIKA files with? Open with? Sorry if thats a very noob question :)

#34 Fredrik Lidström

Fredrik Lidström

    Administrator

  • Administrators
  • 252 posts

Posted 29 May 2012 - 07:57 AM

If you want to edit them, they are plain text files that loads into any editor. But I suspect you want to run them? =) They need to be placed in the correct folder for MicroTonic to find them. When MicroTonic have found them, you get the cog-wheel icon at the top of the interface where you can select what script to run.

--------------------8<--------------------8<---------------------

Windows Installation Procedure
Place the entire contents of this package into a folder with the name "MicroTonic Scripts" in the same directory as the MicroTonic VST plug-in files. E.g. C:\Program Files\VSTPlugIns\SonicCharge\MicroTonic Scripts.

Mac Installation Procedure
Create the folder "/Library/Application Support/Sonic Charge/MicroTonic Scripts" and place the entire contents of this package into the folder.

--------------------8<--------------------8<---------------------


#35 scififunk

scififunk

    Newbie

  • Registered Owner
  • Pip
  • 3 posts

Posted 29 May 2012 - 12:45 PM

If you want to edit them, they are plain text files that loads into any editor. But I suspect you want to run them? =) They need to be placed in the correct folder for MicroTonic to find them. When MicroTonic have found them, you get the cog-wheel icon at the top of the interface where you can select what script to run.

--------------------8<--------------------8<---------------------

Windows Installation Procedure
Place the entire contents of this package into a folder with the name "MicroTonic Scripts" in the same directory as the MicroTonic VST plug-in files. E.g. C:\Program Files\VSTPlugIns\SonicCharge\MicroTonic Scripts.

Mac Installation Procedure
Create the folder "/Library/Application Support/Sonic Charge/MicroTonic Scripts" and place the entire contents of this package into the folder.

--------------------8<--------------------8<---------------------



Yes I have the little cog symbol, I click on that then open scripts directory, try to run the script but its then asking me what programme I want to open the file with?

#36 Fredrik Lidström

Fredrik Lidström

    Administrator

  • Administrators
  • 252 posts

Posted 29 May 2012 - 01:06 PM

Script file needs to be located in the MicroTonic Scripts folder. The name of the script will be inserted in the drop-down menu under the cog-wheel. So you never launch the pika files directly, those needs to be found and loaded in by MicroTonic itself.

If you still cannot get it to work, let me know if you run Mac or Windows and I'll throw a small video together.

#37 scififunk

scififunk

    Newbie

  • Registered Owner
  • Pip
  • 3 posts

Posted 29 May 2012 - 09:30 PM

Script file needs to be located in the MicroTonic Scripts folder. The name of the script will be inserted in the drop-down menu under the cog-wheel. So you never launch the pika files directly, those needs to be found and loaded in by MicroTonic itself.

If you still cannot get it to work, let me know if you run Mac or Windows and I'll throw a small video together.



Nice one man, I have a couple of days off coming up so I'll have another try at it. Wicked drum synth by the way!

#38 John Kreuzer

John Kreuzer

    Newbie

  • Registered Owner
  • Pip
  • 1 posts

Posted 17 June 2012 - 06:43 PM

Amazing! Really thank you for this! That transpose features is wonderful!

Works fine here in FL Studio 9.1

Best Regards from Germany

John

#39 braduro

braduro

    Newbie

  • Registered Owner
  • Pip
  • 5 posts

Posted 21 August 2013 - 01:39 PM

Ok, for mac users the Sonic Charge>Microtonic Scripts folder needs to be in the Applications Support Folder of the Library for all users, not within the library within your System Folder and not within the library under your Home Folder. This is true even if your Authorization folder for Sonic Charge falls under one of your Standard, non-admin, account Libraries (you ran the Sonic Charge installer in an account other than your admin sign-in).

 

Here's my question: what should I do with the "resource" folder within the scripts "package" folder? Should I put all the pika resource files from other packages, like MDK's, all into that one resource sub-folder? 

 

Otherwise, should I dump whatever .pika file that I see in there all within the same level as the scripts? If I take the instructions literally, I should move the contents of the package folder, not the folder itself, into the Microtonic Scripts folder. That I understand. Here's the thing: when other folks, like MDK, create a series of scripts, they may have also a "resource" folder to depend on. So is it okay to have more than one sub-folder named "resource" or "resource-1", and would the right scripts know how to refer to the right resource folder? 

 

Cheers to ya!



#40 Peter Adamonis

Peter Adamonis

    Newbie

  • Registered Owner
  • Pip
  • 2 posts

Posted 25 September 2013 - 10:54 PM

I dont have the icon for the sciprt that they advertise in the video.

Top left, its not there.. I have version 3.0

Any ideas?

 



#41 chrisa23

chrisa23

    Newbie

  • Registered Owner
  • Pip
  • 2 posts

Posted 09 February 2014 - 03:21 PM

Any chance to get an Export Midi Files script that exports out the patterns like the Export Drum Patches?  I looked to see if I might be able to write this myself, being a programmer by trade, but even after finding the documentation for PikaScript, I'm a little clueless where to begin...  Hoping its a super simple task since there is already Midi drag export from the UI...



#42 Fredrik Lidström

Fredrik Lidström

    Administrator

  • Administrators
  • 252 posts

Posted 12 February 2014 - 07:02 PM

Unfortunately it is not super simple because the MIDI export function is not exposed to the script engine. It is still possible to write the export in PikaScript though, just like the MIDI Import script that Magnus wrote in this topic



#43 chrisa23

chrisa23

    Newbie

  • Registered Owner
  • Pip
  • 2 posts

Posted 12 February 2014 - 09:49 PM

Pulover Macro Creator to the rescue...  Surprised I didn't think of this earlier...  Its slow, but it works...

 

Thanks!






1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users