I did something like this:

Edit synth_waveform.cpp around line 175:

// Hack to get amplitude for LFO purposes.
last_amplitude = static_cast<float>(block->data[AUDIO_BLOCK_SAMPLES-1]) /...