Abstract An object-oriented programming environment for numerical simulation of magnetic resonance spectra is introduced and applied to NQR and NMR of quadrupolar nuclei. Using a Floquet approach it is possible to perform simulations of spin systems that are described by explicitly time-dependent Hamiltonians in full analogy to simulations of time-independent systems. Applications to magic angle spinning and double rotation are discussed.