Skip to content
Snippets Groups Projects
Commit 720067dc authored by aacuevas's avatar aacuevas
Browse files

Added gain propagation

parent 2ee7b100
Branches
Tags
No related merge requests found
......@@ -311,6 +311,7 @@ void GenericProcessor::update()
Channel* sourceChan = sourceNode->channels[i];
Channel* ch = new Channel(*sourceChan);
ch->setProcessor(this);
ch->bitVolts = ch->bitVolts*getDefaultBitVolts();
channels.add(ch);
}
......
......@@ -208,7 +208,7 @@ public:
/** Returns the default number of outputs, in case a processor has no source (or is itself a source).*/
virtual int getDefaultNumOutputs() {return 2;}
/** Returns the default number of volts per bit, in case a processor has no source (or is itself a source).*/
/** Returns the default number of volts per bit, in case a processor is a source, of the processor gain otherwise. (assumes data comes from a 16bit source)*/
virtual float getDefaultBitVolts() {return 1.0;}
/** Returns the next available channel (and increments the channel if the input is set to 'true'. */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment