Skip to content

Commit

Permalink
Stricter Band-Pass.
Browse files Browse the repository at this point in the history
  • Loading branch information
KristofferStrube committed Dec 21, 2023
1 parent 5fdbd74 commit 5b49ca1
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@
var midFrequencyModulator = await OscillatorNode.CreateAsync(JSRuntime, context, new() { Frequency = 87 });
var midFrequencyModulatorAmplifier = await GainNode.CreateAsync(JSRuntime, context, new() { Gain = 375 });
var midFrequencyCarrier = await OscillatorNode.CreateAsync(JSRuntime, context, new() { Frequency = 625 });
var midFrequencyBandPassFilter = await BiquadFilterNode.CreateAsync(JSRuntime, context, new() { Type = BiquadFilterType.Bandpass, Frequency = 625, Q = 1 });
var midFrequencyBandPassFilter = await BiquadFilterNode.CreateAsync(JSRuntime, context, new() { Type = BiquadFilterType.Bandpass, Frequency = 625, Q = 10 });
var midFrequencyGain = await GainNode.CreateAsync(JSRuntime, context, new() { Gain = 0 });
await midFrequencyModulator.ConnectAsync(midFrequencyModulatorAmplifier);
var carrierFrequency = await midFrequencyCarrier.GetFrequencyAsync();
Expand All @@ -139,7 +139,7 @@
await midFrequencyModulator.StartAsync();
await midFrequencyCarrier.StartAsync();
var midGain = await midFrequencyGain.GetGainAsync();
await midGain.LinearRampToValueAtTimeAsync(0.1f, time + 0.2);
await midGain.LinearRampToValueAtTimeAsync(0.05f, time + 0.2);
await midGain.LinearRampToValueAtTimeAsync(0, time + 0.3);
}

Expand Down

0 comments on commit 5b49ca1

Please sign in to comment.