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

Global sound art installation. (that I need help with)

 

I’ve been wanting to make some art to put in the public space for a long time now. Probably since forever. Since I like sound and synthesizers that has been my focus-area.

What?
Imagine a small box, Almost like an altoids-box, but thinner. On that box there is a string and on the other side of the string there is a weight or a hook. This box is thrown up in a tree, dangling back and forth and sounding. This would be an electronic sound, probably a pure sine or a dirty square-wave. This sound changes in pitch as the tree moves in the wind and the day dawns or set’s. The box is not alone. It has friends, and they sound together, creating a wonderful cacophony of sounds. Now imagine that there are many of these trees, all around earth. Now imagine that you could be part of that creation.

How?
The boxes contain a speaker, a circuit to produce the sound and a solar-cell to get the electricity.

Objectives.
I want the circuit to be cheap to produce, real cheap, so cheap that you wont mind throwing a bunch of them up a tree.
I don’t want to put a light sensitive resistor in the circuit, I’d rather have the electricity gathered set the pitch.
I’d like this to be funded via kickstarter.com, that way ppl will be able to contribute and get the sound-making devices and I wont have to shell out loads of cache, but most importantly I will have found people around the world that likes this idea and will be able to put it into action.
It has to be environmental friendly, in this case, it means that it wont be impossible to get the sound making devices down and recycled.
Volume should be of a 30 something while male speaking, not louder or softer. I think that is a good volume that will both be heard but not tinnitus inducing.

Why is this not already on kickstarter?
I want to be able to present a working solution and have prices on the hardware before I go on kickstarter, and right now I’m still prototyping the sound-making circtuit, these are what I’ve tried:

* 555 oscillator: (Needs amplification and does not change pitch when starved)
* A Couple (two)  LED-blink circuits changed to talk to speaker instead of a LED (could not get to work, probably needs amplification)
* Four or so Hex schmitt trigger IC’s (I really like these, cheap IC’s, very moddable but they need amplification and does not handle battery-starve as I would like them to do).

Maybe I’ll try and find some 2ohm speakers, right now all I’ve tried with are 8ohm’s, perhaps then amp would not be needed.

Prices range between 10sek and 20 SEK, without the solar-cell (witch are about the same in price). Then add casing and we’re up at like 50-60 SEK. This will lower with volume ofcourse, but not by much.

I’ve been glancing at clockwork robot’s heliophone, but the schematic is using a 1381 voltage detector that is 1.75 USD in.

Help?
I need some help, good ideas about the casing and the amplification. Also a good place to source solar-cells would be awesome. Any thought on making PCB’s would also kick ass. I’d like the circuit to be easily modifiable so that everyone putting them up can add their own artistic touch if they please.

____________________________________________ some links

555 oscillator: http://www.piclist.com/images/www/hobby_elec/e_ckt5.htm

clockwork robot: http://homepage.ntlworld.com/kinetic-arts/sculpture/gallery7/1.htm

Recepie for hotsauce

 

My son and I wanted to make chilli-sauce, more him then me really. We’ve already experimented with adding chili to Hollandaise but to little sting in that. Lukas was disappointment.

This is what we came up with:

1: A handful of chillies, some dried since last year and some fresh.
2: An equal amount of garlic slices.
3: Some oil
4: Some salt
5: some honey.

Clean and rinse the chillies and the garlic. Remove the seeds from the chillies, put it in a bowl and mix it. (Lukas tasted one of the chilli seeds, then he drank a lot of water).

We keep ours in the fridge.