Amplitude for WebGL


From the creators of SALSA Lipsync

Website: CrazyMinnowStudio.com
Product site: Amplitude
Support email: assetsupport@crazyminnow.com

Available Now!

Amplitude is a Unity3D asset that provides access to audio amplitude and frequency data on the WebGL platform, where the Unity API does not. It offers a clean and simple custom Inspector, and leverages a standard Unity AudioSource component. The custom inspector communicates with a native JavaScript library, allowing it to make function calls directly against the underlying web browser’s Web Audio API.

  • WebGL amplitude and frequency.
  • Native JavaScript library accesses Web Audio API directly.

Amplitude is easy to use, simply add the component, link your Unity AudioSource to the Amplitude AudioSource field, set the Data Type (Amplitude or Frequency), set the sample size, and set an amount of boost if desired. Play your audio using the normal Unity AudioSource API. While your audio is playing, Amplitude exposes a float array of the size you specified, and an average. The values range from -1 to 1 for amplitude, and 0 to 1 for amplitude absolute values or frequency.

  • Read amplitude/frequency values from the [sample] float array property.
  • Read amplitude/frequency average from the [average] float property.

Being the creators of SALSA Lipsync, we of course also created a SALSA lip-sync add-on that allows SALSA to leverage Amplitude for WebGL-based character lip-sync. The SALSA add-on (AmplitudeSALSA) is free for Amplitude customers using the link below.


**AmplitudeSALSA is a separate free download for SALSA customers.

  • Combine Amplitude, SALSA, and our free AmplitudeSALSA add-on for WebGL-based character lip-sync.

The sample scene includes a 64 sample UI prefab that allows you to monitor results, and set sample size and data type within a WebGL build.




using UnityEngine;
using UnityEngine.UI;
using CrazyMinnow.AmplitudeWebGL;

public class AmplitudeTester : MonoBehaviour
{
    public Amplitude amplitude;
    public Slider uiSlider;

    // Read the amplitude sample or average values
    // while the AudioSource AudioClip is playing
    void Update()
    {
        if (amplitude.audioSource.isPlaying)
        {
            // Access the amplitude average
            uiSlider.value = amplitude.average;

            // Or access the sample array
            // for (int i = 0; i < amplitude.sample.Length; i++)
            // {
            //  uiSlider.value = sample[i];
            // }
        }
    }

    // Example method calls the AudioSource.Play method
    public void Play()
    {
        amplitude.audioSource.Play();
    }

    // Example method calls the AudioSource.Stop method
    public void Stop()
    {
        amplitude.audioSource.Stop();
    }
}
1 Like

Amplitude has been submitted to the Unity Asset Store. It should be available in a week or so. We reached out to Unity to check if we can use the asset upgrade tools to offer a discount to existing SALSA customers.

We will be temporarily offering a cross product upgrade for Amplitude to existing SALSA customers. If you own SALSA, you will be able to purchase Amplitude for 25% off the regular price of $25, taking the price down to $18.75.

Any word on whether this app is available yet? I cannot find it in the UAS. Thanks

Hello deleo,

Thanks for your interest. We are still waiting for Unity approval, which is supposed to take about two weeks or 10 working days. We’ll post here, and to our Facebook and Twitter feeds once it’s live.

Michael


We’ve built a free add-on for Amplitude called BeatDetect that allows you to easily create amplitude level event triggers. You can use these events to respond to sounds or music on the WebGL platform.

BeatDetect is available through our website, but requires a valid Amplitude invoice number, so be sure to grab it after you pick-up Amplitude on the Unity Asset Store (once it’s live).

https://crazyminnowstudio.com/posts/beat-detect-for-amplitude/


We have posted the AmplitudeSALSA add-on details to our website. AmplitudeSALSA is a free Amplitude add-on that acts as a bridge between SALSA and Amplitude to allow SALSA Lipsync to work on the WebGL platform.

AmplitudeSALSA is available through our website, but requires a valid Amplitude invoice number, so be sure to grab it after you pick-up Amplitude on the Unity Asset Store (once it’s live).

Amplitude for WebGL has been approved and is now available on the Asset Store. A cross-product upgrade is available for existing SALSA Lipsync customers that provides a 25% discount off the normal price.

Version 1.0.1 has been submitted to the asset store. Check our site for the release notes history.

https://crazyminnowstudio.com/unity-3d/amplitude-webgl/release-notes/

Version 1.0.1 is now available on the asset store.

Release notes
https://crazyminnowstudio.com/unity-3d/amplitude-webgl/release-notes/

The current Amplitude build v1.0.1 provides audio amplitude levels from WebGL. The next update v1.1.0 will add audio frequency access from WebGL. Where amplitude is useful for average audio level, frequency is useful for providing amplitude level isolated out by audio frequency across the sample array. For example, if you are capturing an array of 64 frequency samples on a music track with bass and snare drum, there is a good chance that you could isolate those frequencies and use our Beat Detect add-on to trigger off of each hit independently. We’re also updating our Beat Detect add-on to adapt to the new amplitude/frequency type options. When using amplitude, the triggers monitor the average, when using frequency, an additional index field appears so that you can select the sample index you want to monitor. Last but not least, we’re adding some UI prefab and sample scenes to make testing and tuning easier from within a WebGL build.

Amplitude 1.1.0 has been submitted to the Asset Store and brings amplitude and now frequency processing to the WebGL platform. If you want to using SALSA lipsync in WebGL, grab our AmplitudeSALSA add-on. If you want to do awesome frequency-base beat detection, grab our Beat Detect add-on.

Amplitude 1.1.0 replaces the 32 sample UI with a 64 sample UI prefab that allows boost, switching sample size and data types (amplitude/frequency) in a WebGL build. Beat Detect 1.1.0 has been adapted to Amplitude 1.1.0 and includes Trigger spawner configurator UI prefab and a log output for testing and tuning in a WebGL build.

Try our new WebGL demos:

Read the release note here.
https://crazyminnowstudio.com/unity-3d/amplitude-webgl/release-notes/

Amplitude 1.1.0 is now available in the asset store.
Unity Asset Store - The Best Assets for Game Making (this link has been deprecated – we are waiting on a new asset link from Unity)

Hello – Unity just deprecated our package without warning. We have been trying to work with them to clean up the issue with the SALSA reviews appearing under the Amplitude asset and they executed our proposal without communicating the feasibility with us and letting us contact current and potential customers.

Rest assured, if you already purchased Amplitude, you did not purchase a dead-end product and will have a product page and asset to work with. We are trying to contact someone at Unity to find out what is going on and when/how it will be fixed. Please stand by, we appreciate your patience.

Ultimately what we believe will happen (as far as what we proposed to them [Unity]):

  • The assets will be removed (which is what already happened).
  • They will be recreated as stand-alone assets without the cross-product upgrade (Unity is unable to support this mechanism).
  • Existing customers will be transferred to the new products (and notified).
  • The cross-product promotional pricing will no longer be available.

They completely bypassed the “communicate with us” bullet point we proposed – so we cannot confirm how the rest of this is going to play out. We apologize for this situation and humbly ask for and appreciate your patience.

As we hoped was not the case, Unity did step 1 of what we proposed and then passed it back to us this morning as if the whole proposal was complete. Needless to say, we are still trying to get this all sorted out.

On a positive note, if you have already purchased this product, the add-on downloads are still available to you, simply use the invoice number you received when you purchased.

I guess it is all because Unity does not have a category that allows side-grades…. :roll_eyes:
Well, I appreciate that you made a customer discount available at least for a little while.

Amplitude is working great. I hadn’t bothered with WebGL because I couldn’t use SALSA… Now i feel like I have a lot of catch-up to do.:sunglasses:

1 Like

That’s more or less the case. Initially, we were led to believe it was all possible (and so we went forward with implementation). They failed to mention the grossly undesirable side-effect of copying the reviews from SALSA to each product. Of course, Unity told us after-the-fact it was a side-effect and they had no means of removing the linked reviews. We then proposed an idea and they exercised one part of it without discussion and then checked out. Communication is certainly not their forte.

We are super happy you are enjoying Amplitude…can’t wait to see how you put it to use! :wink:

1 Like

After the attempted cross-product promotional pricing fiasco, Amplitude has been re-submitted to the Asset Store.

Amplitude is once again (finally) live on the Asset Store.

1 Like