I realize most microcontrollers have limited memory, but I'd like to load a fart sample (1-2s) and then manipulate it's tone/pitch to achieve 12 notes and halfnotes. Where do I start? Arduino/RaspberryPi (but that would be too easy, for it's got a sound card and cpu and gpu). My budget? I don't know, I've got money saved up, but that's for all my life and not just for electronics, although I favour using it for electronics...

Hit me, and then we'll investigate price options if there are any options

If you can find one with the right shield, it could work for you. As I understand what you need it is:

At least 1 A/D channel with a microphone input to do sound sampling.

Enough memory to hold 40,000 samples for each second of sound

At least 1 D/A channel with a speaker output to play back the modified sound.

The processor in the Arduino may or may not be capable of handling this process. As I understand the implementation the sketches are interpreted. This means the program is recompiled each time it executes. At least this is the way it was with the Duemillenove (ca. 2009). Maybe things have improved since then.

The processor in the Arduino may or may not be capable of handling this process. As I understand the implementation the sketches are interpreted. This means the program is recompiled each time it executes. At least this is the way it was with the Duemillenove (ca. 2009). Maybe things have improved since then.

Click to expand...

In my understanding, the sketches are compiled and then downloaded to the microcontroller - no interpreter runs on the micro. However, the Arduino libraries do add some overhead which might result in code running slower then code that is 'hand rolled' in C.

That said, the AVR in most Arduinos (an ATMega32 running at 16MHz) should probably be able to handle the 40K samples per second.

In my understanding, the sketches are compiled and then downloaded to the microcontroller - no interpreter runs on the micro. However, the Arduino libraries do add some overhead which might result in code running slower then code that is 'hand rolled' in C.

That said, the AVR in most Arduinos (an ATMega32 running at 16MHz) should probably be able to handle the 40K samples per second.

Click to expand...

Yes, I would think so. 40 KHz. is a 25 μsec period. You won't be able to do much else while you are sampling.

how much storage do I need to save a 2s wave file, and is it possible to manipulate the pitch/tone of that wav file with a microcontroller? would it be cheaper than a RaspberryPi type B? edit: or type A+? edit: the point is it's a kids project using the RPi listen to switches and play to the headphone out, I'm here to learn, that's why I wanna go the microcontroller route (proudly self taught hand-on mostly, and still very noob)

Audacity is open source software that can manipulate the sound clips. It is almost one command to change the tone and pitch.

I thought I had an idea of what you were attempting Was ready to suggest ways of adding memory to an Arduino or other microprocessor (it's described on the Arduino site), but now feel like your requirements keep changing.

Audacity is open source software that can manipulate the sound clips. It is almost one command to change the tone and pitch.

I thought I had an idea of what you were attempting Was ready to suggest ways of adding memory to an Arduino or other microprocessor (it's described on the Arduino site), but now feel like your requirements keep changing.

Click to expand...

not requirements that change, looking for solutions change, requirements are still 12 musical farts, however its possible to do it?