mcjAudioMation - Animations from audio files -- First version Released !

mCasualmCasual Posts: 4,607
edited October 2012 in Freebies

download and manual here ----> https://sites.google.com/site/mcasualsdazscripts2/mcjaudiomation

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
History

Oct 8 2012
-- released

Oct 19 2012
-- added a key component ( mcjAudioMation.dsa ) that was missing in the initial release. Without this component the Daz script sproduced by the program don't work !

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

mcjAudiomation is a small Windows/PC application which takes uncompressed audio (.wav) files

and create an animation script for Daz Studio 1,2,3,4

in the case shown here, the animation was applied to the "open mouth" morph of the EmotiGuy's head,

to the "PushPull" morph of the speaker

and to the YTranslate channel of the green ball.

an other use could be to shake a camera, rotate the needle on a meter.

it can also be used as visual cues when synchronizing an animation to an audio track

----

added : it can also export the animations as Poser Pose files PZ2

----

added : it can create sonograms/spectrograms which let you see sounds through time and across frequencies

---

Video demos !

https://www.youtube.com/watch?v=SbAYrDQStwQ
https://www.youtube.com/watch?v=ylgCC_qx_bI
http://www.youtube.com/watch?v=vL0SagfjLa0
https://www.youtube.com/watch?v=A00IGswaR-g

amotaudio.jpg
1280 x 720 - 68K
audioma.png
800 x 300 - 11K
Post edited by mCasual on

Comments

  • mCasualmCasual Posts: 4,607
    edited October 2012

    here i applied the animation to the ZScale channel of a black primitive-plane that masks some of the LEDs
    when the sound-level is near zero, the mask is scaled 260% and covers the whole column of LEDs
    when the sound level is maximum, the mask is scaled 0% and doesnt cover any LED

    the needles of the VU meters get their YRotate rotation animated between 42 degrees and -42 degrees

    for now there's only 1 animation channel even if the music is stereo, but this will change in the release

    stopandlisten.gif
    360 x 203 - 146K
    Post edited by mCasual on
  • mCasualmCasual Posts: 4,607
    edited October 2012

    now in stereo

    so, first picture: i run the Windows app named mcjAudioMation

    i select and load an audio file

    i export the processed audio as a .dsa daz studio script


    ---

    second picture i select the VU Meter's needle

    i run the script that was produced in step one

    i adjust the multiplier and offset so that, the needle's YRotate angle will vary between +42 and - 42 degrees

    the animation comes from the Left channel o f the audio

    stereob.png
    1193 x 664 - 51K
    stereo.png
    800 x 300 - 16K
    Post edited by mCasual on
  • mCasualmCasual Posts: 4,607
    edited October 2012
    stereodemopromo.jpg
    500 x 600 - 86K
    Post edited by mCasual on
  • Eustace ScrubbEustace Scrubb Posts: 2,698
    edited December 1969

    I don't do much animation, but I may have to try this out. It reminds me of the Player Piano .PY scripts from VanishingPoint, but more versatile.

  • mCasualmCasual Posts: 4,607
    edited December 1969

    the script will be able to export the animations as daz scripts, and, drum rolls, as Poser pz2 pose-animations

    so it should be usable by Poser and Carrara users too !

    the program is basically ready, i'm running some test and making a 30 seconds dance video, which of course took almost as long as writing the program :)

    posercompat.png
    800 x 300 - 17K
  • mCasualmCasual Posts: 4,607
    edited October 2012

    demonstration video !

    http://www.youtube.com/watch?v=SbAYrDQStwQ


    images attached

    spectrogram or sonogram for the demonstration video

    2nd image is the sonogram for a 6 seconds speech ( synthesized voice ) and uses a logarithmic scale for the power/brightness

    3rd image is log-scaled sonogram for the demonstration video

    softcellsono.png
    1018 x 367 - 359K
    sono1.png
    880 x 400 - 66K
    spectro.png
    1018 x 183 - 140K
    Post edited by mCasual on
  • CleverApeCleverApe Posts: 6
    edited December 1969

    I'm very much looking forward to this release. It ought to save me a lot of headaches synchronising an animated bass drum to its music soundtrack. Plus it seems to offer plenty of scope for experimentation, especially with dual audio inputs from a stereo soundtrack.

  • mCasualmCasual Posts: 4,607
    edited December 1969

    CleverApe said:
    I'm very much looking forward to this release. It ought to save me a lot of headaches synchronising an animated bass drum to its music soundtrack. Plus it seems to offer plenty of scope for experimentation, especially with dual audio inputs from a stereo soundtrack.

    i'll release it today, hopefully before noon (eastern time)

    if you watch the video : http://www.youtube.com/watch?v=SbAYrDQStwQ

    the simplest thing is to animate the rotation of a needle ( it's in fact a primitives-cylinder )

    then animate the drummer's stick with similar timings

    boards.jpg
    1280 x 720 - 170K
  • mCasualmCasual Posts: 4,607
    edited December 1969

    the new look of the sonograms produced by mcjAudioMation

    ( this was rescaled using a paint program )

    the user manual will contain instructions about including this "sonogram" in your Daz Studio scenes, and using it as a synchronization helper

    sono.jpg
    1176 x 734 - 28K
  • mCasualmCasual Posts: 4,607
    edited December 1969

    i think the programming is completed here's the UI

    not very cute but it should work on all Windows version since 1995

    aum.png
    800 x 300 - 13K
  • mCasualmCasual Posts: 4,607
    edited December 1969

    in case anyone's impatiently awaiting the release

    the user manual's writing has begun

    https://sites.google.com/site/mcasualsdazscripts2/mcjaudiomation

    and after lunch the download link shall appear at the bottom of the page

    ( before posting the program, i just want to make sure it passes the tests done during the writing of the manual )

  • mCasualmCasual Posts: 4,607
    edited October 2012

    ~ Delay News ~ ~ Delay News ~ ~ Delay News ~ ~ Delay News ~ ~ Delay News ~

    well, while writing the manual i discovered that, the program was doing well for producing poser-pose files usable on props, but the poser-pose files dont work on figure morphs , and i need to fix that.

    so .... tomorrow maybe you'll have the program :)

    and the manual

    -----

    unrelated image to make the post less boring

    bend.jpg
    618 x 799 - 48K
    Post edited by mCasual on
  • mCasualmCasual Posts: 4,607
    edited October 2012

    first version is ready !

    download and manual here——> https://sites.google.com/site/mcasualsdazscripts2/mcjaudiomation

    i moved the Poser Export Settings to a dialog window, it's neater this way

    later i may post an update with some speedups

    akamaneedle.png
    351 x 350 - 7K
    Post edited by mCasual on
  • Mustakettu85Mustakettu85 Posts: 2,933
    edited December 1969

    Stunning. Thanks a lot!!

  • CleverApeCleverApe Posts: 6
    edited December 1969

    The pz2 file method seems to work very well. I haven't been able to use the dsa method, because the pop-up that's supposed to appear hasn''t made an appearance. I don't know if it's the software, of just a foible of my computer (XP SP3, Daz 3). The content of the dsa files created are lists of numbers, with nothing else at the end of the file. I hope that helps.

    Thanks for this Casual. Like your other software - especially the spline smoother, and the materials animator - this stuff will come in very useful.

  • mCasualmCasual Posts: 4,607
    edited October 2012

    CleverApe said:
    The pz2 file method seems to work very well. I haven't been able to use the dsa method, because the pop-up that's supposed to appear hasn''t made an appearance. I don't know if it's the software, of just a foible of my computer (XP SP3, Daz 3). The content of the dsa files created are lists of numbers, with nothing else at the end of the file. I hope that helps.

    Thanks for this Casual. Like your other software - especially the spline smoother, and the materials animator - this stuff will come in very useful.

    my mistake ! the zip file was supposed to contain the program, plus a script named mcjAudioMation.dsa.

    The program appends this code to the script it produces for you.

    ( i included another script by mistake )

    so. right now ... i uploaded a new zip package that includes mcjAudioMation.dsa.

    https://sites.google.com/site/mcasualsdazscripts2/mcjaudiomation/mcjAudioMation.zip?attredirects=0&d=1

    ---

    btw i found out that when i run DS3 then run DS4.5, crashes are almost guaranteed, but if i run DS4.5 after a fresh reboot, i can work without crashing too quickly

    Post edited by mCasual on
  • mCasualmCasual Posts: 4,607
    edited October 2012

    ~ ~ ~ ~ ~ ~ update ~ ~ ~ ~ ~ ~ update ~ ~ ~ ~ ~ ~ update ~ ~ ~ ~ ~ ~ update ~ ~ ~ ~ ~ ~ update ~ ~ ~ ~ ~ ~

    i uploaded a new version that includes a key component missing in the initial release

    without this component the Daz scripts produced by mcjAudioMation don't work !

    thanks to CleverApe fpr telling me

    Post edited by mCasual on
  • CleverApeCleverApe Posts: 6
    edited December 1969

    Thanks Casual. I've given the new dsa package a quick try, and it seems fine.

    Sadly I seem to have jumped the gun a bit when I said the Pz2 method was working well. I've only been able to animate props. Actor Pz2's don't have any inpact. I managed to animate M4's limbs okay using the Props setting & targeting "rotationY yrot" etc, but it doesn't seem to work for abdomen, chest, neck etc. No joy with morphs either.

    Any suggestions?

  • mCasualmCasual Posts: 4,607
    edited December 1969

    CleverApe said:
    Thanks Casual. I've given the new dsa package a quick try, and it seems fine.

    Sadly I seem to have jumped the gun a bit when I said the Pz2 method was working well. I've only been able to animate props. Actor Pz2's don't have any inpact. I managed to animate M4's limbs okay using the Props setting & targeting "rotationY yrot" etc, but it doesn't seem to work for abdomen, chest, neck etc. No joy with morphs either.

    Any suggestions?

    for the pz2s, i did very few tests and only in Daz Studio
    a while ago i remember i made figures that worked in Daz Studio but crashed poser

    so maybe the pz2s i produce in mcjAudioMation are not standard enough for Poser's tastes

    i should get around to fixing that soon

    in poser, if you animate a character's abdomen, then save this as a pz2

    then using notepad you compare it with the pz2 produced by mcjAudioMation, you should be able to figure what's the problem

    for example, maybe the proper name is "rotationY Twist" instead of "rotationY yrot"

  • CleverApeCleverApe Posts: 6
    edited October 2012

    Thanks for the advice. By the way, I’m using DAZ 3, so I used the Poser Format Exporter to create a short animated pz2 of an abdomen Twist.

    The M4 abdomen movement problem seems to have been solved by using "rotateY yrot" rather than "rotationY yrot".

    I've got the head morphs to work by preceding them with three letters. e.g. The head morph "MouthSmilerOpen" needs to be "PHMMouthSmilerOpen". I guess PHM means Poser Head Morph. I suspect body morphs will require the suffix PBM (though I haven’t tested it).

    Just one other very minor cosmetic issue I ought to mention: I notice that your program displays the WAV waveform with the left channel at the bottom. In my experience software usually displays the left channel at the top, and the right channel at the bottom. Not a vital issue, but it was enough to make me check that the channel info itself hadn’t been swapped (it’s okay).

    Post edited by CleverApe on
  • mCasualmCasual Posts: 4,607
    edited October 2012

    CleverApe said:
    Thanks for the advice. By the way, I’m using DAZ 3, so I used the Poser Format Exporter to create a short animated pz2 of an abdomen Twist.

    The M4 abdomen movement problem seems to have been solved by using "rotateY yrot" rather than "rotationY yrot".

    I've got the head morphs to work by preceding them with three letters. e.g. The head morph "MouthSmilerOpen" needs to be "PHMMouthSmilerOpen". I guess PHM means Poser Head Morph. I suspect body morphs will require the suffix PBM (though I haven’t tested it).

    Just one other very minor cosmetic issue I ought to mention: I notice that your program displays the WAV waveform with the left channel at the bottom. In my experience software usually displays the left channel at the top, and the right channel at the bottom. Not a vital issue, but it was enough to make me check that the channel info itself hadn’t been swapped (it’s okay).

    i added the pz2 files mostly for Poser users and was thinking, eventually i may make it similar to the daz-script files, so when you're in Poser you could select which character/body part or morph gets the mcjAudiomation data, but that will have to wait until i seriously look into Poser-python programming

    in a next version i could add the possibility to select target channel names from lists.

    Post edited by mCasual on
  • KeironKeiron Posts: 413
    edited December 1969

    Hi

    Does anyone know of a MIDI file to Animation Script or add on for DAZ Studio .

    I found a good one for Blender

  • ImagoImago Posts: 5,152
    edited December 1969

    Hi, Casual!
    Any chance to update Audiomation?
    The program works fine and the scripts are fabulous on DAZ Studio, but it crashes when I try to listen to the WAV file before saving as PZ2. I'm on Windows 8.1, maybe depends on my OS.

    Keep the great work! ^.^

  • mCasualmCasual Posts: 4,607
    edited July 2015

    Hi, Casual!
    Any chance to update Audiomation?
    The program works fine and the scripts are fabulous on DAZ Studio, but it crashes when I try to listen to the WAV file before saving as PZ2. I'm on Windows 8.1, maybe depends on my OS.

    Keep the great work! ^.^

    i didn't use it in a long time ... it's a standalone exe i think, no ... lets see ... yes

    well it still works with Windows 7

    maybe your wav files use compression ( some wav files are in fact MP3s )

    so maybe it would be less crash-prone if you used very standard PCM uncompressed wav files


    i see in the source code that it's quite touchy and accepts only some


    the sound playing is simply using the PlaySound function which is probably part of the mmsystem windows/sdk

    PlaySound( szBuff, NULL, SND_FILENAME | SND_ASYNC );
    

    ah ha! it's in the manual

    mcjAudioMation only accepts to load very standard .wav files.
    meaning, 8bit or 16 bit PCM (uncompressed ) .wav files ,
    mp3-encoded wav files wont load

    the program directly accesses the .wav file, it doesn't use the safer high-level windows services,
    so it only works if everything is very very according to plan - if the wav file contains
    labels or even album cover images, there's good chances mcjAudioMation will be confused

    Post edited by mCasual on
  • ImagoImago Posts: 5,152
    edited December 1969

    Casual said:
    Hi, Casual!
    Any chance to update Audiomation?
    The program works fine and the scripts are fabulous on DAZ Studio, but it crashes when I try to listen to the WAV file before saving as PZ2. I'm on Windows 8.1, maybe depends on my OS.

    Keep the great work! ^.^

    i didn't use it in a long time ... it's a standalone exe i think, no ... lets see ... yes

    well it still works with Windows 7

    maybe your wav files use compression ( some wav files are in fact MP3s )

    so maybe it would be less crash-prone if you used very standard PCM uncompressed wav files


    i see in the source code that it's quite touchy and accepts only some


    the sound playing is simply using the PlaySound function which is probably part of the mmsystem windows/sdk

    PlaySound( szBuff, NULL, SND_FILENAME | SND_ASYNC );
    

    ah ha! it's in the manual

    mcjAudioMation only accepts to load very standard .wav files.
    meaning, 8bit or 16 bit PCM (uncompressed ) .wav files ,
    mp3-encoded wav files wont load

    the program directly accesses the .wav file, it doesn't use the safer high-level windows services,
    so it only works if everything is very very according to plan - if the wav file contains
    labels or even album cover images, there's good chances mcjAudioMation will be confused

    So I just have to "decompress" the wav files?
    Ok, I'll try! Thanks!

  • ImagoImago Posts: 5,152
    edited December 1969

    Nothing to do...
    The WAVs are alredy 16bit PCM and even if I decrease the to 8bit, the software crashes.
    Is always the BEX error and the trick with the Windows' DEP doesn't work...

  • Crashes like a bitch in version 4.8 32 bit Daz.   Too bad, because I really needed something like this.

     

  • mCasualmCasual Posts: 4,607

    what crashes is the exe app? or when you load the pz2 or when you load the .dsa?

    i'll do some tests on DS4.8 64 bit i'm on windows10 64bit

    i have ds 4.7 32 bit ( maybe ds 4.8 32 bit too not sure )

     

    ancich said:

    Crashes like a bitch in version 4.8 32 bit Daz.   Too bad, because I really needed something like this.

     

     

Sign In or Register to comment.