Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create a data object for sonified cubes - hack image layer first #3329

Open
stscijirahubjdat opened this issue Dec 3, 2024 · 0 comments
Open

Comments

@stscijirahubjdat
Copy link

stscijirahubjdat commented Dec 3, 2024

Issue JDAT-4991 was created on JIRA by Jesse Averbukh:

Indigo tries using the image layer to index the sound layer as a first attempt. Depending how it goes, glue team can build something dedicated to sound in glue.

This will mean that the sonified cubes will act as layers in the image viewers, allowing us to use mouse over events independent of the spectrum-at-spaxel tool to trigger the sounds. This will also include having plot options know how to handle sound layers with some configuration options available in that plugin (slider for sound for each layer, ability to mute and unmute, etc.).

After discussion with glue folks (may need splitting into multiple tickets): the first pass of this could be an image layer consisting of lookup indices corresponding to the audio.  The audio themselves would still live outside glue, perhaps in a dictionary with keys matching the labels of the layers containing a flat list of audio data.  The image layers should either have the drawing methods overwritten to do nothing, or for a POC could just force the opacity to zero.  Plot options should know to hide most options and only show "visible/audible" and volume (this might require subclassing the state or could be stored separately for the POC).  The stylized layer icon should not show color, but somehow indicate that its an audio layer.  Mouseover should skip audio layers in the iterator/top-layer logic.  All mouseover events (removed from the tool) should then iterate through any enabled audio layers, use existing mouseover logic to get the index, retrieve the volume, mix all tracks, and play the audio.

 

Scope for this ticket: keeping the existing implementation for now, if a dev flag is enabled, when sonify also store the audio in a dictionary and create a transparent index layer and at least have a callback to lookup the index.  Scope out follow-up tickets from plan above.

@javerbukh javerbukh mentioned this issue Dec 3, 2024
9 tasks
@stscijirahubjdat stscijirahubjdat changed the title Create a data object for sonified cubes Create a data object for sonified cubes - hack image layer first Jan 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant