MIDI programming with a PIC, sure...
MIDI-like generation with a PIC only, without an external MIDI-source?
Not without a good, relatively high speed A/D converter, and enough memory in the PIC, or attached to it, to send out to the A/D converter at a decent sampling rate to sound like decent music.
The key here is being able to transfer in/out of the external memory and shoot the data out to the A/D converter.
My advice...
Break it down to the lowest level you can possibly break it down to. Sure, you can light some LEDs, can you do any PWM with them? Can you create a variable duty cycle, variable frequency output on a pin? Can you make and use an interrupt driven program (something you'll need to send out audio at a specific sample rate).
Yes, (and this is the way I'd do it) you can record MP3 data to a file on a flash card and funnel that data thru a PIC out to a STA013 or VS1001k. But, I get the feeling that accessing flash cards and I2C control of a STA013 is a bit above your knowledge at the moment.
And there aren't any Melody Generator's here in North Dakota either, but I can sure get them from here:
http://www.maplin.co.uk/Search.aspx?...source=15&SD=Y
and that's across 2,500 miles of land and Xx,xxx miles of ocean.
Bookmarks