Monday, 10 August 2009

SoundMixer.computeSpectrum + Timeline Audio

I am posting this little Flash ActionScript hint here in case somebody googles the same problem...

When a sound is embedded directly in the timeline of a Flash movie as opposed to being loaded dynamically, using the SoundMixer.computeSpectrum() method doesn't work. Well, sometimes it does and sometimes it doesn't. I had a working sound visualiser when I went to bed last night, and this morning I didn't. No changes to the code at all.
After a lot of googling I found this post by Jason Van Cleave on the [Flashcoders] mailing list. Thanks Jason!

Basically you have to load in an mp3 of silence, assign it to a channel and play it. Then your spectrum analyzer will work with your intended sound/music.

I know - its weird!

I also found loads of posts about how it is not a true spectrum analyser yadder, yadder which were quite interesting. If you like that kind of thing...

[CODE]
// Strange silent mp3 hack
var s:Sound = new Sound(new URLRequest("2sec.mp3"));
var channel:SoundChannel = new SoundChannel();
channel = s.play();

var ba:ByteArray = new ByteArray();
var g:Graphics = this.graphics;
addEventListener(Event.ENTER_FRAME, loop);

function loop(e:Event):void
{
SoundMixer.computeSpectrum(ba, true, 4);
g.clear();
g.lineStyle(3, 0xFFFFFF, 1);
g.beginFill(0xC11226);
g.moveTo(0, 250);

for(var i:uint=0; i<256; i++)
{
var num:Number = -ba.readFloat() * 500;
g.drawRect(i*2, 250, 2, num/15);
}

}


[CODE]

FLAR Adaptive Threshold

FLAR-What? I hear you ask.

It simply means that FLAR Augmented Reality now works in varied and (more importantly) variable lighting conditions. Which means great news for us when we go to Jetlag BIO in september!

Eric Socolofsky is the guy behind this fantastic addition to the world of FLAR (though not the inventor as it were). Read more at his blog

Friday, 17 July 2009

Back from Bilbao

Hey it's been a while amigos!

So I just (two weeks ago!) got back from my first expedition to Bilbao and I gotta say - "I ****kin love that place!" Not just Bilbao, the area in general. It was carnival season when I was there and every weekend a different town had a carnival with loads of live music so i was in Spanish heaven!
The last day was the most fun, we went to Vueltas San Juan Y San Pedro in Najera. The idea is to dance around the town all day drinking and throwing wine over everybody! Awesome! There is a video below so you can get an idea. It's a lot more fun than it looks believe me!



There are loads of musicians with saxaphones, trumpets and drums and Free wine. Woo hoo!

We also did some serious research while we were in Bilbao but thats for another post maybe....

Adios amigos!

Tuesday, 9 June 2009

Out Of The Other Side

Phew! My degree is officially finished! And I got a first so I'm stoked!
So you would think I would have some time on my hands - no way! I'm as busy as ever!

We (Ghosts in Armour) have got the Jetlag gig in Bilbao in October. Woot! Jetlag Bio is a very cool Participatory Arts Festival that is held for three days and boasts among other very talented exhibitors/participants The Graffiti research Lab. If you haven't seen their work check it out here - its very cool. We will be doing a kind of interactive augmented reality installation. More about that in a later post.

My website is now live www.gordoneverett.co.uk but far from finished. It also has some augmented reality on it - click on my business card and check it out (you will need to print out a card).

I'm really excited about another project I'm working on but unfortunately I can't blog about it just yet. Suffice it to say it could be a very successful and lucrative endeavour...

Monday, 27 April 2009

Multitouch Sphere

jBolton over at nuigroup is working on this Multitouch sphere and he's doing pretty well considering. When I get some time I think I'll make one....

Sunday, 19 April 2009

Twmbarlwm Two

Amazing views...

The top!


So this time I did it! I got to the top! You have to do a bit of carrying to get your bike up there as well but its worth it for the amazing views and the sense of achievement. Coming down is fun too. Oh, and I got a new bike (again) and its sooooo much better than the last one.For instance it didn't break.

Wednesday, 15 April 2009

Vote For Mr Squidling!


Mr Squidling - Augmented Reality Demo from Gordon Everett on Vimeo.
So I entered the Augmented reality contest over at the Papervision3D forum. You can see my entry here. You need to have a webcam on your monitor that you can point down at your desk just in front of your keyboard. Then you need to print out the special marker (link provided on the page) and follow the instructions.

Voting starts tomorrow!