summaryrefslogtreecommitdiff
path: root/NT/src/rotor.cpp
diff options
context:
space:
mode:
authorTim Redfern <tim@eclectronics.org>2014-01-24 17:00:22 +0000
committerTim Redfern <tim@eclectronics.org>2014-01-24 17:00:22 +0000
commit1f2bc21fd5ee9bff4fce190d7bb0ee4462e76e87 (patch)
treee42440db80a363c503e1e0b552631adbb194c245 /NT/src/rotor.cpp
parent913bb43738c7d7391cd990ff1fc3f261afdf78ee (diff)
logging in nodes and text_render proof of concept
Diffstat (limited to 'NT/src/rotor.cpp')
-rw-r--r--NT/src/rotor.cpp11
1 files changed, 4 insertions, 7 deletions
diff --git a/NT/src/rotor.cpp b/NT/src/rotor.cpp
index f600c7f..6380f28 100644
--- a/NT/src/rotor.cpp
+++ b/NT/src/rotor.cpp
@@ -13,6 +13,9 @@ string Variable::get_connection_id(){
if (connection) return connection->get_id();
return "";
}
+string Variable::get_name(){
+ return name;
+}
template <class T>
Json::Value Variable_type<T>::to_json(){
@@ -98,13 +101,7 @@ int main(){
//now need a way to grab output
- Node* p=r.graph.find_node("print");
+ printf("%s\n",r.text_render().c_str());
- if (p){
- for (double t=0;t<10.0;t+=0.765){
- Frame_parameters f=Frame_parameters(t,25.0,10.0,640,360);
- printf("%04f %s\n",t,(dynamic_cast<Node_type<string>*>(p))->get_output(f).c_str());
- }
- }
}