diff CollidoscopeApp/src/PGranularNode.cpp @ 3:7fb593d53361

added comments
author Fiore Martin <f.martin@qmul.ac.uk>
date Tue, 12 Jul 2016 18:29:38 +0200
parents 02467299402e
children 75b744078d66
line wrap: on
line diff
--- a/CollidoscopeApp/src/PGranularNode.cpp	Mon Jul 11 17:03:40 2016 +0200
+++ b/CollidoscopeApp/src/PGranularNode.cpp	Tue Jul 12 18:29:38 2016 +0200
@@ -59,7 +59,6 @@
 void PGranularNode::process (ci::audio::Buffer *buffer )
 {
     // only update PGranular if the atomic value has changed from the previous time
-
     const boost::optional<size_t> selectionSize = mSelectionSize.get();
     if ( selectionSize ){
         mPGranularLoop->setSelectionSize( *selectionSize );
@@ -112,6 +111,7 @@
     }
 }
 
+// Called back when new grnular is triggered of turned off. Sends notification message to graphic thread.
 void PGranularNode::operator()( char msgType, int ID ) {
 
     switch ( msgType ){