uiopen() in App Designer to read audio data

4 views (last 30 days)
Stance
Stance on 27 Apr 2020
Edited: Geoff Hayes on 27 Apr 2020
HI,
I am trying to built a simple app to open an audio file (.wav), plot the waveform and a spectrogram, then delete the file and reeat the process with next file.
The problem lies in using the uiopen() to read in the audio files. Where to assign the audio data that is read in from a .wav file, after clicking the button Open File button?
This is for sifting through audio data. Being completely new to the App Designer (or any GUI version), I am not able to figure out how to accomplish this. Please help

Answers (1)

Geoff Hayes
Geoff Hayes on 27 Apr 2020
Edited: Geoff Hayes on 27 Apr 2020
Stance - see the Share Data Within App Designer Apps which indicates that Using properties is the best way to share data within an app because properties are accessible to all functions and callbacks in an app. So you'll want to save your audio file data as a property in the app (and you would do this in the Open File callback function).

Categories

Find more on Develop Apps Using App Designer in Help Center and File Exchange

Products

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!