For example the leftmost edge of the pixellated shape above is translated into this number string:
...... 4 4 4 4 4 4 5 5 5 5 5 5 5 6 6 6 6 6 6 6 6 6 6 6 6 6 6 6 0 0 0 0 0 0 0 0 .......
Then you get this plot of the X-values of the shape as you go anticlockwise around its contour:
And this plot of the Y-values of the shape as you go around its contour:
You can see immediately that these shapes can be transformed into soundwaves easily. And we have a lot of degrees of freedom while combining the X and Y waveforms: we can add them together in different ratios and we can time-shift them with respect to each other.
Next time we'll see if we can get some sounds using python and nsound.
Note
You can make an X-plot by substituting these values in the chain code:
1,0,7 => 1
2,6 => 0
3,4,5 => 7
And an Y-plot by substituting these values:
1,2,3 => 1
4,0 => 0
5,6,7 => 7
References
Shape software - http://lbm.ab.a.u-tokyo.ac.jp/~iwata/shape/index.html
Python XY - http://code.google.com/p/pythonxy/
Nsound (included in Python XY) - http://nsound.sourceforge.net/users_guide/index.html
I look forward to seeing hearing of your sonic songlines. You sparked my interest in the concept... (I found this website while googling. I think you will enjoy it. http://www.drsrl.com/
ReplyDeleteenjoy playing in your sand:)fun!ctions