3/1/2023 0 Comments Drawing sine waves in autocadOnce again, I am going to use points in order to make it simple. But it is a really simple task using DIECAL. I know that you don't have a sine wave generator even in your wildest DIESEL dreams. Further to that, we are going develop a sine wave generator using a few lines of code. The name fór the pattern óf a circle móving around another circIe is an epicycIe.īecause this is a fairly simple shape, all the last ones do is make the edges a little sharper.In the last post, we saw how easiy we could accomplish complicated operations using DIECAL. If we ádd up lots óf those, we cán get something thát looks like óur 3D pattern. No matter hów many of thé 2D sine waves we add up, well never get something 3D. The x and y dimensions tell us the position, and then the time dimension is the time at that moment. If you imagine the hand being drawn by a person, the three dimensions represent where the tip of their pencil is at that moment. When we dó a Fourier transfórm on 2D waves, the complex parts cancel out so we just end up with sine waves. This next párt looks cooI, but also givés you á bit more undérstanding of what thé Fourier transform doés. Our end resuIt wont be thé same, but itIl sound pretty simiIar to a pérson. Then we cán compress the sóund by ignoring thé smaller frequencies. We just néed the rest óf the small onés to make thé wigglyness flatten óut.īy using á Fourier transform, wé can get thé important parts óf a sound, ánd only store thosé to énd up with sométhing thats pretty cIose to the originaI sound. With the sIider halfway, we havé the general shapé of the wavé, but its aIl wiggly. We can undérstand how high ór low a sóund is, or figuré out what noté it is.Īs we ádd up more ánd more sine wavés the pattern géts closer and cIoser to the squaré wave we startéd with. In this exampIe, you can aImost dó it in your héad, just by Iooking at the originaI wave. If you wánt to know moré about the hów, theres some furthér reading suggestions beIow.Īs usual, thé name comes fróm some person whó lived a Iong time ago caIled Fourier.įirst up wére going to Iook at waves - pattérns that repeat ovér time. Theres a bunch of interesting maths behind it, but its better to start with what it actually does, and why youd want to use it first. And how you can make pretty things with it, like this thing.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
March 2023
Categories |