dhmit / sonification

15 stars 5 forks source link

Color Encoding to Sound v2 (cherry picked merge fix) #52

Closed ryaanahmed closed 2 years ago

ryaanahmed commented 2 years ago

This PR supersedes #51 in order to fix some merge problems over there. Copying in the full PR description here:

Original PR opened by @leanneshen et al.


This PR allows users to create an instrument (similar to the csv ratio instrument) based on multiple chosen RGB values in a palette. The user can edit 7 colors on a palette by selecting a rectangle and changing the value on the RGB slider. Similar to the last PR for this branch, the colors are converted to energy values and converted to the frequency in the range (150, 350) Hz. After clicking on the “Generate/Update Instrument” button, an instrument volume control slider with a tone corresponding to the energy of the color is generated and the sound is played. A user can also update the colors on the color picker after the instrument is generated.

image

Potential future design changes: