Skip to main content
4-Participant
March 4, 2018
Question

reading an mp3 audio file? (not McadPrime3)

  • March 4, 2018
  • 1 reply
  • 4219 views

Is there a way to read an mp3 file into Mathcad?   I don't mean a Mathcad Prime 3 file, but I do mean an audio mp3 file, like as in compressed audio.

 

I can convert it to wav or ascii with some other app and then read it, but I really want to bypass that step and just read the mp3 file in directly.

 

I'm using Mathcad11 & 14.

 

Thanks.

1 reply

21-Topaz II
March 4, 2018

Hi

https://sourceforge.net/projects/audacity/

 

This free application will convert mp3 to wav and then you can read the wav file in Mathcad

 

If you really want to reinvent the wheel:-)  

http://www.mp3-converter.com/mp3codec/mp3_anatomy.htm

http://wiki.tcl.tk/8759

These will help

4-Participant
March 4, 2018

yes I have audacity and others as well.  Other apps have been importing mp3's easily for 20 years or so.  Why by now is there no way to do it in Mcad?

 

Don't really want to re-invent the wheel.  Was hoping someone else had already done it.

21-Topaz II
March 5, 2018

Hi,

 

Someone else has done it in C++.  By "it" I mean reading of MP3 files. 

https://github.com/audioboy77/OpenMP3 [Licence free C++ MP3 decoder library]

 

It is possible to integrate this into a user defined function in MathCad by making a DLL from the above library.

You can then call the user defined function.  Look in Mathcad help under "Custom Functions".

 

This makes access to the data in the frames of an MP3 file possible.

 

How much do you need the function?

 

Cheers