Hi guys,
I want to make program which save the record when my piano open.
I know how to do allmost all my problem its to make it to mp3.
I know C# but I didnt find command/s that do what I want even in the libarary zone.
Ty :), I know I havent good english sory...
We need more details...
Do you want to record and play-back on the Arudino? That is, are you trying to make a portable MP3 recorder/player? I wouldn't recommend trying to build something like that yourself. Especially not as your first Arduino project.
If you can record on your computer, then you can save an MP3 on an SD Card (you'll need a SC Card reader/writer for you computer). Then, if you have an MP3 shield with an SD Card slot for your Arduino you can play it back.
I'm not sure if the Arduino is fast enough to encode to MP3 in real-time. The [u]LAME MP3 Encoder[/u] is open source, but you'd have to port it to the Arduino. That's NOT a task for a beginner. WAV files would be easier, but they take more memory.
I know C#
The Arduino IDE uses C++. The basic [u]Arduino Library[/u] is fairly simple, and if you know C# (or any programming language) you should be able to learn it quickly. But, something like an MP3 encoder would probably require additional libraries and it wouldn't be easy.
An MP3 shield has a hardware MP3 decoder and a digital-to-analog converter built into the specialized chip. So it doesn't require any software to play an MP3. The Arduino just needs to send some simple control-commands to the MP3 shield. You can find examples of MP3 players made with the Arduino and that is something a beginner can do (with some study and some time).
There are some other hardware considerations... Do you have an acoustic piano? If so, you'd need a microphone and preamp.
What do you need on the output side? A built-in speaker? Or, are you going to plug-into your stereo system?
The "standard" Arduino has a "below-average" 10-bit analog-to-digital converter, and there is no digital-to-analog converter, so you need to add one or add an audio shield with one.
I'm not sure if the Arduino is fast enough to encode to MP3 in real-time.
You can't, not even in not real time. There is not enough memory for the buffers needed.
What is more there is no standard way to encode MP3. All the MP3 standard is, is a group of compression algorithms. There is nothing to say what algorithm to use at any one moment. These sorts of things tend to be "trade secretes" and can make quite a difference to the results you get.
So in short MP3 recording is a non starter on an Arduino.