logo
Main Page | Namespaces | Classes | Compounds | Files | Compound Members | Related

Input.h

00001 //
00002 //  SYNTOPIA. See http://Syntopia.sourceforge.net for details and documentation.        
00003 //
00004 //      Author of this file: Mikael Hvidtfeldt Christensen (mikaelc@users.sourceforge.net)
00005 //
00006 
00007 
00008 // Visual C++ compiler warnings: 255 char limit on var names.....
00009 #pragma warning(disable: 4786)
00010 
00011 #ifndef __Input__
00012 #define __Input__
00013 
00014 #include "Output.h"
00015  
00016 namespace SynthCore {
00017 
00018 class Output;
00019 class Module;
00020 
00022   
00023 class Input {   
00024         
00025 public:
00027         Input(Module* host);                                                    
00028 
00030         ~Input() {;}
00031 
00033         Output * ConFrom;               
00034 
00036         Module * HostModule;    
00037         
00039         float read() { return ConFrom->value;}
00040         
00042         void ConnectFrom(Output * O);
00043         
00045         float updateRead();
00046         
00047         
00049         void loadXML(string tagName, XMLNode * n);      
00050 
00052         std::string getXML(std::string tag, int indent = 0) ;
00053 
00054 
00055         // Set this to true
00056         // if you dont wont the system to update the input module
00057         // every sample.
00058         // 'False' is the default setting.
00059         bool manualUpdate;      
00060 
00061 };
00062 
00063 }; // end of namespace: SynthCore
00064 
00065 #endif

Syntopia Project. Visit the web page, or the SourceForge page.
Docs made by Doxygen. Email: Mikael Christensen