generating static spectrum