The theoretical fundamental of the resulting waveform will be based on the current duration of the state (the sum of durations of all the segments). The harmonic spectrum will be the result of the current configuration of the amplitudes within that state.
Since both the duration of the state and its set of amplitudes will be changing, analysis of the resulting harmonic spectrum will require taking an FFT (Fast Fourier Transform) of every state. Since states will be on the order of two milliseconds in length, a great many FFT ``snapshots'' will have to be taken of the changing waveform. The FFT will thus be implemented on a DSP for speed. The result will be displayed graphically, allowing for continuous observation of the changing spectrum. This work is currently in progress.