Sonify Data#
Plugin Availability
The plugin will be visible when at least one compatible dataset is loaded.
Convert data to audio for sonification analysis.
Description#
The Sonify Data plugin converts spectral or spatial data into audio, providing an alternative way to explore data patterns through sound.
The plugin requires the Strauss package to turn data cubes into audio grids. The audio produced by this sonification (via the Sonify Data button) can be played by hovering the mouse over the 3D Spectrum viewer. A range of the cube can be sonified by applying a spectral subset to the data before sonifying. The output device for sound can be changed by using the Sound device dropdown.
Once sonified, the resulting layers can be adjusted in the Plot Options plugin so that multiple sonified layers can be adjusted like a mixing board.
Key Features:
Convert spectra to audio
Map flux to pitch/volume
Playback controls
Export audio files
Note
For mac m-series users, the Strauss library requires the
sounddevice and
PortAudio libraries. In order to avoid errors with the sonification
process, sounddevice and PortAudio must be installed as follows (these steps can be followed
either before or after installing Strauss itself):
Download the latest/stable
PortAudiorelease from PortAudio’s website.Unpack the tarball and
cdinto theportaudiodirectory.Following the ‘debug’ build instructions, run
./configure --enable-mac-debug && make && sudo make install. This will place a “libportaudio.dylib” in the directory “usr/local/lib/” whichsounddevicewill link to.Install
sounddeviceviapip(notcondaascondawill attempt to install and link to it’s own portaudio).Install
Straussif not already done and proceed with the sonification.
UI Access#
Click the Sonify icon in the plugin toolbar to:
Select data to sonify
Configure audio mapping
Play/pause audio
Export audio file
API Access#
plg = cubeviz.plugins['Sonify']
# Configure and generate audio
API References#
Only the following attributes and methods are available through the public plugin API:
For detailed API documentation, see SonifyData.
See Also#
Sonify Data - Sonification documentation