190 likes | 370 Views
Christopher Boyd Ki Shin Electrical & Computer Engineering University of Tennessee Knoxville, TN 37996-2100 cboyd11@utk.edu kshin1@utk.edu. Music Synthesizer Design. OUTLINE. Design Requirements Board Design Overview Module Hierarchy Note Signal Pitch Synthesizer
E N D
Christopher Boyd Ki Shin Electrical & Computer Engineering University of Tennessee Knoxville, TN 37996-2100 cboyd11@utk.edu kshin1@utk.edu Music Synthesizer Design
OUTLINE • Design Requirements • Board • Design Overview • Module Hierarchy • Note Signal • Pitch • Synthesizer • Pre-Synthesis Simulation • Post-Synthesis Simulation • Conclusion
Spartan-3A Board • We decided to use the Spartan-3A, since it had a 3.5 mm jack for music output.
Block Diagram Design Overviewwith I/O Block Sheet Music (Sub Module) Christopher Boyd Ki Shin Specify File (Controller) Speaker (Left) Switch (0~3) Synthesizer Speaker (Right) Change Scale
Hierarchy of Modules Music.vhd (Main Controller + Music Synthesizer) Music 2 : Amazing Grace (Melody Tone) Music 3 : Jingle Bell (Melody Tone) Music 1 : Rocky Top Music 2_1 : Amazing Grace (Base Tone) Music 3_1 : Jingle Bell (Base Tone)
Explanation of Note Signal Signal (Note) – 8 bits 3 bit 8 states : Assign Duration (Whole / Half … ) 4 bits 16 states : Assign Note Scale (C, C#, D, …. ) 1 bit 2 states : Assign High Tone If Note = “11110000” , that means EOF (End of File)
Synthesizer Music file Note Signal Left Speaker Toggle 1/0 50 MHz Clock Clock Divider Octave Switch Input Right Speaker
Pre – Synthesis Simulation Out Out By Swt input, music is changed Out Freq. Out Freq. By Octave input, frequency is changed
Post – Synthesis Simulation By Swt input, music is changed By Octave input, frequency is changed
Issues Encountered • Since the signal sent to the speakers is digital (0 or 1) rather than analog, we couldn’t output more than one tone (per speaker) at once. • Attempting to half the volume didn’t work either.(by sending 1010 instead of 1111) • Being able to vary the volume would have been useful for reverb as well as multiple tones.
CONCLUSIONS • We were limited by the hardware we had on hand. • Can play, at most, two tones at once with stereo sound. • Parallel Processing • We could play different music at the same time and select the file by using switches. • For parallel processing, synchronization is very important. • Synchronization issues • When changing songs, the two parts could desync. • We fixed this by resetting the note being played, when we change songs.