In this part you will design a vibraphone virtual musical instrument (VMI for short) that can be played by "MIDI JamSession." If necessary, visit MIDI JamSession, download the application VI .zip file, and view the screencast video in that module to learn more about the application and how to create your own virtual musical instrument. Your VMI will accept parameters that specify frequency and amplitude of a single note, and will produce an array of audio samples corresponding to a single strike on the metal bar of a vibraphone instrument.
Use a sinusoidal signal as the oscillator (tone generator), and apply the amplitude envelope you generated in Part 4. You may wish to keep your parameters as front-panel controls and add the "Play Waveform" ExpressVI to listen to your VMI during development. Adjust the parameters to obtain pleasing and realistic settings, then convert the front-panel controls to constants and remove "Play Waveform." Your finished VMI must not contain any front panel controls or indicators beyond what is provided in the prototype instrument.
The prototype VMI includes the "length" parameter to set the number of samples to be produced by your own design.
The length is derived from the amount of elapsed time between "note on" and "note off" MIDI messages for a given note.
To make a more realistic sound for the vibraphone, ignore this length value and create a fixed number of samples determined by your attack and decay times.
Finally, choose a suitable MIDI file and use MIDI JamSession to play your vibraphone VMI. MIDI files that contain a solo instrument, slower tempo, and distinct notes will likely produce better results.
Create a .wav file of your finished work.
The Figure 1 screencast video provides some coding tips.
"A multimedia educational resource for signal processing students and faculty."