diff options
| author | Comment <tim@gray.(none)> | 2013-10-04 16:48:55 +0100 |
|---|---|---|
| committer | Comment <tim@gray.(none)> | 2013-10-04 16:48:55 +0100 |
| commit | b1e28de710c0810db2cc6a5c298080238b68bfbc (patch) | |
| tree | dd565bc687fd7bbd0d5830a4dc3f39e4002742e2 /rotord/src | |
| parent | 6fd6ed2182a13dd8ebde05bdef6cfc96df370086 (diff) | |
node UIDs
Diffstat (limited to 'rotord/src')
| -rw-r--r-- | rotord/src/nodes_audio_analysis.h | 2 | ||||
| -rw-r--r-- | rotord/src/nodes_drawing.h | 3 | ||||
| -rw-r--r-- | rotord/src/nodes_filters.h | 5 | ||||
| -rw-r--r-- | rotord/src/nodes_maths.h | 6 | ||||
| -rw-r--r-- | rotord/src/nodes_transform.h | 2 | ||||
| -rw-r--r-- | rotord/src/rotor.h | 41 |
6 files changed, 55 insertions, 4 deletions
diff --git a/rotord/src/nodes_audio_analysis.h b/rotord/src/nodes_audio_analysis.h index c59fb0b..a3fdd8b 100644 --- a/rotord/src/nodes_audio_analysis.h +++ b/rotord/src/nodes_audio_analysis.h @@ -92,6 +92,7 @@ namespace Rotor { create_parameter("outputNo","number","Plugin output to use","Output number",0.0f); title="Audio analysis"; description="Analyse audio and output"; + UID="b769f54e-2d0b-11e3-87dd-f73fc7b1c636"; }; Audio_analysis(map<string,string> &settings):Audio_analysis() { base_settings(settings); @@ -111,6 +112,7 @@ namespace Rotor { create_parameter("acts","number","Number of acts defined","Acts",1.0f); title="Act manager"; description="Applies a ruleset to manage acts based on segments"; + UID="c55359a2-2d0b-11e3-8a3d-53fa9c2b8859"; }; Act_segmenter(map<string,string> &settings):Act_segmenter() { base_settings(settings); diff --git a/rotord/src/nodes_drawing.h b/rotord/src/nodes_drawing.h index 2e76441..6e29130 100644 --- a/rotord/src/nodes_drawing.h +++ b/rotord/src/nodes_drawing.h @@ -52,6 +52,7 @@ namespace Rotor { create_attribute("text","Text to draw","Text","hello, world!"); create_attribute("colour","Colour to fill","Colour","FFFFFF"); create_parameter("number","number","Number to draw","Number",-99999999.0f); + UID="7da93b94-2d0b-11e3-8940-77bce0f9d3e8"; }; Text(map<string,string> &settings):Text() { base_settings(settings); @@ -91,6 +92,7 @@ namespace Rotor { create_parameter("rotation","number","Rotation","Rotation",0.0f); create_attribute("shape","Shape to draw","Shape","square",{"circle","square","triangle"}); create_attribute("colour","Colour to fill","Colour","FFFFFF"); + UID="88c30140-2d0b-11e3-8db2-679d596166c1"; }; Shape(map<string,string> &settings):Shape() { base_settings(settings); @@ -160,6 +162,7 @@ namespace Rotor { Waves(){ title="Waves"; description="Draws audio waveforms"; + UID="99a3a226-2d0b-11e3-89ee-53305a094fad"; create_attribute("stroke","Colour of line stroke","Stroke","FFFFFF"); create_attribute("fill","Colour of line fill","Fill","11AA11"); create_attribute("mode","Drawing mode","Mode","line",{"line","fill","both"}); diff --git a/rotord/src/nodes_filters.h b/rotord/src/nodes_filters.h index 13f7a3e..7491ff1 100644 --- a/rotord/src/nodes_filters.h +++ b/rotord/src/nodes_filters.h @@ -11,6 +11,7 @@ namespace Rotor { description="Gaussian blur filter"; create_parameter("size","number","Blur window size","Size",1.0f); create_image_input("image input","Image input"); + UID="3650f412-2d0b-11e3-b86b-a31ab5838db2"; }; Blur(map<string,string> &settings):Blur() { base_settings(settings); @@ -38,6 +39,7 @@ namespace Rotor { description="VHS degradation filter"; create_parameter("generation_loss","number","VHS generation loss amount","Generation loss",1.0f); create_image_input("image input","Image input"); + UID="3f62bdb0-2d0b-11e3-a4eb-a712839b837d"; }; VHS(map<string,string> &settings):VHS() { base_settings(settings); @@ -78,6 +80,7 @@ namespace Rotor { title="Luma levels"; description="Remap luma values of image"; LUT=nullptr; + UID="4e500576-2d0b-11e3-b234-cf74b6a122e4"; }; Luma_levels(map<string,string> &settings):Luma_levels() { base_settings(settings); @@ -146,6 +149,7 @@ namespace Rotor { create_attribute("mode","blend mode for echoes","Blend mode","screen",{"screen","wrap"}); title="Echo trails"; description="Draw trail frames additively that fade off over time"; + UID="5b1ab684-2d0b-11e3-8fa2-970be8c360dd"; }; Echo_trails(map<string,string> &settings):Echo_trails() { base_settings(settings); @@ -250,6 +254,7 @@ namespace Rotor { title="RGB levels"; description="Remap RGB values of image"; LUT=nullptr; + UID="68522cba-2d0b-11e3-8767-8f3c605e9bed"; }; RGB_levels(map<string,string> &settings):RGB_levels() { base_settings(settings); diff --git a/rotord/src/nodes_maths.h b/rotord/src/nodes_maths.h index 1853e2c..13947a0 100644 --- a/rotord/src/nodes_maths.h +++ b/rotord/src/nodes_maths.h @@ -21,6 +21,7 @@ namespace Rotor { create_attribute("operator","Operator for comparison","operator","==",{"==","!=",">","<",">=","<="}); title="Comparison"; description="Compares the signal with a value or signal according to the operator"; + UID="e568b918-2d0a-11e3-bc3b-8ff3658b7e6c"; }; Comparison(map<string,string> &settings):Comparison() { base_settings(settings); @@ -72,6 +73,7 @@ namespace Rotor { create_attribute("operator","operator for image","Operator","+",{"+","-","*","/","%","^","sin","cos","ease","jolt","floor","2pow","reciprocal"}); title="Arithmetic"; description="Performs arithmetic on a signal with a signal or value"; + UID="f35e5f82-2d0a-11e3-83d8-0fed336db813"; }; Arithmetic(map<string,string> &settings):Arithmetic() { base_settings(settings); @@ -142,6 +144,7 @@ namespace Rotor { title="New integer"; description="Outputs 1 on the frame that a signal becomes a new integer"; create_signal_input("signal","Signal"); + UID="03320e0e-2d0b-11e3-93b2-5f9cfa67d27b"; }; Is_new_integer(map<string,string> &settings):Is_new_integer() { base_settings(settings); @@ -160,6 +163,7 @@ namespace Rotor { title="On off"; description="Outputs 1 if the integer floor of the signal is even"; create_signal_input("signal","Signal"); + UID="13c6e212-2d0b-11e3-a3c8-6ffea774de32"; }; On_off(map<string,string> &settings):On_off() { base_settings(settings); @@ -205,6 +209,7 @@ namespace Rotor { description="Randomises integer part of signal (seedable)"; create_signal_input("signal","Signal"); create_parameter("seed","number","Seed value","Seed",1.0f); + UID="1de86932-2d0b-11e3-96d3-77aa4558e6cd"; }; Random(map<string,string> &settings):Random() { base_settings(settings); @@ -226,6 +231,7 @@ namespace Rotor { description="Fractal noise (seedable)"; create_signal_input("signal","Signal"); create_parameter("seed","number","Seed value","Seed",1.0f); + UID="28b3c154-2d0b-11e3-bdf2-1b9b2678a2f6"; }; Noise(map<string,string> &settings):Noise() { base_settings(settings); diff --git a/rotord/src/nodes_transform.h b/rotord/src/nodes_transform.h index f64cddd..624ad21 100644 --- a/rotord/src/nodes_transform.h +++ b/rotord/src/nodes_transform.h @@ -143,6 +143,7 @@ namespace Rotor { create_image_input("image input","Image input"); title="Transform"; description="Apply 2D transformation"; + UID="c798586c-2d0a-11e3-a736-6f81df06fd1b"; }; Transform(map<string,string> &settings):Transform() { base_settings(settings); @@ -161,6 +162,7 @@ namespace Rotor { create_attribute("filename","name of image file to load","File name",""); title="Still image"; description="Load a still image and apply 2D transformation"; + UID="d464b0d6-2d0a-11e3-acb7-6be231762445"; }; Still_image(map<string,string> &settings):Still_image() { base_settings(settings); diff --git a/rotord/src/rotor.h b/rotord/src/rotor.h index 72f1ea4..ec9a193 100644 --- a/rotord/src/rotor.h +++ b/rotord/src/rotor.h @@ -193,6 +193,7 @@ namespace Rotor { string description; string type; string ID; + string UID; string title; bool duplicate_inputs; string find_setting(map<string,string> &settings,string key,string def=""){ if (settings.find(key)!=settings.end()) return settings[key]; else return def;}; @@ -294,6 +295,7 @@ namespace Rotor { Time(){ title="Time"; description="Outputs the time in seconds as a signal"; + UID="432b0d1e-2d09-11e3-a8b9-e3affcfd2b31"; }; Time(map<string,string> &settings): Time() { base_settings(settings); @@ -308,6 +310,7 @@ namespace Rotor { Track_time(){ title="Track time"; description="Outputs the fraction of the track as a signal"; + UID="5892933e-2d09-11e3-8f2e-47c1defdb1d7"; }; Track_time(map<string,string> &settings): Track_time() { base_settings(settings); @@ -324,6 +327,7 @@ namespace Rotor { create_parameter("time","number","Track time to evaluate","Time",0.0f); title="@Track time"; description="Gets input from a different point in the track"; + UID="6a3edb9c-2d09-11e3-975c-df9df6d19f0a"; }; At_track_time(map<string,string> &settings): At_track_time() { base_settings(settings); @@ -340,6 +344,7 @@ namespace Rotor { create_signal_input("signal","Signal Input"); title="Signal output"; description="Outputs a signal to xml for testing"; + UID="74773190-2d09-11e3-ae26-7f2bb9af632c"; }; Signal_output(map<string,string> &settings): Signal_output() { base_settings(settings); @@ -383,6 +388,7 @@ namespace Rotor { create_parameter("invert","number","Invert when greater than 0.0","Negative",1.0f,0.0f,1.0f); title="Negative"; description="Inverts the input picture"; + UID="8676c25c-2d09-11e3-80a7-db36c774523c"; }; Invert(map<string,string> &settings) :Invert() { base_settings(settings); @@ -411,7 +417,21 @@ namespace Rotor { #define CYCLER_stretch 3 //new mode that remaps sequence length to segments //combined with a video mode that maps video length to duration - //or + //time remapper object + //takes a signal and turns it into a new timeline + // + //to make a movie stretch to a segment.. + //modulus a segmenter into the position controller of a video player + // + //how else? + //q: how to create a relative timeline from a segment? + //a: you need the begiining and end points to calculate the duration + // + //q: where do we have this info/ where do we get it? + //a: only in the node that generated it? + // + //q: what would it take to get this info from place to place + //a: would need to send featuresets down the line with class Video_cycler: public Image_node { public: Video_cycler(){ @@ -422,6 +442,7 @@ namespace Rotor { title="Video cycler"; description="Cycles through video inputs according to selector signal"; duplicate_inputs=true; + UID="93dd9d76-2d09-11e3-9589-5bbbeea1b304"; } Video_cycler(map<string,string> &settings):Video_cycler() { base_settings(settings); @@ -431,10 +452,8 @@ namespace Rotor { Image *output(const Frame_spec &frame){ Frame_spec inframe=frame; switch (attributes["time_mode"]->intVal){ - case CYCLER_abs: - inframe=frame; - break; case CYCLER_rel: + break; case CYCLER_stretch: break; @@ -475,6 +494,7 @@ namespace Rotor { create_attribute("palette","palette list of web colours","Colour palette","000000"); title="Signal colour"; description="Cycles through a palette of background colours according to selector signal"; + UID="a2183fe0-2d09-11e3-9a64-538ee2cf40bc"; }; Signal_colour(map<string,string> &settings):Signal_colour() { base_settings(settings); @@ -511,6 +531,7 @@ namespace Rotor { create_signal_input("Signal","Signal input"); title="Signal greyscale"; description="Renders signal level as greyscale background"; + UID="ae91b8a0-2d09-11e3-aa7d-8b7f1ef1a439"; }; Signal_greyscale(map<string,string> &settings):Signal_greyscale() { base_settings(settings); @@ -545,6 +566,7 @@ namespace Rotor { create_attribute("operator","operator for image","Operator","+",{"+","-","*","/"}); title="Image arithmetic"; description="Performs arithmetic on an image with a signal or value"; + UID="bc3b633e-2d09-11e3-86b2-7fbba3d71604"; }; Image_arithmetic(map<string,string> &settings):Image_arithmetic() { base_settings(settings); @@ -592,6 +614,7 @@ namespace Rotor { create_attribute("mode","Blend mode","Blend mode","blend",{"blend","screen","multiply","alpha","wrap","xor"}); title ="Blend"; description="Blend images in various modes"; + UID="12ed7af0-2d0a-11e3-ae32-2b44203b93c9"; }; Blend(map<string,string> &settings):Blend() { base_settings(settings); @@ -655,6 +678,7 @@ namespace Rotor { create_attribute("mode","Mirror mode","Mirror mode","horiz",{"horiz","vert","horizR","vertR"}); title="Mirror"; description="Mirror video across a central axis"; + UID="1fed5b26-2d0a-11e3-9901-4b5ea78a005d"; }; Mirror(map<string,string> &settings):Mirror() { base_settings(settings); @@ -717,6 +741,7 @@ namespace Rotor { create_image_input("image input","Image input"); title="Monochrome"; description="Render video greyscale"; + UID="2c3cb12e-2d0a-11e3-a46b-a34e44493cef"; }; Monochrome(map<string,string> &settings):Monochrome() { base_settings(settings); @@ -747,6 +772,7 @@ namespace Rotor { create_image_input("alpha input","Alpha input"); title="Alpha merge"; description="Alpha merge two images"; + UID="3f5e3eee-2d0a-11e3-8679-1374154a9fa8"; }; Alpha_merge(map<string,string> &settings):Alpha_merge() { base_settings(settings); @@ -785,6 +811,7 @@ namespace Rotor { title="Difference matte"; description="Create an alpha channel using a background reference picture"; LUT=nullptr; + UID="4db4d2c8-2d0a-11e3-b08b-7fb00f8c562a"; }; Difference_matte(map<string,string> &settings):Difference_matte() { base_settings(settings); @@ -910,6 +937,7 @@ namespace Rotor { create_attribute("time_mode","time mode","Time mode","play",{"play","stretch"}); title="Video loader"; description="Loads a video file"; + UID="5b64b8ca-2d0a-11e3-92ed-4b7420b40040"; }; Video_loader(map<string,string> &settings): Video_loader() { base_settings(settings); @@ -1014,6 +1042,7 @@ namespace Rotor { description="Output to video"; start_silence=start_peak=end_silence=end_peak=-1.0f; silence_threshold=0.01f; + UID="693d2220-2d0a-11e3-9312-232908c3cc33"; }; Video_output(map<string,string> &settings):Video_output() { base_settings(settings); @@ -1085,6 +1114,7 @@ namespace Rotor { title="Video feedback"; description="Repeats output of the last frame"; feedback=nullptr; + UID="78edfa28-2d0a-11e3-86c7-9f266fabb10c"; }; Video_feedback(map<string,string> &settings):Video_feedback() { base_settings(settings); @@ -1143,6 +1173,7 @@ namespace Rotor { XML.addAttribute("node","inputs",type->duplicate_inputs?"expandable":"fixed",i); XML.addAttribute("node","title",type->title,i); XML.addAttribute("node","description",type->description,i); + XML.addAttribute("node","UID",type->UID,i); if (dynamic_cast<Signal_node*> (type)!=nullptr) XML.addAttribute("node","output","signal",i); if (dynamic_cast<Image_node*> (type)!=nullptr) XML.addAttribute("node","output","image",i); XML.pushTag("node",i); @@ -1239,6 +1270,7 @@ namespace Rotor { if (dynamic_cast<Signal_node*> (_node)!=nullptr) node["output"]="signal"; if (dynamic_cast<Image_node*> (_node)!=nullptr) node["output"]="image"; node["description"]=_node->description; + node["UID"]=_node->UID; if (_node->inputs.size()){ node["signal_inputs"]=Json::arrayValue; for (auto& input: _node->inputs) { @@ -1308,6 +1340,7 @@ namespace Rotor { if (dynamic_cast<Signal_node*> (type.second)!=nullptr) node["output"]="signal"; if (dynamic_cast<Image_node*> (type.second)!=nullptr) node["output"]="image"; node["description"]=type.second->description; + node["UID"]=type.second->UID; if (type.second->inputs.size()){ node["signal_inputs"]=Json::arrayValue; for (auto& input: type.second->inputs) { |
