Thursday, 23 October 2008

It's sound Jim, but not as we know it!

I can now play mono wav files with a sample rate of 44100Hz. Stereo should be relativley easy, but isn't really needed. There seems to be one snag, the sample buffers don't seem to be playing on cue, it's jumping to the next buffer far too early. This is leading to whatever song I play through, being turned into a bunch of babbling chipmunks :S
Anyone used the Steinberg ASIO SDK? Now any good forums or resources for info on using it? If so let me know.

Thursday, 16 October 2008

Success! (well, sort of)

Woo! Visual Studio and the existing code cut me some slack today. I finally managed to properly turn the library code into a visual studio 2008 project, without something breaking, and then using said project + library in another project (again, without breaking anything). Not just that, most of the unnecessary code has been cleared away, and I have a clear(ish) idea of what needs to be done. The WiiMote seems to be working ok, though a bit jumpy, and the sensor bar is doing something to the values from the WiiMote, I just need to read the WiiYourself library docs...

Monday, 13 October 2008

A new term, a new project..

So, I'm finally all settled in back at university, and getting a start on my new project for the year; 3D Auditory Pixels. The brief for the project goes a little something like this:

3D Auditory Pixels

The Schools of Computer Science and Psychology have just purchased an audio system capable of
generating as if it is emanating from a specific point in 3D space.
This is achieved via control of an array of 20 small loudspeakers.

This project will look at developing methods to generate sounds that can be placed in the 3D soundscape.
Some simple interface and methods for controlling the sound location will need to be implemented.

Scope exists to also utilise 3D motion capture equipment as input to control the sound location.
For example, a virtual 3D "theremin" musical instrument (www.thereminworld.com) could be developed where the 3D position of
the hand, for example, controls parameters of a simple "theremin" sound generator.

The loudspeakers are actually located behind an acoustically transparent video screen. So scope exists to us the
screen for video output. Some 3D display technologies including a 3D head mounted display or stereo viewers
could also be utilised.

The first part of the project will be to devise suitable sound generation and control of the sound. The second part,
which could take one of many paths, would look to utilise some of the I/O technology mentioned above.

Prerequisites: Good level of programming and algorithms. C/C++ or Java programming knowledge.
Some knowledge of audio and basic maths an advantage.

So, in layman's terms, i get to mess around with a kick ass sound system, a WiiMote, and a sha-weet Polhemus motion capture rig.
I've made a little progres so far, mostly just experimentation;
  • Capturing motion from the WiiYourself! library
  • Playing randomised noise through sequencial/random or selected speakers
  • Trying to figure out what the hell is going on with the library written by the summer student, and figuring out where to start on a re-write
  • Had a look at the libsndfile library and attempted to read a WAVE file to an array
  • Tried to figure out Visual Studio 2008s (eugh..) idiosyncrasies
  • Talked to an Audio-Psychophysicist from the psychology department about what he needs from an API I'll be working on, and what they'll be doing
Though it's only two weeks in, there seems to be some half decent progress being made nonetheless.

The psychology aspect seems really interesting, involving the ways the mind interprets the senses, weights them according to their accuracy and compiles them into what you see/hear etc. For example, vision is usually the more heavier weighted, so if there's a dot on the screen, and a sound coming from near by, your mind will tell you the sound is coming from the spot. I believe this is the ventriloquism effect. However, if you blur the spot, or make it much bigger, your mind lessens the weight on your vision, and instead sound takes the primary role.

It's all crazy-crazy stuff.

Wednesday, 3 September 2008

Frak it!

Here's an article on CNN about the proliferation of the word "Frak" from everyones favourite series Battlestar Galactica.

Stephen Fry, GNU and 25 years of it.

Everyone loves Stephen Fry. His way with words, and they way that everything he says, well, you just believe it. It seems that GNU (GNU is Not Unix) has picked up on that, and have wrangled him in for some free software promotion! So for GNUs 25th birthday, Mr Fry made this video, which, as his popular television show QI stands for, is quite interesting. So go, watch and most importantly, learn!

Tuesday, 2 September 2008

Google Chrome, the new Firefox?

Google have announced that they will be releasing a new completely open source web browser. It will be based upon the Webkit browser engine with the rest of the browser being written from scratch. It'll feature a multiple processes for everything, tabs, pages, javascript, all to maintain security, prevent lockups and memory leaks and to keep the browser responsive. There's a new javascript Virtual Machine called V8 which should be *fast*. For more information, see the comic. Also, more info here.

Name change!

I was tired yesterday, and couldn't think of a name. So here's the new name;

/0

"Huh?" you say? It's pronounced "divide by zero".

Because dividing by zero makes the world fun.