Can I make midi music with a PIC16F873a


Closed Thread
Results 1 to 14 of 14

Hybrid View

  1. #1
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by Mathy Knaapen View Post
    I'll gues I'll have to buy 1000 melody generators.......

    Mathy
    Or you could do as suggested...learn PBP, learn the PIC, learn a bit of electronics, sprinkle in some other components, and eventually have exactly what you want, built by YOU, with YOUR name on it.
    Nothing better than that...

  2. #2
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898


    Did you find this post helpful? Yes | No

    Default

    Depending what type of sound you want to produce... but that's nothing a PIC would be able to do.

    Just record a sound you like on you computer with a decent Sound Editor software, then zoom in to see how it's made....

    PIC are way too limited for complicated and rich sound, Maybe DsPIC would be enough.
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

  3. #3
    Join Date
    Mar 2007
    Location
    Boston, MA USA
    Posts
    12


    Did you find this post helpful? Yes | No

    Default

    You want the PIC to send MIDI messages to control/play the casio synthesizer.

    The MIDI signal is just control data, not audio (a serial control signal that sends note value on/off and other commands).

    The signal is organized into 10 bits (start bit, 8 data bits and one stop) running at 31,250 bits per second.

    Here is a link that describes the specifications and command set for the signal:

    http://en.wikipedia.org/wiki/The_MIDI_1.0_Protocol

    I am not sure if your PIC has a UART, it could be used to produce the serial signal. Then you would need space for the storage of the song data, and a way to enter it.

  4. #4
    Join Date
    Nov 2003
    Location
    Greece
    Posts
    4,170


    Did you find this post helpful? Yes | No

    Default

    Hmm, I am a little confused as to what really Mathy wants to do.

    1. Control the Casio Synthesizer with a PIC to make some music, or

    2. Reproduce the music from the PIC in whole?

    The second is a big-big project as other members described above.

    The first is easy done in software only.

    Ioannis

  5. #5
    Join Date
    Feb 2005
    Location
    Kolkata-India
    Posts
    563


    Did you find this post helpful? Yes | No

    Default One time recording or multiple

    Hi,

    If I have understood correctly then you want a custom melody to be reproduced by a standalone circuit. You would play/sequence the number on your casio keyboard.

    There is an application of a PIC playing 1bit audio available here http://members.home.nl/b.vandam/lonely/pagina47.html This may be interesting for you.

    There are OTP (One Time Programmable) Voice chip available from APLUS INC. http://www.aplusinc.com.tw I have checked their Indian website and found that a chip capable of recording about 341 seconds audio costs around $2.5 USD. They sale in low quantities too. But I have no idea if they would ship international. Beware these OTP chips may need a dedicated programmer (costs around $200 USD). Do not expect great sound quality. Because it uses a maximum of 8KHz sampling rate and uses 4bit ADPCM compression. It can also record PCM but that will reduce the playback time. These can be controlled by a PIC to playback multiple segments . I have seen one application here by charudatt who uses a PIC clock to enchant digital mantras. I am not sure if he uses one of these. But they are available in his hometown Mumbai in India. I am attaching one datasheet for your reference.

    Aplus also makes melody generators (sort of a MIDI playback engine mainly targeted as bells/ringers) . You don't get enough polyphony or rich sound due to the limited fm synthesis (May be there are some which uses a ROM table).

    There are chips from Aplus which can record/re-record audio standalone or controlled by a micro. But they are more expensive.Price is directly proportional to the maximum recording time.

    I think I have seen a post by Melanie producing tunes. Why not post your sample tune here ?! In MP3/Wave/Midi whatever.

    Please describe your application in details. May be someone from here has done before.
    Last edited by sougata; - 18th May 2007 at 09:25.
    Regards

    Sougata

  6. #6
    Join Date
    Feb 2005
    Location
    Kolkata-India
    Posts
    563


    Did you find this post helpful? Yes | No

    Default Ooops I forgot the attachment.

    Sorry guys. Here is the pdf datasheet. Its split into two parts by Winrar available from www.rarlabs.com . Remove the ".txt"

    I tried ".bak" but didn't work. I should have gone through the entire list which files are allowed by the vbulletin admin.

    You can also have look at the PICLIST here http://www.piclist.com/techref/microchip/io/audio.htm

    P.S. - Original author's site is working . http://www.romanblack.com/picsound.htm
    Attached Files Attached Files
    Last edited by sougata; - 18th May 2007 at 09:22.
    Regards

    Sougata

Similar Threads

  1. Change On Interrupt, PIC16F884
    By elec_mech in forum mel PIC BASIC Pro
    Replies: 17
    Last Post: - 14th November 2008, 18:25
  2. Midi, Interrupts and Pic better than SX28?
    By Lajko in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 27th September 2008, 01:26
  3. Replies: 3
    Last Post: - 10th April 2008, 11:02
  4. How come they make electronics hard as poss
    By George in forum Off Topic
    Replies: 9
    Last Post: - 14th July 2007, 00:54
  5. Play Music (MP3, WAV,...) for greeting card
    By flotulopex in forum mel PIC BASIC Pro
    Replies: 9
    Last Post: - 10th January 2007, 16:14

Members who have read this thread : 0

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts