From d6899eff58a5f46e02ec16debc7f2639da6f5c16 Mon Sep 17 00:00:00 2001 From: KristofferStrube Date: Thu, 21 Dec 2023 23:14:25 +0100 Subject: [PATCH] Start of bass-drum. --- .../Pages/Drums.razor | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/samples/KristofferStrube.Blazor.WebAudio.WasmExample/Pages/Drums.razor b/samples/KristofferStrube.Blazor.WebAudio.WasmExample/Pages/Drums.razor index 7f430e7..69e2de6 100644 --- a/samples/KristofferStrube.Blazor.WebAudio.WasmExample/Pages/Drums.razor +++ b/samples/KristofferStrube.Blazor.WebAudio.WasmExample/Pages/Drums.razor @@ -141,8 +141,8 @@ { var gain = await oscillatorAmplifiers[i].GetGainAsync(); await gain.SetValueAsync(await gain.GetValueAsync()); - await gain.LinearRampToValueAtTimeAsync(1 / (float)6, time + 0.3); - await gain.LinearRampToValueAtTimeAsync(0, time + 1); + await gain.LinearRampToValueAtTimeAsync(1 / (float)6, time + 0.2); + await gain.LinearRampToValueAtTimeAsync(0, time + 0.4); } }