How to create a rectangle Waveform? #69
-
[dear community, i am new in c# and also using first time NWaves lib. Can anybody helps me how to create a rectangle like that (i have attached a image). In audacity i can simple create this via menu. But how i can do that with the NWaves lib? thank you so much](url) |
Beta Was this translation helpful? Give feedback.
Answered by
ar1st0crat
Nov 15, 2022
Replies: 1 comment 1 reply
-
Hi, does this code generate the waveform you need? var samplingFrequency = 44100/*Hz*/;
DiscreteSignal signal =
new SquareWaveBuilder()
.SetParameter("frequency", 432.0/*Hz*/)
.SetParameter("min", -0.8)
.SetParameter("max", 0.8)
.OfDuration(4*60 + 16) // seconds
.SampledAt(samplingFrequency)
.Build(); |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
icegh
# for free
to join this conversation on GitHub.
Already have an account?
# to comment
Hi, does this code generate the waveform you need?