Commission Music

Commission Music
Bespoke Noise!!

Thursday, 12 September 2013


Today I went to the dentist because my dental surgery from last week was still all swollen and that turns out to not be a good sign. So I picked up some antibiotics and then went to the Goldsmiths degree show, which was interesting and extremely variable. I did not get a lot of creative pacting done today. I read a wee bit about how to declare objects in javascript, which is really easy:

var cleff = {
unicode: "&x#1d11e";
repeats: 1

What I really need is just a syntax cheat sheet, since I'm already familiar with most of the concepts of this language. So I skipped ahead to canvases.

Your browser does not support the HTML5 canvas tag.

What the source for that looks like is:

<canvas id="myCanvas" width="200" height="100" style="border:1px solid #d3d3d3;">
Your browser does not support the HTML5 canvas tag.</canvas>


var c=document.getElementById("myCanvas");
var ctx=c.getContext("2d");
ctx.moveTo(0, 32);
ctx.lineTo(200, 32);


I need to learn how to get unicode into those strings. Just typing it in with the ctrl-shift-u thing doesn't work, nor does typing the html escape sequence. Also, it seems like changing the line colour didn't work.

No comments: