Skip to content

Commit

Permalink
Extend the temporal window by the calibration scale, see #315
Browse files Browse the repository at this point in the history
  • Loading branch information
samreid committed Jan 15, 2019
1 parent b3a5cb2 commit 0ce207e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion js/common/model/IntensitySample.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,12 @@ define( require => {
// modules
const Emitter = require( 'AXON/Emitter' );
const waveInterference = require( 'WAVE_INTERFERENCE/waveInterference' );
const WaveInterferenceConstants = require( 'WAVE_INTERFERENCE/common/WaveInterferenceConstants' );

// constants
// Number of samples to use for a temporal average. Higher number means more latency and smoother. Lower number means
// lower latency, but more bouncy.
const HISTORY_LENGTH = 90;
const HISTORY_LENGTH = 90 * WaveInterferenceConstants.CALIBRATION_SCALE;

class IntensitySample {

Expand Down

0 comments on commit 0ce207e

Please sign in to comment.