From 77db0a05b9b549416d4ffcf18f4c091c4d6b85ec Mon Sep 17 00:00:00 2001
From: rameerez <4920956+rameerez@users.noreply.github.com>
Date: Fri, 1 Sep 2023 16:53:06 +0200
Subject: [PATCH] Fix `get_bip_bip` function not using frequency param

---
 demos/audiogen_demo.ipynb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/demos/audiogen_demo.ipynb b/demos/audiogen_demo.ipynb
index d3ad73fb..e209fd7b 100644
--- a/demos/audiogen_demo.ipynb
+++ b/demos/audiogen_demo.ipynb
@@ -83,7 +83,7 @@
     "    \"\"\"Generates a series of bip bip at the given frequency.\"\"\"\n",
     "    t = torch.arange(\n",
     "        int(duration * sample_rate), device=\"cuda\", dtype=torch.float) / sample_rate\n",
-    "    wav = torch.cos(2 * math.pi * 440 * t)[None]\n",
+    "    wav = torch.cos(2 * math.pi * frequency * t)[None]\n",
     "    tp = (t % (2 * bip_duration)) / (2 * bip_duration)\n",
     "    envelope = (tp >= 0.5).float()\n",
     "    return wav * envelope"