-
Notifications
You must be signed in to change notification settings - Fork 63
Getting started
-
Download and install Unity 2018.4.29. Personal edition is fine for desktop usage.
-
Start a new Unity project.
-
Import videolab package. Do so either via Assets > Import Package > Custom Package or drag and drop the unity package file into the project explorer.
-
Make sure Project Settings > Player > Other Settings > Configuration > Scripting Runtime Version is .NET 4.x equivalent
-
Make sure Project Settings > Player > Graphics API is set to OpenGLCore for Mac, Metal for iOS and OpenGLES2 for Android. You may have to uncheck the Auto Graphics API option to be able to set this.
If you want the very latest videolab version, clone the repo and drag drop everything from /Assets into your project.
Note that you need the .meta files too, make sure they are copied.
videolab relies on a node-based system called Klak for scripting. You can script via code too if you want, but there are some limitations (see Exporting for OP-Z).
-
Add a Patch object to your scene - right-click in the Hierarchy and select Klak > Patch.
-
Click Open Patcher in the Patch component Inspector. This opens the Patcher window, dock it somewhere the suits your editor setup.
-
Right click inside the Patcher window, browse the Create menu for all the nodes that make up Klak. Nodes are patched together by dragging wires from inlets to outlets in the Patcher window. You need to enter Play mode to see your patch run.
-
Connect some MIDI-enabled device to your computer and make sure it shows up in the Midi Jack window (Window > MIDI Jack). Experiment with the MIDI input and output Klak nodes.
Be sure to name the nodes you add, otherwise your patch will quickly become impossible to read.
Also break complex patches up into multiple smaller patches. A super-patch can be used to enable and disable sub-patches using the Active Status Out node.
While multi-editing is not supported by the Patcher GUI there is a workaround. All nodes are also listed under the Patch object in the Hierarchy panel and selecting them there allows you to edit as many as you want.
-
Controlling visuals
-
Visual effects
-
Controlling a synth