Library generating complex waveforms for musical instruments to create realistic tones