<< Chapter < Page Chapter >> Page >
Implement several different Chowning FM instruments (bell, wood drum, brass, clarinet, and bassoon) and compare them to the sounds of physical instruments. Develop code to model the Chowning algorithms as LabVIEW "virtual musical instruments" (VMIs) to be "played" by a MIDI file within MIDI JamSession.
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

Objective

FM synthesis creates rich spectra from only two sinusoidal oscillators, and is able to emulate the sound of many physical musical instruments. John Chowning's seminal publication on audio-range frequency modulation (FM) in 1973 describes a number of different orchestral instruments such as woodwinds, brass, and percussion that can be created merely byadjusting a few basic parameters of the basic FM equation.

In this mini-project, implement several different Chowning FM instruments and compare them to the sounds of physical instruments. Also develop code to model the Chowning algorithms as LabVIEW virtual musical instruments ( VMIs ) to be "played" by a MIDI file within MIDI JamSession .

Prerequisite modules

If you have not done so already, please study the prerequisite modules FM Mathematics and Chowning FM Synthesis Instruments in LabVIEW . 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.

Deliverables

  • All LabVIEW code that you develop (block diagrams and front panels)
  • All generated sounds in .wav format
  • Any plots or diagrams requested
  • Summary write-up of your results

Part 1: chowning fm instruments

Chowning FM Synthesis Instruments in LabVIEW provides the specifications for a generic FM synthesis instrument, parameters for a number of different instruments, and a screencast video that walks through the complete process to implement the Chowning clarinet in LabVIEW. Refer to the PDF document in that module that contains theparameters for the remaining instruments: bell, wood-drum, brass, and bassoon. Create your own LabVIEW implementation of each of these four instruments (the clarinet VI is available in that module, as well).

Save a representative sound from each of the five Chowning instruments to a .wav file.

Consider using an audio editor such as Audacity to merge the individual .wav files into a single .wav file that you submit as your deliverable. You can also add your own voice annotation to explain your work.

Part 2: comparison with physical instruments

Visit the Musical Instrument Samples database created by the Electronic Music Studios of the University of Iowa at (External Link) . These recordings of actual instruments were made inside an anechoic chamber to eliminate reflections and other artifacts, so the spectra of theinstruments are as accurate as possible. The files are stored in AIFF format; use an audio editor such as Audacity to import the AIFF format. Audacity also includes a tool to view the spectra of the soundfile.

Compare and contrast the FM sounds you created for brass, clarinet, and bassoon to those of the real instruments. Consider time-domain envelope shape and spectrogram patterns.

Part 3: chowning vmis for midi jamsession

In this part, convert each of the five Chowning instruments you implemented in Part 1 into its own 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 VMI. Your VMI will accept parameters that specifyfrequency, amplitude, and duration of a single note, and will produce a corresponding array of audio samples.

You may wish to keep all of your existing front-panel controls available so that you can listen to your VMI during development. Adjust the parameters to obtain pleasing and realistic settings, and convert the front-panel controls to constants and remove all indicators. Your finished VMI must not contain any front-panelcontrols or indicators beyond those provided in the prototype instrument.

Finally, choose a suitable MIDI file and use MIDI JamSession to play your FM VMIs. MIDI files that contain multiple channels are ideal, because you can individuallyassign each of your five VMIs to a different instrument.

Create a .wav file of your finished work.

MIDI percussion events are found on Channel 10, a reasonable place to use your wood-drum instrument. Be aware that the "frequency" value produced by the prototype VMI derives directly from the "note number" value of the MIDI "Note On" messages in the file. On Channel 10, the note number selects froma palette of different percussion instruments as defined in the General MIDI Sound Set ( (External Link) ), so interpreting the value as frequency is meaningless. You can either set up your wood-drum to produce the same waveform independent of the frequency parameter, or you can devise a scheme to translate the note number into useful parameter change for your instruments.

Get Jobilize Job Search Mobile App in your pocket Now!

Get it on Google Play Download on the App Store Now




Source:  OpenStax, Musical signal processing with labview -- modulation synthesis. OpenStax CNX. Nov 07, 2007 Download for free at http://cnx.org/content/col10483/1.1
Google Play and the Google Play logo are trademarks of Google Inc.

Notification Switch

Would you like to follow the 'Musical signal processing with labview -- modulation synthesis' conversation and receive update notifications?

Ask