Adjust some settings

This commit is contained in:
Travis Ralston 2021-03-25 17:30:44 -06:00
parent 1419ac6b69
commit 101679f647
2 changed files with 5 additions and 6 deletions

View file

@ -49,12 +49,12 @@ export default class LiveRecordingWaveform extends React.PureComponent<IProps, I
const bars = arrayFastResample(Array.from(update.waveform), DOWNSAMPLE_TARGET);
this.setState({
// The incoming data is between zero and one, but typically even screaming into a
// microphone won't send you over 0.6, so we "cap" the graph at about 0.35 for a
// microphone won't send you over 0.6, so we "cap" the graph at about 0.50 for a
// point where the average user can still see feedback and be perceived as peaking
// when talking "loudly".
//
// We multiply by 100 because the Waveform component wants values in 0-100 (percentages)
heights: bars.map(b => percentageOf(b, 0, 0.35) * 100),
heights: bars.map(b => percentageOf(b, 0, 0.50) * 100),
});
};