Wednesday 30 September 2015

The Secret Rules of Modern Living: Algorithms

Another fantastic documentary from the BBC about algorithms.  As ever fulfilling there charter to educate and entertain. Marcus du Sautoy explains and demonstrates some of the most common algorithms in an interesting and easy to understand format. With many a good example of the importance of algorithms in our every day life.

JavaScript Labyrinth

Not having much of experience in JavaScript, I was pleasantly surprised how easy it was to pick up after coming from C#. But I soon fell down the rabbit hole of different framework recommendation. JQuery and angular.js seem to be the most popular, with both being used by the big companys like Google.

So the last few days have been spend researching the different benefits of these frameworks and which I should use them at all. It does not seem a good idea to have the base Midi library of code I plan to develop, reliant on outside sources.

There are at least some very good resources for both frameworks online:

For angular this seems to be a good starting point. With a large list of resources including some good video tutorials from the author.

Angular.Js

JQuery

Wednesday 23 September 2015

Updated Web API Causes problems

The last few days I have been trying a few examples of web audio  api and have had a few problems implementing some of the features.
For example, when we create a new oscillator we can set the waveform type to:

  • Sine
  • Square
  • Sawtooth
  • Triangle 
So the old way to set the waveform type was using a number to represent the type or the name of the waveform:

oscillator1.type = 0; // for a sine wave
oscillator2.type = square;


A search on the error message I received led me to the updated syntax for the api:

oscillator2.type = "square";

So from this I have learnt to always check the dates of tutorials and have the web standards site open for reference.

Tuesday 22 September 2015

Some Research

Introducing the Web Audio API

Lecture given by Chris Lowis, co-chair of the W3C Audio Working Group at BBC New Broadcasting House on 8th October 2013.


Steve Kinney: Building a musical instrument with the Web Audio API

A look at the basics of audio synthesis using Web Audio API. 2015


Making the Web Rock: The Web Audio API

Join Google's Chris Wilson as he asks, and answers, Why do we need another audio API? 2013



Hello World


It has long been my dream to be able to build my own midi software, customized just for me. With the implementation of web audio in html5 i am one step closer to my dream. In this blog I will log the trials and tribulations of reaching this goal.