Better geocaching coordinates (or QR-caching)

As you all know I like to do some geocaching once in a while, but I’m often a bit surprised as how wrong the coordinates can be. This is sometimes frustrating, and could easily be fixed, all you need is enough data. Another peeve is that you need to write on paper, to validate your find. I geocache with my phone, I don’t feel the need to write my name on moist paper, nor do I really need to exchange small treasures. It’s the search and the “getting out into nature” that does it for me.

Let me describe the solution to the described problems.

 

1 Every cache has a QR-code.
2 To validate your find all you have to do is scan the QR-Code
3 profit

A few things happens in the background though, when scanning the code, you
* Check the co-ordinates of the device that scans the qr-code
* check the device that does the scanning.
* Looks up the the cache in the database (so the app could present you with a dialog like: “You found “kära jesse” would you like to log it?”)
* Saves the registered coordinates and the device that found it (some devices have better GPS) so that the more ppl log the cache the better it’s co-ordinate gets.
* You log the find.

I think this could be something, I really really do. The more finds, the better coordinates.
Perhaps I should do a little test with the new geocaching.com API’s, guess we’ll have to hide a whole bunch of QR codes then.

Neural Network AudioEffect Imitator idea

I just want to hang this idea out here, one idea reason is for me to collect my thoughts so that it’s not in shambles, so I can go back to check out what I want. Another reason would be for someone other then me to take the idea and run with it.

OK, so this is what I want:
* An AU/VST plugin that can load a settings file (ie neural network) that emulates an effect (be it an old vintage distortion or something other out there)

This is how I think it could be done:
* Make a neural network trainer where you input the original audio file, what kind of parameters to run on it, and the expected result. Then then train the neural network with new output and change the parameters to that that would output the new sound-file.

A good thing about being a kickstarter junkie is that open sometimes buy’s really really useful stuff like this: http://www.shiffman.net/teaching/nature/nn/ but in .pdf format, and with even more info. So maybe, maybe I will be able to make this happen even though I previously thought I lacked the math skills needed.

 

Now if you’lll excuse me I’m gonna do a whole lot of reading.

Sunday afternoon fun.

Installing Lion on the old macbook.
Re-installing Lion to remove all old-stuff so I can give the computer to the missis.
Re-installing windows on Tova’s computer, some odd dll was missing, reinstalling seems like the least problem for me.

Fixing my bike, some moron tried to steal it Friday (during the day) but failed, since it was locked. What the idiot managed to do though was to break one of the gears of off the bike, since the lock got stuck there. I could not find the pannier, or bicycle-basket that I would have guessed it was called in English. Oh, well. I managed to get the gear back on and the metallic o-ring that keeps it in place also. I hope it will last for a while, it seems safe.

Shame I fixed it without using Staffans weld.

Vampires and money

I’ve been meaning to write about this subject for some time now, but life has gotten in the way.

Anyways.

When someone is turned to a vampire, however the process I think we can all agree on the fact that it turns the now-vampire’s head upside down. It’s a time of turmoil and bloodlust. A time when you know you will live forever. Start to kill humans to stay alive. A time to renew you’re whole wardrobe and also get new friends.

Now another fact that I think you we can agree on. A vampire is never poor.

In some cases the vampire lives in a crypt, but almost always s/he is surrounded by ancient valuables. More likely the vampire owns a mansion or a castle, where he/she lives.

No my to my question. How is it, that in a time of turmoil and lust for blood a vampire start’s investing in the future? Does vampireism come with a heightened sense of economics together with sun-allergies?

Possible solution could be:
* Accidentally leaves money in savings account and remembers later.
* Steals everything of value from it’s victims.
* Low “living” cost’s
* A secret hidden trust fund

If you can think of more, please share!

Seasons, a new masterpiece

A song composed entirely of small c-programs that renders wav-sound, arranged and assembled into an epic 38 minutes portraying the four seasons (homage to Vivaldi’s Le quattro stagioni) starting with spring, moving into summer autumn and then winter. All parts by itself a song in it’s own. Together they form a masterpiece.

Johan Larsby – Seasons by Larsby

{
long left = ((Y*(Y>>12)&(int)(Y*2.01) &int(Y*1.99))&(Y*(Y>>14)&int(Y*3.01)&int(Y*3.99)))+((Y*(Y>>16)&int(Y*2.02)&int(Y*1.98))-(Y*(Y>>18)&int(Y*3.02)&int(Y*2.98)));

int right = ((t*(t>>12)&(int)(t*2.01) &int(t*1.99))&(t*(t>>14)&int(t*3.01)&int(t*3.99)))+((t*(t>>16)&int(t*2.02)&int(t*1.98))-(t*(t>>18)&int(t*3.02)&int(t*2.99)));
}

for ( t=0; t<_SIZE; t+=1 )
{
int left = (3*t)^(t>>6)%256+(t%2);
int right = int((3.0011*t))^(t>>5)%256;
}

for ( t=0; t<_SIZE; t+=1 )
{
int left = (3*t)^(t>>6)%256+(t%6);
int right = int((4.0011*t))^(t>>5)%256;
}

{
int left = (t|t>>9)*(t>>(t>>12&13));
int right = (t|t>>9)*(t>>(t>>12&13));
}

{
int left = (t>>4| (t&((t&t&3)*t>>5))) / sin(t * .00025);
int right = (t>>4| (t&((t&t&3)*t>>5))) / sin(t * .00026);
}

{
int left = sin(t * .00025) * 24000 + sin(t * .001) * 5000 + (cos(t * .0005) *cos(t * .0005)) * 50 + cos((t*t) * .001) * 30 ;
int right = sin(t * .00025) * 23000 + sin(t * .003) * 5000 + (cos(t * .0005) *cos(t * .0006)) * 50 + cos((t*t) * .011) * 30 ;
}

{
count+=0.2;
int left = sin(count * .00025) * 24000 + sin(count * .001) * 5000 + (cos(count * .0005) *cos(count * .0005)) * 50 + cos((count*count) * .001) * 30 ;

int right = sin(count * .00025) * 23000 + sin(count * .003) * 5000 + (cos(count * .0005) *cos(count * .0006)) * 50 + cos((count*count) * .011) * 30 ;
}

{
int left = (t&t%4)-(t>>6&t>>11&(t*2)) ;
int right = (t&t%4)-(t>>6&t>>10&(t/2)) ;
}

{
int left = ((t%16)*(t>>4)|(0x156783131)-(t>>4))/(t>>17)^(t|(t>>4)) ;
int right = ((t%32)*(t>>4)|(0x156783131)-(t>>4))/(t>>17)^(t|(t>>4)) ;
}

 

Experimental music from very short C programs

A few weeks ago I ran onto this thread on poet:
http://www.pouet.net/topic.php?which=8357&page=1&x=25&y=6 witch had links to the following youtube videos

and

and

That shows what these extremely small programs can accomplish. Then little scale got a hold of it and made some pretty awesome Arduino examples.

of course Viznut wrote a great article about it all:

You can experiment online at http://wurstcaptures.untergrund.net/music/ or http://entropedia.co.uk/generative_music/

or use this little program to write the data out

main()
{
int t;
for(t=0;;t++)
{
putchar( t * ((t>>12|t>>16)&127&t>>8));
}
}

That little song was written by burri and sounds like this:
Tjollebolle2 by burri123

I have it as a ring-signal for my phone.

here are a few I’ve been fiddling around with:

http://wurstcaptures.untergrund.net/music/?oneliner=((t*(t%3E%3E12)%26t*2.01%26t*1.99)%26(t*(t%3E%3E14)%26t*3.01%26t*3.99))%2B((t*(t%3E%3E16)%26t*2.02%26t*1.98)-(t*(t%3E%3E18)%26t*3.02%26t*2.98))&oneliner2=&t0=0&tmod=0&duration=60&separation=0&rate=8000

and

http://wurstcaptures.untergrund.net/music/?oneliner=%283*t%29%5E%28t%3E%3E6%29%25256&oneliner2=%283.0001*t%29%5E%28t%3E%3E6.001%29%25256&t0=0&tmod=0&duration=60&separation=0&rate=8000

and

http://wurstcaptures.untergrund.net/music/?oneliner=%28t%2F2%3E%3E%281%2B%28%28t%3E%3E2%29%264%29%29%29*%28t%2F400%3E%3E%281%2B%28%28t%3E%3E2%29%264%29%29%29&oneliner2=&t0=0&tmod=0&duration=60&separation=100&rate=8000

 

I usually let them generate to be ten minutes or so and listen to them in headphones.

 

I’ve also ported somewhat like that to an ATtiny13 and ATTiny85, the later running an Arduino core. I will use that for the throw synth’s in trees project. Wich needs a better name.

And I’ve also made an iPhone program using this technique, let’s see if that will ever be something that I can release.

 

I’m a few steps closer throwing synth’s into trees

First I found an excellent tutorial on how to program ATTiny45’s.
They are cheap and with a little luck I might even be able to move my code to an ATtiny13, cheaper 🙂

Then pure greatness struck with the whole 1 line of audio-generating struck. Loads of inspiration there.

I now have a small program that compiles to 930 bytes (room for optimization there is) that plays loads of different sounds.

The volume of the sound is not that loud. But with a pair of easy to drive speakers it will be enough for most environments.

With real prices on everything but the solar panels I’m up to 35 SEK.

A drone rack in Ableton Live

I should be sleeping, but I’ve been sick for a week (and still is) so I’m tired of sleeping. It dawned on me that I could use max4live to make a drone-preset. Then it dawned on me that I do not need max4live.

I could use a rack, some chains and the XXX plugin. this is what it looks like:

This is where you can download it:
LittleDroneHelper.adg

And this is the song I made when testing it:
LittleDroneHelper by Larsby