This program for Windows PCs will let you obtain animation data from audio files
typically, you'll apply this animation to objects like VU Meters, Bargraphs and Speakers in music videos
but they can also be used as visual cues to synchronize character animations ( ex: dances )
Oct 8 2012
Oct 19 2012
-- added a key component ( mcjAudioMation.dsa ) that was missing in the initial release. Without this component the Daz script produced by don't work !
The zip package is found at the bottom of this page
unzip it in your daz content folder, typically C:\Program Files\DAZ\Studio\content\
once installed, it will appear in your content library, under Studio / Scripts / mcasual
Open / PCM Wave : Loading audio files
Use the Open / PVM Wave menu to open your audio file
mcjAudioMation only accepts to load very standard .wav files.
meaning, 8bit or 16 bit PCM (uncompressed ) .wav files ,
mp3-encoded wav files wont load
once loaded the display will look like this
Save / Das Script : Creating an animation file for Daz Studio
Use the Save / Das Script menu to export the animation as a Das Studio script.
Specify the location and name for the daz-script file.
for example i save it as softcell_Left.dsa
you may want to save it in one of daz studio's content folders
for example, on my PC, i could save it in c:\program files\daz\studio\content\scripts\mcasual\mcjAudioMationData
Done! you can exit mcjAudioMation.
in Daz studio, select the object you want to animate.
for example, i selected the speaker, which is part of the free prop named mcjSpeaker
available here: https://sites.google.com/site/mcasualsdazscripts2/mcjspeaker
Then i either
- drag and drop the softcell_Left.dsa file on the speaker
- do a File / Merge / Daz Studio Files ....... and browse to your softcell_Left.dsa file
- Click on softcell_Left.dsa if it's in one of daz studio's content folders
Once that's done the following panel should appear
The speaker happens to have a morph channel named
In Daz Studio's Parameters panel, when this morph is at -100% strength,
the speaker moves back and when it's at 100 % it moves front
mcjAutomation's data is not expressed as percents, so
-100% corresponds to "Key Value for Silent ( 0 ) = -1
100% corresponds to "Key Value for Silent ( 1 ) = 1
Animating a VU Meter needle in daz studio
The needle in the prop shown below is simply a Daz Studio primitive-cylinder
when the YRotate parameter of the cylinder is at 42 degrees, the needle points to the left
when the YRotate parameter of the cylinder is at -42 degrees, the needle points to the right
so in this case we need to set :
"Key Value for Silent ( 0 ) = 42
"Key Value for Silent ( 1 ) = -42
Save / Poser Pose : Creating an animation file for Poser, Carrara and Daz Studio
Use the Save / Poser Pose menu to export the animation as a Poser Pose file
A dialog window should pop up
in the Source audio channel list, select which audio channel ( left or right ) will "drive" the animation
in the Target Type list, select the type of target for this animation, choices are "Prop" and "Actor"
if the Target Type selected is "Actor" ( figure), then in the Target Name field, type the name of the target body part, for example: "head"
Be careful and use exactly the body part name else the pose file wont be usable
if the Target Type selected is "Prop" then the name can be anything, for example, type the word "anything"
in the Target Channel list, select if the animation will be applied to a morph channel or to one of the 10 standard transforms.
if you did select "morph >>>" in the Target Channel list, then you must type a morph name in the "morph" field
this morph name must be exactly the name the target prop or figure uses. else the pose file wont be usable
for example, Aiko 3's morph named "OpenMouth"
when this morph is at 100%, the Aiko mouth is fully open, when it's at 0% the mouth is closed.
mcjAudioMation doesnt use percents, so, we set "Value for silent" to 0 and "value for loudest" to 1.
|bizarre quirk : in Daz Studio 3 at least, if you drag an drop a Poser Pose file ( .pz2) from a folder that contains daz script files (.dsa), thena daz script will be launched !! go figure.
Animating a VU Meter needle in Poser
In the VU Meter prop shown here,
when the YRotate parameter of the needle is at 42 degrees, the needle points to the left
when the YRotate parameter of the needle is at -42 degrees, the needle points to the right
so in this case we need to set :
Target Type = Prop
Target Channel = rotateY yrot
Value for silent = 42
Value for loudest = -42
Save / Sonogram : Creating a sonogram (spectrogram) image
Use the Save / Sonogram menu to export a sonogram of the audio clip.
if the sampling rate of your .wav file is 48000 Hz, then the vertical axis of the sonogram covers the frequencies between 0 and 24000Hz
Note : the sonograms produced by mcjAudioMation are in uncompressed .bmp format.
| A spectrogram is a time-varying spectral representation (forming an image) that shows how the spectral density of a signal varies with time. Also known as spectral waterfalls, sonograms, voiceprints, or voicegrams, spectrograms are used to identify phonetic sounds, to analyse the cries of animals; they were also used in many other fields including music, sonar/radar, speech processing, seismology, etc. The instrument that generates a spectrogram is called a spectrograph.
A sonogram for a 30 seconds audio clip occupies about 1MB.
on the horizontal axis, 1 pixel covers a 1/30th second of audio
The intent of this feature is to make it a tool to help synchronizing events in an animation with a soundtrack.
This sonogram lets you "see" the sounds through time
// by mCasual/Jacques
// ( MIT License )
// Copyright (c) <2012> <mCasual/Jacques>
// Permission is hereby granted, free of charge, to any person
// obtaining a copy of this software and associated documentation
// files (the "Software"), to deal in the Software without
// restriction, including without limitation the rights to use,
// copy, modify, merge, publish, distribute, sublicense, and/or sell
// copies of the Software, and to permit persons to whom the
// Software is furnished to do so, subject to the following
// The above copyright notice and this permission notice shall be
// included in all copies or substantial portions of the Software.
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
// OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
// HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
// WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
// OTHER DEALINGS IN THE SOFTWARE.