I'm working on a program (C#) to convert an MP3 file to MIDI, but I have a problem with converting it. How should I do?
Is there any library to generate MIDI from MP3 file
Thank You
It seems that it is not a converter. It seems that you need some complicated process to generate a MIDI from an MP3 file. There are some useful discussions in the following links:
https://www.codeproject.com/Questions/992205/How-do-I-convert-an-mp-wav-file-to-midi-in-vb-net
https://www.gamedev.net/forums/topic/505842-writing-a-module-to-convert-mp3-to-midi-files/
Related
I need to convert audio files, being specific mp3 files to simple Text, and then converting back that text to mp3 again, one of feature of my mobile application, is it possible? if Yes, then how? guideline please.
You can find the answer for audio to text here (second post)
For the text to audio, i would use any Text-to-Speech. In c# you could also use System.Speech.
I try to convert a .wav file to a .mp3 file using C# and Mono.
I found this link which might be helpful.
When I use the following code to convert, I miss a libsndfile.dll. So I searched my harddrive and found it, but using it I get the message that it is not a valid .NET assembly.
AumpelWrapper wrapper = new AumpelWrapper ();
_wrapper.Convert (filePath, (int)SoundFormat.WAV, targetPath, (int)SoundFormat.MP3);
Is there another way to convert wav to mp3 or do I need another library, that this will work?
I want to use that in our company, so it needs to be OK with the license.
I want to develop a desktop application by programming in C# and using the .Net framework 4.
The goal of my application is to extract a MP3 audio stream from a supplied AVI file.
I have learned from the Internet that an AVI file is a container and it might contain different audio streams.
If the supplied AVI file contains one MP3 audio stream at least then I want to extract it and split it.
I want to split the MP3 audio stream into MP3 audio parts identified with a start time and an end time.
I have looked on the Internet for any .Net library I could use but without success.
Does someone know what documented .Net library would be useful ?
Maybe you can try this:
Simple C# Wrapper for the AviFile Library
It is targeted at AVI video but there might be some clues as how to use the same methods to extract the audio only.
Either use it as-is or use the example to incorporate what you need into your own code.
Since tools for this task already exist, I see no point in creating another one unless you're curious about how to do this yourself and learn something new.
If so, using a ready-made library would defeat the entire idea of learning something which is why I strongly recommend you try implementing the splitter yourself.
You can find descriptions of the AVI file format online, that should get you started.
Having failed to find a way to programmatically convert a CCITT u-Law wave file to a PCM file (which Soundplayer demands) in accord with this question: How to play non-PCM file or convert it to PCM on the fly ?
(SOX looks like it might work, but I can't find any examples for converting from CCITT u-Law .wav file to a "regular" (PCM) .wav file using it from C#),
I wonder if I'm going about it the wrong way: maybe I should find a way to play CCITT u-Law .wav files, rather than trying to convert such to a PCM .wav file.
Does anybody know how this is possible? SoundPlayer always says, "Sound API only supports playing PCM wave files" so maybe there's another API I can use?
Note: Alvas.Audio is also "not an option" due to it not being free or open source.
The way to do it is to use newkie's code at: http://www.codeproject.com/Articles/175030/PlaySound-A-Better-Way-to-Play-Wav-Files-in-C?msg=4366037#xx4366037xx
In my case, at least, I had to change all of the lowercase x's to uppercase x's, though, to get it to work.
As part of some experimentation, I thought of something, how can I create a .mp3 file from scratch in C#, that actually sounds like something, e.g, create an mp3 file that plays the note: C#, or B flat?
How can I achieve this, and it must be an mp3 file, not a wav, or anything else.
So I'm not going to be able to give you exact code, but I can give a starting point.
So basically the steps would be
Find the frequency of the wave you want. Look at this. C# (nice choice by the way!) is 17.32HZ
Convert the frequency to LPCM, which is just a series of amplitude values.
Convert the LPCM encoded array to an MP3 file. This is probably the hardest, but LPCM forms that basis of the WAV format and there are converters to convert that to MP3. Have a look at the NAudio baalazamon found. It supports PCM.
I would try using NAudio it's quite powerful. The main purpose was to manipulate audio files but it's worth to try.