Skip to content

Commit 5b49ca1

Browse files
Stricter Band-Pass.
1 parent 5fdbd74 commit 5b49ca1

File tree

1 file changed

+2
-2
lines changed
  • samples/KristofferStrube.Blazor.WebAudio.WasmExample/Pages

1 file changed

+2
-2
lines changed

samples/KristofferStrube.Blazor.WebAudio.WasmExample/Pages/Drums.razor

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@
128128
var midFrequencyModulator = await OscillatorNode.CreateAsync(JSRuntime, context, new() { Frequency = 87 });
129129
var midFrequencyModulatorAmplifier = await GainNode.CreateAsync(JSRuntime, context, new() { Gain = 375 });
130130
var midFrequencyCarrier = await OscillatorNode.CreateAsync(JSRuntime, context, new() { Frequency = 625 });
131-
var midFrequencyBandPassFilter = await BiquadFilterNode.CreateAsync(JSRuntime, context, new() { Type = BiquadFilterType.Bandpass, Frequency = 625, Q = 1 });
131+
var midFrequencyBandPassFilter = await BiquadFilterNode.CreateAsync(JSRuntime, context, new() { Type = BiquadFilterType.Bandpass, Frequency = 625, Q = 10 });
132132
var midFrequencyGain = await GainNode.CreateAsync(JSRuntime, context, new() { Gain = 0 });
133133
await midFrequencyModulator.ConnectAsync(midFrequencyModulatorAmplifier);
134134
var carrierFrequency = await midFrequencyCarrier.GetFrequencyAsync();
@@ -139,7 +139,7 @@
139139
await midFrequencyModulator.StartAsync();
140140
await midFrequencyCarrier.StartAsync();
141141
var midGain = await midFrequencyGain.GetGainAsync();
142-
await midGain.LinearRampToValueAtTimeAsync(0.1f, time + 0.2);
142+
await midGain.LinearRampToValueAtTimeAsync(0.05f, time + 0.2);
143143
await midGain.LinearRampToValueAtTimeAsync(0, time + 0.3);
144144
}
145145

0 commit comments

Comments
 (0)