Commission Music

Commission Music
Bespoke Noise!!

Saturday, 14 September 2013

Scrambling and Rotating

I'm still doing stuff with the Bravura font, so you're going to have to follow a link to see it.

New things on that page include changing font size per item, rotating an individual object, constraining random numbers and shuffling an array. The last of which is not included in javascript. I cut and pasted a function from stack overflow.

Right now I'm using random numbers, but the end version needs to work deterministically in response to data and probably everyone's screens should more or less match. So the randomness is for now and not later.

I need to make some functions for drawing arrows and staves. And I need to figure out how the bounding boxes will work and how things will fade in and out. Every kind of glyph or drawn thing on the screen needs to be an object that takes parameters in regards to size and rotation and knows how to draw itself.

In short, it's starting to look like music, but there's a long way to go.

No comments: