1. A computer-readable medium having instructions stored thereon that, when executed by a processor, cause the processor to generate a haptic effect, the generating comprising: receiving a parameter; generating a plurality of waveforms based on the received parameter; combining each waveform with an envelope to generate a first grain and a second grain; combining the first and second grains to generate a cloud, wherein the cloud comprises a representation of the first and second grains; and generating the haptic effect based on the cloud.