var player = new CWPlayer({wpm: 25, effwpm: 20}); player.on('indexchanged', () => { if (player.Index>-1) { console.log('playing ' + player.Text[player.Index]); } }); player.on('parameterchanged', (param) => { console.log(`"${param}" changed to ${player[param]}`); }); player.on('play', () => { window.setTimeout(() => { player.EffWPM = 17; player.WPM = 15; // this cause the EffWPM to be subsequently set to 20 wpm }, 1400); });