Difference between revisions of "Sight to Sound"
Line 20: | Line 20: | ||
|} | |} | ||
{|style="margin: 0 auto;" | {|style="margin: 0 auto;" | ||
− | | [[File:Demo.png| | + | | [[File:Demo.png|200px|thumb|This subpatcher runs the demo mode. The left half outputs the selected frequency, and the right half generates the matrix output for the video screen.]] |
| [[File:img_spacer.png|50px|frameless|]] | | [[File:img_spacer.png|50px|frameless|]] | ||
− | | [[File:Data_sort.png| | + | | [[File:Data_sort.png|200px|thumb|This subpatcher begins running the camera mode.]] |
+ | | [[File:img_spacer.png|100px|frameless|]] | ||
+ | | [[File:Hilbert_setup.png|200px|thumb|This subpatcher sends the proper Hilbert Curves and sliders from image files.]] | ||
| [[File:img_spacer.png|50px|frameless|]] | | [[File:img_spacer.png|50px|frameless|]] | ||
− | | [[File: | + | |} |
+ | {|style="margin: 0 auto;" | ||
+ | | [[File:Demo_audio.png|200px|thumb|]] | ||
+ | | [[File:img_spacer.png|50px|frameless|]] | ||
+ | | [[File:Hilbert_to_Point.png|200px|thumb|]] | ||
+ | | [[File:img_spacer.png|50px|frameless|]] | ||
+ | | [[File:Point_to_Hilbert.png|200px|thumb|]] | ||
+ | | [[File:img_spacer.png|50px|frameless|]] | ||
+ | | [[File:Image_selection.png|200px|thumb|]] | ||
|} | |} |
Revision as of 22:21, 9 October 2019
This is a sight-to-sound application; something that takes a camera input and outputs a spectrum of audio frequencies. The creative task is to choose a mapping from 2D pixel-space to 1D frequency-space in a way that could be meaningful to the listener. Of course, it would take someone a long time to relearn their sight through sound, but the purpose of this project is just to implement the software.
Used here, the mapping from pixels to frequencies is the Hilbert Curve. This particular mapping is desirable for two reasons: first, when the camera dimensions increase, points on the curve approach more precise locations, tending toward a specific point. So increasing the dimensions makes better approximations of the camera data, which becomes "higher resolution sound" in terms of audio-sight. Second, the Hilbert Curve maintains that nearby pixels in pixel-space are assigned frequencies near each other in frequency-space. By leveraging these two intuitions of sight, the Hilbert curve is an excellent choice for the mapping for this hypothetical software.
The video below demonstrates the concept in Max. For a better understanding of this concept, check out this video by YouTube animator 3Blue1Brown: link
Here is a quick walkthrough of the code: