Category: Uncategorized

Making Music with The WebAudio API Part 4

At the end of part 3 of this series, we had an HTML document for a page with buttons to start and stop playing a tone, we could select a musical note pitch for the tone, and we could change the volume. There were also some things about it that were a little rough that… Read more »

Making Music with The WebAudio API Part 3

At the end of Part 2 of this series, we had a page that lets a user play and stop a tone and to specify a musical note pitch for tones relative to Middle A.

This always produces a tone at a particular volume — the loudest possible. To understand what that means, it it is… Read more »

Making Music with The WebAudio API Part 2

In Part 1 of this series, we created a page that lets a user click a button to play a tone and then click another button to stop playing the tone as follows…

Now, let’s make it possible to play and stop the note over and over again. First, we’ll try doing it the… Read more »

Making Music with The WebAudio API Part 1

The WebAudio API gives us a way to use JavaScript to make and manipulate audio within a Web page in some very powerful ways. This series of articles demonstrates how we can use WebAudio to synthesize music. The following example lets a user click a button to play a tone and click another button to… Read more »

How To Compute 1+2+…+n and How to Remember How

I was recently writing a test for an object containing a map of currency amounts for months by month number. I needed to verify that each value was exposed through a month-specific attribute and that it exposed the sum of values across all the months through another attribute. For test data, I chose the following… Read more »

Curious Effects of Different Ruby Class & Module Nesting Styles

Typically, in Ruby, we see modules and classes nested by having one declaration inside of the the other.

When the outer class or module has previously been declared, however, we can also declare the nested one directly using its fully qualified name, and it is not uncommon to see that done.

On the… Read more »