![]() The Web Audio API is really just a virtual way of creating a sound system. You can also checkout the W3C history of the Web Audio API here. I recommend checking out the pages here for more info. I’m going to try to show a high level view of the Web Audio API in the following section. With the advent of the Web Audio API, all of the previous challenges were resolved as it provided a framework to do (almost) any type of sound work you can think of. the element did not give you fine grain control over sounds and manipulation like a DJ would do. With HTML5, the element fixed a lot of issues, but had huge limitations if you wanted to generate your own sounds from web apps. ![]() Flash media plugins were also less than optimal. When flash media was developed, it provided a cross browser solution but still required users to install software. The initial web browser’s had very minimal support for sound with specific elements. Sound has always been a challenge as browsers have developed. Now that you’ve got some background on Morse code, let’s talk about how you could use Javascript to transmit it with colors and sounds. Web Audio Through History ( click here for the source) With the invention of the telegraph, this became even more powerful as messages could be transmitted over very long distances as far back as the early 1900s. That makes it really powerful because as long as both the sender and receiver understand Morse Code, messages can be sent across long distances with a flashlight or radio. The “dots” and “dashes” that compose Morse Code can be transmitted via anything that can produce a varied signal. The characters include the alphabet (a-z) as well as numbers (0–9) and some punctuation. Morse Code (pronounced like the “Morse” in “Morsel”, not “Morris” like the name, as my wife described to me) can be defined as an encoded language of “dots” and “dashes” that correspond to a preset table of characters. I’m going to walkthrough implementations using both the Web Audio API and Javascript’s setTimeout function. The rest of this post is going to cover some cool ways to create Morse Code with Javascript. Then I spent subsequent time reading (and coding) with both Javascript Timers and the Web Audio API playing with different methods of sending messages via light (colors) and sound.Īnd ultimately, since a lot of this was kinda cool, I decided to write a post on it. I Googled this for a little while, and found several people used the Web Audio API to generate Morse Code with Javascript. Since I was interested in this, I thought it would be cool to create Morse Code with a program if I could. This technology was ground-breaking when it was developed, and it’s still relevant today. We’ve probably also watched Navy movies where ship commanders are sending the famous “SOS” when a ship is in trouble. We’ve all watched movies about WWII where governments send telegraphs using Morse Code to transmit messages across huge distances. In the computer science world, Morse Code is one of those old-timey technologies that’s still cool.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |