» Programming Concepts
This site relies heavily on Javascript. You should enable it if you want the full experience. Learn more.

Programming Concepts

French

Patching pages

You are familiar with textual programming and are missing some of the basic concepts of your mother tongue in vvvv?

Here is collection of common programming concepts and some hints to where you can find them in vvvv.

If you're not a coder, check Patching Concepts.

If you're missing a specific concept you can always implement a little plugin using the built-in VL or c# editors.

Classes, Custom Datatypes, Functions

There is no concept of classes in vvvv. For basic structuring of your programs have a look at Subpatches.

Subpatches can be understood as functions that take Inputs and return Outputs.

There've been attempts to add further ways of structuring data into vvvv, see:

Conditions

Looking for an if, switch, ...?

See Conditions.

Loops

Where in textual programming you’d use a for, while or repeat construct to execute some lines of code multiple times before going on executing the rest of the program, this is not possible with vvvv.

Basically vvvv avoids the concept of such sequential loops. Instead it often allows you to calculate all desired iterations at the same time using spectral operations.

See Spread Sinks.

Variables

Global Variables

Values can be sent from one part of a patch to another (or between patches) using the S (=send) and R (=receive) nodes without making any direct links.

The most common use case for S/R nodes is to deliver global constants to different parts of a project.

See Send / Receive.

Local Variables

In order to save the result of a computation in one frame to use it for further calculation in the next you have to use a node called FrameDelay. Essentially by setting its input you write a local variable which you can read from in the next frame by connecting to its output.

FrameDelay nodes are therefore creating feedback-loops in a patch.

See Creating Feedback Loops.

Constants

IOBoxes can be used as constants, which are feeding manually adjusted Values (Colors, Strings...) for Inputs of the nodes and subpatches.

See IOBoxes.

Input/Output Parameters

Named IOBoxes are used to create Inputs and Outputs for subpatches. They can therefore be understood as input and output parameters of functions.

See Subpatches.

Collections

Looking for an Array, List, ...?

See Spreads.

Data Storages

Looking for a Buffer, Stack or Queue?

See Spread Collections.

Null

An empty Array or List in textual language is Nil in vvvv.

See NIL.

State Automatas

When patching anything that can be separated into a series of states and events that cause transition from one state to another you are likely looking for Automata (Animation). Also the Timerliner has an automata built in.

See also:

anonymous user login

Shoutbox

~6d ago

joreg: vvvvTv S02E00 is out: Sensors & Servos with Arduino: https://visualprogramming.net/blog/2024/vvvvtv-is-back-with-season-2/

~7d ago

fleg: hey there! What's the best tool for remote work? Teamviewer feels terrible. Thanks!

~20d ago

joreg: Last call: 6-session vvvv beginner course starting November 4: https://thenodeinstitute.org/courses/ws24-5-vvvv-beginners-part-i/

~1mth ago

joreg: Missed the last meetup? You can rewatch it here: https://www.youtube.com/live/MdvTa58uxB0?si=Fwi-9hHoCmo794Ag

~1mth ago

theurbankind: When is the next big event, like node festival ?

~1mth ago

~1mth ago

joreg: Join us for the next vvvv meetup on Oktober 17th: https://visualprogramming.net/blog/2024/25.-vvvv-worldwide-meetup/

~1mth ago

joreg: 6 session beginner course part 2 "Deep Dive" starts January 13th: https://thenodeinstitute.org/courses/ws24-5-vvvv-beginners-part-ii/

~1mth ago

joreg: 6 session beginner course part 1 "Playground" starts November 4th: https://thenodeinstitute.org/courses/ws24-5-vvvv-beginners-part-i/