A visual programming patching environment for OF
README
ofxVisualProgramming - A visual-programming patching addon for OF
A collection of visual interactive objects to create/develop in a dataflow+live-coding patching environment. Embedded with Lua scripting interpreter, plus live compile of GLSL Shaders from version 150 to 410, and live editing/execute Bash scripts(macOS & linux) capabilities.
Screenshot from project Mosaic, embedding ofxVisualProgrammingTable of Contents
OF_COMPATIBLE_RELEASE REFERENCE DESCRIPTION DEPENDENCIES COMPILING INSTALLING USAGE CONTRIBUTING COLLECTIONS OBJECTS LIST LICENSE CREDITS
OF COMPATIBLE RELEASE
0.12.0 STABLE (official download from OF site)
Compiled/tested with QTCreator on osx/linuxIf you want to build ofxVisualProgramming, just download OF0.12.0 for your OS (osx, linux, windows) and follow the setup guide for qtcreator IDE.
REFERENCE
ofxVisualProgramming came directly from the idea behind the ofxComposer addon by patriciogonzalezvivo and James George, and obviously from the various commercial and no-commercial existing visual programming softwares, the open source option Pure Data, the commercial options Max/Msp and TouchDesigner, etc..., to talk of the latest ones, and without forgetting probably the first one from 1968,
<a href="http://www.youtube.com/watch?feature=player_embedded&v=QQhVQ1UG6aM" target="_blank"><img src="http://img.youtube.com/vi/QQhVQ1UG6aM/0.jpg" alt="GRAIL" width="240" height="180" border="0" /></a>
GRAIL RM-599-ARPA from the RAND Corporation.
So special thanks to all the precursors of this ideas, and more thanks to the ofxComposer developers for their code, it has been a great reference for start working on this ofxaddon.
DESCRIPTION
This addon is the core code of the project Mosaic
, maintained isolated in order to obtain a better modularized code structure, encourage contributions, simplify bug fixing and enhance code quality.This project deals with the idea of integrate/amplify man-machine communication, offering a real-time flowchart based visual interface for high level creative coding. As live-coding scripting languages offer a high level coding environment, ofxVisualProgramming and the Mosaic Project as his parent layer container, aim at a high level visual-programming environment, with embedded multi scripting languages availability (Lua, GLSL, and BASH(macOS & linux) ).
As this project is based on openFrameworks, one of the goals is to offer as more objects as possible, using the pre-defined OF classes for trans-media manipulation (audio, text, image, video, electronics, computer vision), plus all the gigantic ofxaddons ecosystem actually available (machine learning, protocols, web, hardware interface, among a lot more).
While the described characteristics could potentially offer an extremely high complex result (OF and OFXADDONS ecosystem is really huge, and the possibility of multiple scripting languages could lead every unexperienced user to confusion), the idea behind the interface design aim at avoiding the "high complex" situation, embodying a direct and natural drag&drop connect/disconnect interface (mouse/trackpad) on the most basic level of interaction, adding text editing (keyboard) on a intermediate level of interaction (script editing), following most advanced level of interaction for experienced users (external devices communication, automated interaction, etc...)
KEYWORDS
mosaic, ofxVisualProgramming, openframeworks, linux, macOS, windows, creative-coding, live-coding, cyber-coding, physical-computing, visual-computing, scripting, transmedia, programming, visual-programming, cyber-programmingDEPENDENCIES
In order to build ofxVisualProgramming, you'll need this addons:
ofxAudioFile
ofxBTrack
ofxCv
ofxEasing
ofxFFmpegRecorder
ofxGLEditor
ofxImGui
ofxInfiniteCanvas
ofxLua
ofxMidi
ofxMtlMapping2D
ofxNDI
ofxOpenDHT
ofxPd
ofxPDSP
ofxScheme
ofxSyphon
ofxTimeline
ofxWarp
Some addons are forks of the original, due to some mods, compatibility with OF0.12.0 and the intention of cross-platform compiling (osx,linux)
COMPILING
MACOS/LINUX compiling with qtcreator 4.6.1
INSTALLING
Clone this addon repository into your
<your_openframeworks_release_folder>/addons together with all the others addons listed:``
bash cd <your_openframeworks_release_folder>/addons
git clone https://github.com/npisanti/ofxAudioFile git clone https://github.com/d3cod3/ofxBTrack git clone https://github.com/kylemcdonald/ofxCv git clone https://github.com/arturoc/ofxEasing git clone https://github.com/d3cod3/ofxFFmpegRecorder git clone https://github.com/Akira-Hayasaka/ofxGLEditor git clone https://github.com/d3cod3/ofxImGui git clone https://github.com/d3cod3/ofxInfiniteCanvas git clone https://github.com/danomatika/ofxLua git clone https://github.com/danomatika/ofxMidi git clone https://github.com/d3cod3/ofxMtlMapping2D git clone --branch=NDI5 https://github.com/d3cod3/ofxNDI git clone https://github.com/d3cod3/ofxOpenDHT git clone https://github.com/danomatika/ofxPd git clone https://github.com/d3cod3/ofxPDSP git clone https://github.com/d3cod3/ofxScheme git clone https://github.com/d3cod3/ofxSyphon git clone https://github.com/d3cod3/ofxTimeline git clone https://github.com/d3cod3/ofxWarp git clone https://github.com/d3cod3/ofxVisualProgramming ``USAGE
Check Mosaic project to look at a ofxVisualProgramming addon usage and implementation
CONTRIBUTING
Contributing to the project adding new objects is relatively easy, as ofxVisualProgramming is at the core of Mosaic software, i've implemented a plugin mechanism based on Pugg, in order to facilitate the extension and the creation of new objects/nodes to add at the ofxVisualProgramming/Mosaic default objects/nodes library. (see objects/nodes list below)
You can find the repo of the plugin template here: ofxMosaicPlugin, with some generic objects templates and more detailed info in the readme.
COLLECTIONS
A list of contributed collections of new objects
OBJECTS LIST
| Audio Analysis | Ready |
|---|---|
| audio analyzer | X |
| bpm extractor | X |
| fft extractor | X |
| mel bands extractor | X |
| pitch extractor | X |
| rms extractor | X |
| Communications | Ready |
|---|---|
| arduino serial | X |
| key pressed | X |
| key released | X |
| midi key | X |
| midi knob | X |
| midi pad | X |
| midi receiver | X |
| midi sender | X |
| osc receiver | X |
| osc sender | X |
| Computer Vision | Ready |
|---|---|
| background subtraction | X |
| color tracking | X |
| contour tracking | X |
| haar tracking | X |
| motion detection | X |
| optical flow | X |
| Data | Ready |
|---|---|
| bang multiplexer | X |
| bang to float | X |
| color palette | X |
| data to file | X |
| data to texture | X |
| file to data | X |
| float multiplexer | X |
| floats to vector | X |
| receiver | X |
| sender | X |
| texture to data | X |
| vector at | X |
| vector concat | X |
| vector extract | X |
| vector gate | X |
| vector operator | X |
| Generative | Ready |
|---|---|
| strange attractors | X |
| Graphics | Ready |
|---|---|
| image loader | X |
| image exporter | X |
| color palette | X |
| GUI | Ready |
|---|---|
| 2D pad | X |
| bang | X |
| comment | X |
| data viewer | X |
| message | X |
| multislider | X |
| multitoggle | X |
| piano keyboard | X |
| player controls | X |
| signal viewer | X |
| slider | X |
| sonogram | X |
| timeline | X |
| trigger | X |
| value plotter | X |
| video viewer | X |
| vu meter | X |
| Logic | Ready |
|---|---|
| boolean operator | X |
| conditional operator | X |
| counter | X |
| delay bang | X |
| delay float | X |
| gate | X |
| inverter | X |
| loadbang | X |
| spigot | X |
| timed semaphore | X |
| Math | Ready |
|---|---|
| 1D noise | X |
| clamp | X |
| cosine generator | X |
| map | X |
| metronome | X |
| number | X |
| operator | X |
| simple random | X |
| sine generator | X |
| smooth | X |
| Scripting | Ready |
|---|---|
| bash script | X |
| glsl shader | X |
| lua script | X |
| scheme live coding | X |
| Sound | Ready | |
|---|---|---|
| ADSR envelope | X | |
| AHR envelope | X | |
| amplifier | X | |
| address sequencer | X | |
| audio exporter | X | |
| bit cruncher | X | |
| bit noise | X | |
| comb filter | X | |
| compressor | X | |
| crossfader | X | |
| data oscillator | X | |
| decimator | X | |
| delay | X | |
| dimension chorus | X | |
| frequency to note | X | |
| high pass | X | |
| kick | X | |
| lfo | X | |
| low pass | X | |
| mixer | X | |
| note to frequency | X | |
| oscillator | X | |
| panner | X | |
| parametric EQ | X | |
| pd patch | X | |
| polyphonic oscillator | X | |
| quad panner | X | |
| quantizer | X | |
| resonant filter | X | |
| reverb | X | |
| sample and hold | X | |
| sample player | X | |
| saturator | X | |
| sequencer | X | |
| sidechain compressor | X | |
| signal gate | X | |
| signal operator | X | |
| signal trigger | X | |
| soundfile player | X | |
| summing mixer | X |
| String | Ready |
|---|---|
| random string | X |
| string at | X |
| string concat | X |
| string extract | X |
| string gate | X |
| string multiplexer | X |
| Surface | In process |
|---|---|
| fbo composer | |
| fbo effect | |
| fbo particle |
| Texture | Ready |
|---|---|
| image exporter | X |
| image loader | X |
| kinect grabber | X |
| pixels to texture | X |
| texture crop | X |
| texture gate | X |
| texture information | X |
| texture mixer | X |
| texture to pixels | X |
| texture transform | X |
| to grayscale texture | X |
| syphon sender ( osx only ) | X |
| syphon receiver ( osx only ) | X |
| video exporter | X |
| video feedback | X |
| video grabber | X |
| video player | X |
| video receiver ( osx only ) | X |
| video sender ( osx only ) | X |
| video streaming | X |
| video timedelay | X |
| Windowing | Ready |
|---|---|
| live patching | X |
| output window | X |
| projection mapping | X |
LICENSE
All contributions are made under the MIT License. See LICENSE.
CREDITS
ofxAudioFile, ofxPDSP original addons by Nicola Pisanti
ofxBTrack original addon by Nao Tokui
ofxCv original addons by Kyle McDonald
ofxEasing original addon by Arturo Castro
ofxFFmpegRecorder original addon by Furkan Üzümcü
ofxGLEditor original addon by Akira Hayasaka
ofxImGui original addon by Jason Van Cleave
ofxInfiniteCanvas original addon by Roy Macdonald
ofxLua, ofxMidi, ofxPd original addons by Dan Wilcox
ofxMtlMapping2D original addon by morethanlogic
ofxNDI original addon by Thomas Geissl
ofxSyphon original addon by Anthony Stellato
ofxTimeline original addon by James George and YCAM Interlab
ofxWarp original addon by Elie Zananiri
ofxAddons