You are viewing an archive page. Click here to go to the current Open Exhibits website.
Log-in is disabled for the archived site
Software

Software: Modules

Templates allow novices to create their own floor or Web based exhibits. Universal Modules allow more advanced developers to combine, branch, and write their own modules that can act as building blocks for new Exhibits.

WAV Player

WAV Player

First Posted: December 3, 2011
v1.1.1-beta Updated: January 31, 2012

Project Summary

The Wav Player is now GestureWorks 3 compatible!

The Wav Player is a module designed to play Wav audio files, show a graphical waveform representation, and display embedded XMP or user entered metadata. Wav playback, metadata, and basic formatting can be defined using the module's XML file. Multiple touch players can be displayed on stage and each touch object can be manipulated using the TAP, DRAG, SCALE and ROTATE multitouch gestures and standard PLAY, STOP, BACK, FORWARD and PAUSE touch buttons. All multitouch gestures can be activated and deactivated using the module XML settings.
 
The Wav Player supports mono and stereo 16-bit 44.1 Hz Wav files.  
 
The Wav Player is an AIR only application. See the MP3 Player for a version that can be used online.

ABOUT THIS CONTRIBUTOR

Profile picture for Charles Veasey

Charles Veasey

Software Developer
Open Exhibits Staff

Total Activity:  291
Downloads:  45
Article Views:  82
Shared:  0
Tweets:  0

Uploads:  21
Comments:  143
Favorites:  0
Likes:  0
Emails:  0

There are no comments yet. Share your thoughts!




Summary

The Wav Player is a module designed to play Wav audio files, show a graphical waveform representation, and display embedded XMP or user entered metadata. Wav playback, metadata, and basic formatting can be defined using the module's XML file. Multiple touch players can be displayed on stage and each touch object can be manipulated using the TAP, DRAG, SCALE and ROTATE multitouch gestures and standard PLAY, STOP, BACK, FORWARD and PAUSE touch buttons. All multitouch gestures can be activated and deactivated using the module XML settings.
 
The Wav Player supports mono and stereo 16-bit 44.1 Hz Wav files.  
 
The Wav Player is an AIR only application. See the MP3 Player for a version that can be used online.

Features

  • Plays Wav files
  • Displays graphical waveform
  • Displays XMP or user defined metadata
  • Customizable through XML
  • Gesture activated

Example Code

Using this

package id.module
{
    import flash.events.Event;
    import id.core.TouchComponent;
    import id.component.WavDisplay;
    import id.element.Parser;

    public class WavPlayer extends TouchComponent
    {
        private var wavDisplay:WavDisplay;

        public function WavPlayer()
        {
           super();
           Parser.settingsPath="WavPlayer.xml";
           Parser.addEventListener(Event.COMPLETE,onParseComplete);
        }

        private function onParseComplete(event:Event):void
        {
            wavDisplay=new wavDisplay();
            wavDisplay.id=0;
            addChild(wavDisplay);
        }
        
    }
}

Properties and Customization

Included XML tags and functions:

Name Description Notes
amountToShow The number of players to display
buttonColorActive Sets the background color of the buttons when they are active (hexidecimal)
buttonColorPassive Sets the background color of the buttons when they aren't active (hexidecimal)
buttonOutlineColor Sets the color of the button outline (hexidecimal)
buttonOutlineStroke Sets the width of the button outline in pixels
buttonPadding Sets the padding in pixels on all four sides of each button
buttonRadius Sets the button radius in pixels. NB: Radius is one-half of total button size
buttonSymbolColor Sets the color of the symbol or text on each button (hexidecimal)
cornerRadius Sets the corner radius of the menu bar
cueStart Sets the cue starting point in milliseconds default: 0
doubleTap Sets whether or not the doubleTap gesture can be used in the application ('yes' or 'no') default: no
drag Sets whether or not the drag gesture can be used in the application ('yes' or 'no') default: no
fillColor1 Sets the background color (hexidecimal)
fillColor1 Sets the color of the bar behind the control buttons (hexidecimal))
fillColor2 If set, the background will be a gradient of fillColor1 to this field (hexidecimal)
globalScale The size the player start at before they are double-tapped or zoomed to their full size, which is the size at which the control buttons appear default: 1
height Sets the module height default: 150
infoPadding Sets the padding around the metadata information when the info button is selected
infoText Sets the font size and color (hexidecimal) for each metadata field
loop Loop playback ('yes' or 'no') default: yes
maxScale The maximum size the player can zoom to, set relative to their full size within the application default: 2.5
minScale The minimum size the player can zoom to, set relative to their full size within the application default: .5
outlineColor Sets the color of the outline surrounding each media object (hexidecimal)
outlineColor Sets the color of the border that surrounds the button control bar (hexidecimal)
outlineStroke Sets the width of the border that surrounds the button control bar
outlineStroke Sets the width of the border around each media object in pixels
pan Sets the playback panning (-1.0 to 1.0, -1.0 = left, 0 = center, 1.0 = right) default: 0
path Sets the file path
rotate Sets whether or not the rotate gesture can be used in the application ('yes' or 'no') default: no
scale Sets whether or not the scale gesture can be used in the application ('yes' or 'no') default: no
show: album Show the album field ('yes' or 'no') default: no
show: artist Show the author/artist field
show: comment Show the comment field ('yes' or 'no') default: no
show: date Show the date field ('yes' or 'no') default: no
show: publisher Show the publisher field ('yes' or 'no') default: no
show: title Show the title/song name field ('yes' or 'no') default: no
showWave Draw waveform ('yes' or 'no') default: yes
text: album Sets the album metadata field
text: artist Sets the author/artist metadata field
text: comment Sets the comments metadata field
text: date Sets the date metadata field
text: publisher Sets the publisher metadata field
text: title Sets the title metadata field
timeFontSize Sets the text size for the timecode that displays on video objects
totalAmount The total amount of players that are allowed to be shown
useXMP Show metadata from embedded XMP container ('yes', 'no') default: no
volume Sets the playback volume (0.0 - 1.0, 0 = silent, 1.0 = full volume) default: 1
waveColor Sets the color of the drawn waveform in red,green,blue default: 255,255,255
width Sets the module width default: 500

Included AS3 Classes and customization:

Name Superclass Notes
WavPlayer TouchComponent
Name Type Description Notes
Name Description Notes
Name Description Notes

This material is based upon work supported by the National Science Foundation under Grant Number Division of Research on Learning in formal and informal settings #1010028. Any opinions, findings, and conclusions or recommendations expressed in this material are those of the authors and do not necessarily reflect the views of the National Science Foundation.


Open Exhibits was developed by Ideum, makers of GestureWorks. Open Exhibits SDK is free for non-commercial use.

Connect
YouTube Twitter Flickr