implemented a footage viewer

Essentially a minor derivation of a viewer type that can automatically view
footage from the project (i.e. not in a sequence).
This commit is contained in:
itsmattkc
2019-12-30 20:17:48 +11:00
parent 55ea4a8177
commit 0db13a96ab
34 changed files with 439 additions and 152 deletions
+4 -2
View File
@@ -50,15 +50,17 @@ void PanNode::ProcessSamples(const NodeValueDatabase *values, const AudioRenderi
float pan_val = (*values)[panning_input_].Get(NodeParam::kFloat).toFloat();
output[index] = input[index];
if (index%2 == 0) {
// Sample is left channel
if (pan_val > 0) {
output[index] = input[index] * (1.0F - pan_val);
output[index] *= (1.0F - pan_val);
}
} else {
// Sample is right channel
if (pan_val < 0) {
output[index] = input[index] * (1.0F - qAbs(pan_val));
output[index] *= (1.0F - qAbs(pan_val));
}
}
}