SonifyData#

class jdaviz.configs.cubeviz.plugins.sonify_data.sonify_data.SonifyData(*args, **kwargs)[source]#

Bases: PluginTemplateMixin, DatasetSelectMixin, SpectralSubsetSelectMixin, AddResultsMixin

See the Sonify Data Plugin Documentation for more details.

Only the following attributes and methods are available through the public plugin API:

Public constructor

Attributes Summary

assidx

Mixin to handle empty floating point field.

audfrqmax

Mixin to handle empty floating point field.

audfrqmin

Mixin to handle empty floating point field.

buffer_size

eln

A boolean (True, False) trait.

has_strauss

A boolean (True, False) trait.

pccut

Mixin to handle empty integer field.

sample_rate

sound_devices_items

An instance of a Python list.

sound_devices_selected

A trait for unicode strings.

ssvidx

Mixin to handle empty floating point field.

stream_active

A boolean (True, False) trait.

template_file

update_sound_device

update_volume_level

update_wavelength_range

use_pccut

A boolean (True, False) trait.

user_api

volume

Mixin to handle empty integer field.

Methods Summary

build_device_lists()

get_sonified_cube(sample_rate, buffer_size, ...)

refresh_device_list()

sonify_cube()

Create a sonified grid in the flux viewer so that sound plays when mousing over the viewer.

start_stream()

stop_stream()

update_sonified_cube_with_coord(viewer, coord)

vue_refresh_device_list_in_dropdown(*args)

vue_sonify_cube(*args)

vue_start_stop_stream(*args)

Attributes Documentation

assidx#

Mixin to handle empty floating point field.

audfrqmax#

Mixin to handle empty floating point field.

audfrqmin#

Mixin to handle empty floating point field.

buffer_size = 2048#
eln#

A boolean (True, False) trait.

has_strauss#

A boolean (True, False) trait.

pccut#

Mixin to handle empty integer field.

sample_rate = 44100#
sound_devices_items#

An instance of a Python list.

sound_devices_selected#

A trait for unicode strings.

ssvidx#

Mixin to handle empty floating point field.

stream_active#

A boolean (True, False) trait.

template_file = ('/home/docs/checkouts/readthedocs.org/user_builds/jdaviz/envs/3978/lib/python3.11/site-packages/jdaviz/configs/cubeviz/plugins/sonify_data/sonify_data.py', 'sonify_data.vue')#
update_sound_device#
update_volume_level#
update_wavelength_range#
use_pccut#

A boolean (True, False) trait.

user_api#
volume#

Mixin to handle empty integer field.

Methods Documentation

build_device_lists()[source]#
get_sonified_cube(sample_rate, buffer_size, device, assidx, ssvidx, pccut, audfrqmin, audfrqmax, eln, use_pccut, results_label)[source]#
refresh_device_list()[source]#
sonify_cube()[source]#

Create a sonified grid in the flux viewer so that sound plays when mousing over the viewer. You can select the device index for audio output and also use a spectral subset to set a range for sonification.

start_stream()[source]#
stop_stream()[source]#
update_sonified_cube_with_coord(viewer, coord, vollim='buff')[source]#
vue_refresh_device_list_in_dropdown(*args)[source]#
vue_sonify_cube(*args)[source]#
vue_start_stop_stream(*args)[source]#