Simple console tone generator (functional analog http://onlinetonegenerator.com/ without the possibility of preserving)