Islands of Consciousness
Islands of Consciousness is damn cool. Random composition of random images feeding a random audio composition thingie, creating something pretty strange.
Exploration of sound, music, code and everything else in between.
Islands of Consciousness is damn cool. Random composition of random images feeding a random audio composition thingie, creating something pretty strange.
Posted by
mystran
at
15:34
0
comments
Labels: coolstuff
I'm currently working on stroking, and trying to come up with a decent algorithm for that stuff. The big problem here isn't really how to code stuff, but rather what things should look like.
Anyway, in order to visualize some problems for myself, I draw a stroke around a stroke. Then I got the idea that if I modify it a little bit, line segments will become visible, and I kinda liked what the result looked like, as it nicely illustrates the bezier subdivision done.
So in the picture below, there is a cubic bezier, which is subdivided into line segments. Then each of these line segments is made 15 pixels wide, and filled with white. Finally those are stroked with a black outline, which makes each individual segment clearly visible.
Posted by
mystran
at
10:29
0
comments
I think I just cracked a really hard problem: Why does one sometimes get lots of stuff done, while some days it's totally impossible to do anything?
Posted by
mystran
at
07:34
1 comments
Labels: meta
So far the hardest problem to solve turned out to be how to parametrise arcs. There are three obvious parameters, namely a control triangle of the rational quadratic bezier that is the arc. But how to get a weight for the middle point?
After playing with different parametrisation, I currently have one which gives the middle point the weight of cos(angle/2) where angle is an extra parameter to the function. It happens that when the legs of the control triangle are of equal length, and the angle between them is supplied as angle, one gets an arc of a circle. When the legs aren't of equal length, or the parameter isn't the angle between the legs, one gets an ellipse instead. For zero angle one gets normal non-rational bezier, and for angle pi one gets a straight line. Larger angles give the other side of the ellipse or circle.
Bonus benefit is that when the curve is subdivided in the middle, one doesn't need to track weights for the control points. Just using half the angle will give the proper midpoint weight.
For the typical uses of arcs, there's an extra function which simply makes the guess that the angle between the legs will probably be fine. For stuff like corners of polyline strokes or rectangles this seems to be a reasonable value.
And naturally we have a sample picture:
In the picture you see 3 elliptic arcs, one line and one cubic bezier.
Posted by
mystran
at
12:01
0
comments
Haven't got much of anything interesting added to the synthesizer thingie during the last few days. Instead, I've actually played around a bit in two dimensions. For a long time I've wanted a simple vector graphics library. A few days ago I started playing with the math. The result is rather boring system based on a couple of simple principles:

Posted by
mystran
at
19:23
0
comments
Ok, here's a really quick sample clip of stuff my synthesizer project currently does.
One sound, live playing, a touch of delay but no other effects.
Oh and the player (which hopefully works) is XSPF Web Music Player button version.
Posted by
mystran
at
12:37
1 comments