cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Need to share some code when posting a question or reply? Make sure to use the "Insert code sample" menu option. Learn more! X

reading an mp3 audio file? (not McadPrime3)

ptc-1398121
4-Participant

reading an mp3 audio file? (not McadPrime3)

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.

7 REPLIES 7

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

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.

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

 

 

Well I have about 6-7 hours of 8kHz sampled data to handle every day so was hoping I could acquire it into and store it in mp3 files to save space.  Unfortunately I'm finding Mathcad to be very unstable when I try to process very much data at a time so maybe it's not going to work very efficiently for me, even if I have a read mp3 function.

The read function would have to be able to read in segments at a time like the READBIN function can do, as mathcad is not much good for vectors over about 300,000 samples.

Hi,

 

The mathcad community may not like me giving this advice

Look into Scilab.  http://www.scilab.org/en/download/6.0.1

 

It has wav and au file support for sound.  It is a free version of a matlab substitute originally from France.

It is better for very large datasets

 

Cheers 

Tezza

"octave" is another "free MatLab."  Capable of executing most Matlab scripts.

Thanks for those suggestions.

Announcements

Top Tags