Dear all,
I like to adjust the gain from the my CW decoder I use this code,
// GUItool: begin automatically generated code
AudioInputI2S i2sIn; //xy=231.25,88
AudioAmplifier amp1; //xy=435.25,80.25
AudioFilterBiquad iirIn; //xy=575.25,80
AudioRecordQueue inQueue; //xy=740.25,236
AudioAnalyzePeak peakIn; //xy=765.25,66
AudioConnection patchCord1(i2sIn, 0, amp1, 0);
AudioConnection patchCord2(amp1, iirIn);
AudioConnection patchCord3(iirIn, inQueue);
AudioConnection patchCord4(iirIn, peakIn);
AudioOutputI2S audioOutput;
AudioControlSGTL5000 sgtl5000; //xy=1253.25,103
// GUItool: end automatically generated code
Is this possible in the loop to adjust the gain?
Thanks in advance,
Johan
void loop {
if (input_level > 2 ) { amp1.gain(0.005);}
if (input_level < 1 ) { amp1.gain(0.01);}
}
I like to adjust the gain from the my CW decoder I use this code,
// GUItool: begin automatically generated code
AudioInputI2S i2sIn; //xy=231.25,88
AudioAmplifier amp1; //xy=435.25,80.25
AudioFilterBiquad iirIn; //xy=575.25,80
AudioRecordQueue inQueue; //xy=740.25,236
AudioAnalyzePeak peakIn; //xy=765.25,66
AudioConnection patchCord1(i2sIn, 0, amp1, 0);
AudioConnection patchCord2(amp1, iirIn);
AudioConnection patchCord3(iirIn, inQueue);
AudioConnection patchCord4(iirIn, peakIn);
AudioOutputI2S audioOutput;
AudioControlSGTL5000 sgtl5000; //xy=1253.25,103
// GUItool: end automatically generated code
Is this possible in the loop to adjust the gain?
Thanks in advance,
Johan
void loop {
if (input_level > 2 ) { amp1.gain(0.005);}
if (input_level < 1 ) { amp1.gain(0.01);}
}