File Exchange

image thumbnail

Simple Audio Editor

version 1.0.0.1 (26.5 KB) by Navan Ruthramoorthy
This is a simple audio editor GUI to read, write, cut, copy, paste, filter and analyze audio data.

13 Downloads

Updated 01 Sep 2016

View Version History

View License

AudioEditor creates a GUI used for editing audio data. It supports reading from a WAVE audio file, writing to a WAVE audio file, importing from a MATLAB® variable, exporting to a MATLAB variable and recording from microphone. There are editing features like cut, copy, paste with undo and redo support for them. There are also filters to process the audio data and analyzers to analyze the data.
You can start the audio editor by typing AudioEditor at the command prompt.

Cite As

Navan Ruthramoorthy (2021). Simple Audio Editor (https://www.mathworks.com/matlabcentral/fileexchange/19873-simple-audio-editor), MATLAB Central File Exchange. Retrieved .

Comments and Ratings (33)

Ian Esten

I updated this project to work with modern MATLAB here:
https://github.com/ianesten/audioeditor
I added a few little things too (mp4 import, mat export, override default file load)

Dana Massie

Does not work. There is a file missing.
Error using load
Unable to read file 'audiotoolbaricons'. No such file or directory.

Error in AudioEditor/addPlaybackControls (line 488)
load audiotoolbaricons;

Error in AudioEditor/createToolbar (line 337)
addPlaybackControls(this, audiotb);

Error in AudioEditor/adjustFigure (line 481)
createToolbar(this);

Error in AudioEditor/createFigure (line 164)
adjustFigure(this);

Error in AudioEditor (line 136)
createFigure(this);

Shivam Lakhtariya

I have error like this setAccess can not be set on constant properties

Peter Cervelli

Polladi Roland

William Hinton

Junhui Zhang

Seb Biass

Same icon error, 2018a

ting-hao

Excellent !

Pele Schramm

Doesn't work for me. I get the following error:
Error using load
Unable to read file 'audiotoolbaricons'. No such file or directory.

Error in AudioEditor/addPlaybackControls (line 488)
load audiotoolbaricons;

Error in AudioEditor/createToolbar (line 337)
addPlaybackControls(this, audiotb);

Error in AudioEditor/adjustFigure (line 481)
createToolbar(this);

Error in AudioEditor/createFigure (line 164)
adjustFigure(this);

Error in AudioEditor (line 136)
createFigure(this);

Navan has said to change "load audiotoolbaricons;" to "load uiscope_icons;". I tried that and I get the same error with uiscope_icons instead.

Michel bertrand

Got the same error messages reported by Priank Trivedi, june 7th. Tried on Mac, R2016b.

Brent Cartwright

how do you install this...? thanks

Needs some updates. Refers to a wavread function that is obsolete. I tried replacing it with audioread but encountered another error.

Priyank Trivedi

Error Log:
Error using load
Unable to read file 'audiotoolbaricons'. No such file or directory.

Error in AudioEditor/addPlaybackControls (line 488)
load audiotoolbaricons;

Error in AudioEditor/createToolbar (line 337)
addPlaybackControls(this, audiotb);

Error in AudioEditor/adjustFigure (line 481)
createToolbar(this);

Error in AudioEditor/createFigure (line 164)
adjustFigure(this);

Error in AudioEditor (line 136)
createFigure(this);

Amy Donovan

Jaler Sekar Maji

John Ryncough

Jonathan

Hi. When I try to run AudioEditor.m I get the following error:

AudioEditor:File Reader
"Expected input number 2, range, to be an array with number of columns equal to 2."

The edit will still come up but I get the same error when I try to read a .wav file.

Ideas? Thanks.

R2015a

eran golden

hi navan, is it possible to compare two signals and to estimate their similarity using your program?

Yu Liu

Navan Ruthramoorthy

Selection code is in axesButtonDownCallback method. You can instantiate AudioEditor in a function and simply return the value.

tan

ohh, how can i do that? And may i know which part of the codes does the job of after selected an region, and click the waveform again the red line will reset?

Navan Ruthramoorthy

tan, Are you building your own ui with copy paste functionality? Look for cutCallback, copyCallback and pasteCallback in AudioEditor.m to see how they are implemented. You can create a function which creates and returns AudioEditor.

tan

How to change the class file to function file? for the functions of paste copy cut undo redo and select wave. or how to use those function into a new gui

Mike

Ah that makes sense. Thanks again.

Navan Ruthramoorthy

Currently command line inputs are not supported by AudioEditor. The class is there only to create the GUI and everything else is done through the UI. You can add a filename input as an argument to the constructor by modifying the AudioEditor class. You need to assign

this.Filename = varargin{1};

as the first line in the constructor.

Mike

Hello again. I'm new to user defined classes and I've been having difficulty understanding how to start AudioEditor with a file already in a function as opposed to loading it from the 'Data' tab in the GUI.

Is there a way that I can just assign 'Filename' in 'varargin' in the constructor function? From what I've read that function creates an object, 'this,' of the class but I don't understand what it's doing with 'varargin'.

I've been playing around with the 'Filename' property using uigetfile and it works when calling AudioEditor from the Command Window but not from within a function. I always get the answer, "AudioEditor with no properties."

Lastly I tried setting the 'Filename' with "AudioEditor.Filename = 'test.wav'" before calling 'AudioEditor' but that just resulted in an output of "Filename: 'test.wav'.

Should I be looking to modify 'getFromMATLABVarNameandFs.m' to accomplish this?

Also, could you explain the difference between Filename, AudioData, and filename?

Thanks for your help,

Mike

Mike

Thanks! That did the trick.

Navan Ruthramoorthy

Mike,
In the file AudioEditor.m change the line "load audiotoolbaricons;" to "load uiscope_icons;". That should fix it.

Mike

Hello Navan, thanks for the program.

I'm receiving the error: "Unable to read file 'audiotoolbaricons': no such file or directory."

Do you have any suggestions on what I need to do to point to this?

Thank you.

Arturo Serrano

Mark

Works great right out of the gate. Simple to use. Thanks!

Aleksandr Ivanov

Excellent work!

MATLAB Release Compatibility
Created with R2008a
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

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

Start Hunting!