<< Chapter < Page | Chapter >> Page > |
This module refers to LabVIEW, a software development environment that features a graphical programming language. Please see the LabVIEW QuickStart Guide module for tutorials and documentation that will help you: | |
•Apply LabVIEW to Audio Signal Processing | |
•Get started with LabVIEW | |
•Obtain a fully-functional evaluation edition of LabVIEW |
The vibraphone percussion instrument can be well-modeled by a sinusoidal oscillator, an attack-decay envelope with a short attack and a long decay, and a low-frequency sinusoidal amplitude modulation. In this mini-project you will develop code to model the vibraphone as a LabVIEW virtual musical instrument ( VMI ) to be "played" by a MIDI file within MIDI JamSession .
If you have not done so already, please study the pre-requisite module Tremolo Effect . If you are relatively new to LabVIEW, consider taking the course LabVIEW Techniques for Audio Signal Processing which provides the foundation you need to complete this mini-project activity, including working with arrays, creating subVIs,playing an array to the soundcard, and saving an array as a .wav sound file.
Create LabVIEW code to create a time-varying intensity envelope for the tremolo effect. Your code will require tremolo rate (in Hz), depth (in dB), and total number of samples and will produce a tremolo envelope with a sinusoidal shape as follows:
The maximum intensity will be fixed at 0 dB, and the sinusoid's amplitude will be "depth." Once you develop your code, compare its behavior with that of the interactive front panel above. Note that the time range of the interactive front panel is fixed at 1 second, but your code should produce any number of required samples.
Create LabVIEW code to create a time-varying intensity envelope for the overall attack and decay of the note. Your code will require attack time and decay time (both in seconds), and will produce an envelope composed of two straight-line segments as follows:
The maximum intensity will be fixed at 0 dB, and the minimum intensity will be -40 dB. Once you develop your code, compare its behavior with that of the interactive front panel above.
Create LabVIEW code that will accept an "amplitude" parameter in the range 0 to 1, and will convert this parameter to an attenuation in the range -40 dB to 0 dB. The amplitude parameter will ultimately be supplied by MIDI_JamSession and represents the MIDI "note-on" velocity. Your code will map linear velocity onto a logarithmic intensity.
Combine the code fragments you developed in Parts 1 to 3 to create an overall intensity envelope. Remember that when you work with intensity values in decibels, you simply need to add them together. Next, "undo" the equation for decibels to convert the intensity envelope into an amplitude envelope (hint: you need a value of "20" someplace). Choose a representative set of parameter values and plot your overall intensity envelope and your overall amplitude envelope.
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.
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 screencast video provides some coding tips.
Following are some suggested modifications you could try for your basic vibraphone VMI:
Notification Switch
Would you like to follow the 'Musical signal processing with labview -- tremolo and vibrato effects (low-frequency modulation)' conversation and receive update notifications?