 |
|
 |
| Parallax Forums > Public Forums > Propeller Chip > Midi music player (alpha) | Forum Quick Jump
|
|  Rayman Registered Member
        Date Joined Jul 2007 Total Posts : 3127 | Posted 12/12/2008 7:47 AM (GMT -7) |   | | Here's a very preliminary version of a MIDI player for the Prop!
Right, now it only plays level-0 MIDI's (with all notes in one track).
Most new files are not in this format, so probably need to be converted by a midi file editing tool.
Actually, I've only tested it with the single midi file included. It may or may not play other files...
Update: Wow, that first version was so riddled with bugs, I'm surprised it worked at all... I'm attaching a version that can actually play two different songs...
Post Edited (Rayman) : 12/13/2008 1:54:37 AM GMT File Attachment : XmasMusic8.zip 24KB (application/x-zip-compressed) This file has been downloaded 145 time(s). File Attachment : XmasMusic8a.zip 25KB (application/x-zip-compressed) This file has been downloaded 112 time(s). | | Back to Top | | |
 |  Oldbitcollector Propeller Powered

       Date Joined Mar 2007 Total Posts : 4328 | Posted 12/12/2008 8:40 AM (GMT -7) |   | | | |
 |  Rayman Registered Member
        Date Joined Jul 2007 Total Posts : 3127 | Posted 12/12/2008 7:00 PM (GMT -7) |   | | I've fixed some bugs and added a new midi file (see top post)... | | Back to Top | | |
   |  Rayman Registered Member
        Date Joined Jul 2007 Total Posts : 3127 | Posted 12/13/2008 6:42 AM (GMT -7) |   | | The notes are created the same way as the player in this link:
Basically, there is a wavetable for the attack phase, the beginning of the note.
The end of the note is just a decaying sine wave created from an envelope table and a sine table.
Both are scaled in time to give the proper frequency.
I would be nice to find wavetables for different instruments, but I can't find any.
I suppose I could digitize my yamaha keyboard output and get it that way, but I don't really have any more time to spend on this project... | | Back to Top | | |
 |  Bob Lawrence (VE1RLL) Registered Member

       Date Joined Aug 2007 Total Posts : 506 | Posted 12/13/2008 9:51 AM (GMT -7) |   | Ray don't give up yet. You can follow this example for a lowly PIC LOL
Overview:
This project was featured in the July 2008 issue of Everyday Practical Electronics magazine. It was an off-shoot of the Easy-Chord which uses the same wave-table sound synthesis circuitry to produce instrument sounds controlled by a MIDI (Musical Instrument Digital Interface) input. It can be used with MIDI keyboards, computers or just about any MIDI controller so is suitable for many DIY musical projects. At the moment there are 18 instrument sounds, the same as on the Easy-Chord. Nylon Guitar, Piano 1 , Organ 1 Steel Guitar, Piano 2, Organ 2 Electric Guitar, Elec.Piano 1, Organ 3 Fuzz Guitar, Elec.Piano 2, Strings Synth Guitar, Harpsichord, Synth Strings Banjo, Vibraphone, Trumpet
Website: www.rainbowelectronics.co.uk/midi%20wsg.htm
Examples Wavefile: www.rainbowelectronics.co.uk/instr-11-16-m.wav Aka: CosmicBobPost Edited (Bob Lawrence (VE1RLL)) : 12/13/2008 4:58:00 PM GMT | | Back to Top | | |
   |  Wurlitzer Registered Member
        Date Joined Apr 2006 Total Posts : 131 | Posted 1/5/2009 11:07 AM (GMT -7) |   | |
I love MIDI! If you have not played with MIDI do yourself a favor and give it a whirl.
I am 85% complete with converting my 1928 Wurlitzer Theater Organ console to MIDI. (see attached image I hope!!!!! EDIT: ATTACHMENT DID NOT WORK I will try a 2nd time. Nope 2nd time did not work)
The Prop scans 485 inputs (keyboards, pedal board each with 1st and 2nd touch, stop tabs (above the keyboards) and also outputs control for 2 solenoids per stop tab (166). Inputs are read via a pair of 32 bit S/R with open collector output ICs and brought into the Prop 8 bits at a time. The entire console is scanned approx 100 x per second. The stop tab magnets are controlled by the same type ICs (8 of them, 4 for on and 4 for off)
The Prop sends out 2 sets of MIDI messages: 1 to a PC running a Virtual Theater Organ program (MidiTzer) and a 2nd to the pipe chamber where a second Prop outputs to ~~ 1200 pipes and percussion discrete outputs. The same 32 S/R ICs are use to drive the pipe solenoids.
I will also be able to take a MIDI file and run the console from it and drive both the pipes and the virtual organ.
Once done I will be able to practice using just the PC program and also fire up the pipes and run both with the PC being able to add voices that I don't physically have in pipes.
I have also included a 25 level memory for the stop tabs which gives 25 complete settings for each piston (little white buttons under the keyboard).
The code is running well but needs clean up before it is ready for prime time.
Post Edited (Wurlitzer) : 1/5/2009 6:20:32 PM GMT | | Back to Top | | |
 |  mpark Registered Member
        Date Joined May 2007 Total Posts : 948 | Posted 1/5/2009 8:11 PM (GMT -7) |   | Wurlitzer, keep trying to post the picture!
What is "32-bit S/R"?
I'm using a prop to interface two manuals and a pedalboard to a Mac running Hauptwerk.
If you like MIDI, check out my "sick day synthesizer" thread. | | Back to Top | | |
| Forum Information | Currently it is Thursday, July 29, 2010 5:22 PM (GMT -7) There are a total of 462,441 posts in 62,066 threads. In the last 3 days there were 90 new threads and 802 reply posts. View Active Threads
| | Who's Online | This forum has 20143 registered members. Please welcome our newest member, ME01. 58 Guest(s), 15 Registered Member(s) are currently online. Details John Abshier, Erik Friesen, RossH, Kevin Wood, simpsonmichael1, BradC, David Betz, Julian800, Martin Hodge, RDL2004, Harley, Sapieha, wiresalot, Ravenkallen, Tubular |
Forum powered by dotNetBB v2.42EC SP2.02 dotNetBB © 2000-2010 |
|
|