generate a table from frequencies 🎶