# Amplitude for WebGL

**URL:** <https://discussions.unity.com/t/amplitude-for-webgl/684968>\
**Category:** Community Showcases\
**Tags:** Asset-Store-Assets\
**Created:** [December 7, 2017, 7:43am UTC](https://discussions.unity.com/t/amplitude-for-webgl/684968 "2017-12-07T07:43:40Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![Crazy-Minnow-Studio](https://dub1.discourse-cdn.com/unity/user_avatar/discussions.unity.com/crazy-minnow-studio/32/611914_2.png) [@Crazy-Minnow-Studio](https://discussions.unity.com/u/Crazy-Minnow-Studio)\
**Post date:** [December 7, 2017, 7:43am UTC](https://discussions.unity.com/t/amplitude-for-webgl/684968/1 "2017-12-07T07:43:40Z")

</div>

**From the creators of [SALSA Lipsync](https://www.assetstore.unity3d.com/en/#!/content/16944)**

Website: **[CrazyMinnowStudio.com](http://crazyminnowstudio.com/)**  
Product site: **[Amplitude](https://crazyminnowstudio.com/unity-3d/amplitude-webgl/)**  
Support email: **[assetsupport@crazyminnow.com](mailto:assetsupport@crazyminnow.com)**

**[Available Now!](https://www.assetstore.unity3d.com/en/#!/content/111277)**

- **integrations:**

- [AmplitudeSALSA](https://crazyminnowstudio.com/posts/salsa-lipsync-in-webgl-with-amplitude/)

- [Beat Detect](https://crazyminnowstudio.com/posts/beat-detect-for-amplitude/)

- **webgl demos:**

- [Amplitude-BeatDetect](http://crazyminnowstudio.com/unity/Amplitude-BeatDetect/index.html)

- [Amplitude Hero (Guitar Hero clone)](http://crazyminnowstudio.com/unity/AmplitudeHero/index.html)

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](https://crazyminnowstudio.com/unity-3d/lip-sync-SALSA/) 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.

> **[Unity Asset - Amplitude for WebGL Introduction Tutorial](https://www.youtube.com/watch?v=h5YsVVNboJw%7Cstart=3)**
>
> Amplitude is a Unity3D asset that provides beat detection and amplitude data on the WebGL platform. Currently, this level of analysis is not available in the...

```csharp
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();
    }
}

```

---

<div class="post-metadata">

**Author:** ![Crazy-Minnow-Studio](https://dub1.discourse-cdn.com/unity/user_avatar/discussions.unity.com/crazy-minnow-studio/32/611914_2.png) [@Crazy-Minnow-Studio](https://discussions.unity.com/u/Crazy-Minnow-Studio)\
**Post date:** [December 8, 2017, 5:58pm UTC](https://discussions.unity.com/t/amplitude-for-webgl/684968/2 "2017-12-08T17:58:57Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![Crazy-Minnow-Studio](https://dub1.discourse-cdn.com/unity/user_avatar/discussions.unity.com/crazy-minnow-studio/32/611914_2.png) [@Crazy-Minnow-Studio](https://discussions.unity.com/u/Crazy-Minnow-Studio)\
**Post date:** [December 13, 2017, 8:49am UTC](https://discussions.unity.com/t/amplitude-for-webgl/684968/3 "2017-12-13T08:49:38Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![deleo](https://dub1.discourse-cdn.com/unity/user_avatar/discussions.unity.com/deleo/32/336224_2.png) [@deleo](https://discussions.unity.com/u/deleo)\
**Post date:** [December 18, 2017, 9:08am UTC](https://discussions.unity.com/t/amplitude-for-webgl/684968/4 "2017-12-18T09:08:47Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Crazy-Minnow-Studio](https://dub1.discourse-cdn.com/unity/user_avatar/discussions.unity.com/crazy-minnow-studio/32/611914_2.png) [@Crazy-Minnow-Studio](https://discussions.unity.com/u/Crazy-Minnow-Studio)\
**Post date:** [December 18, 2017, 3:11pm UTC](https://discussions.unity.com/t/amplitude-for-webgl/684968/5 "2017-12-18T15:11:16Z")

</div>

> [@deleo](#):
>
> 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

---

<div class="post-metadata">

**Author:** ![Crazy-Minnow-Studio](https://dub1.discourse-cdn.com/unity/user_avatar/discussions.unity.com/crazy-minnow-studio/32/611914_2.png) [@Crazy-Minnow-Studio](https://discussions.unity.com/u/Crazy-Minnow-Studio)\
**Post date:** [December 19, 2017, 6:33pm UTC](https://discussions.unity.com/t/amplitude-for-webgl/684968/6 "2017-12-19T18:33:18Z")

</div>

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/](https://crazyminnowstudio.com/posts/beat-detect-for-amplitude/)

---

<div class="post-metadata">

**Author:** ![Crazy-Minnow-Studio](https://dub1.discourse-cdn.com/unity/user_avatar/discussions.unity.com/crazy-minnow-studio/32/611914_2.png) [@Crazy-Minnow-Studio](https://discussions.unity.com/u/Crazy-Minnow-Studio)\
**Post date:** [December 20, 2017, 5:32pm UTC](https://discussions.unity.com/t/amplitude-for-webgl/684968/7 "2017-12-20T17:32:29Z")

</div>

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).

> **[SALSA LipSync in WebGL with Amplitude](https://crazyminnowstudio.com/posts/salsa-lipsync-in-webgl-with-amplitude/)**
>
> Add-on for connecting SALSA to Amplitude for WebGL Lipsync

---

<div class="post-metadata">

**Author:** ![Crazy-Minnow-Studio](https://dub1.discourse-cdn.com/unity/user_avatar/discussions.unity.com/crazy-minnow-studio/32/611914_2.png) [@Crazy-Minnow-Studio](https://discussions.unity.com/u/Crazy-Minnow-Studio)\
**Post date:** [January 10, 2018, 12:33am UTC](https://discussions.unity.com/t/amplitude-for-webgl/684968/8 "2018-01-10T00:33:01Z")

</div>

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.

> **[Unity Asset Store - The Best Assets for Game Making](https://assetstore.unity.com/)**
>
> Discover the best assets for game making. Choose from our massive catalog of 2D, 3D models, SDKs, templates, and tools to speed up your game development process.

---

<div class="post-metadata">

**Author:** ![Crazy-Minnow-Studio](https://dub1.discourse-cdn.com/unity/user_avatar/discussions.unity.com/crazy-minnow-studio/32/611914_2.png) [@Crazy-Minnow-Studio](https://discussions.unity.com/u/Crazy-Minnow-Studio)\
**Post date:** [January 10, 2018, 7:41am UTC](https://discussions.unity.com/t/amplitude-for-webgl/684968/9 "2018-01-10T07:41:57Z")

</div>

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/](https://crazyminnowstudio.com/unity-3d/amplitude-webgl/release-notes/)

---

<div class="post-metadata">

**Author:** ![Crazy-Minnow-Studio](https://dub1.discourse-cdn.com/unity/user_avatar/discussions.unity.com/crazy-minnow-studio/32/611914_2.png) [@Crazy-Minnow-Studio](https://discussions.unity.com/u/Crazy-Minnow-Studio)\
**Post date:** [January 11, 2018, 11:29pm UTC](https://discussions.unity.com/t/amplitude-for-webgl/684968/10 "2018-01-11T23:29:18Z")

</div>

Version 1.0.1 is now available on the asset store.

> **[Unity Asset Store - The Best Assets for Game Making](https://assetstore.unity.com/)**
>
> Discover the best assets for game making. Choose from our massive catalog of 2D, 3D models, SDKs, templates, and tools to speed up your game development process.

Release notes  
[https://crazyminnowstudio.com/unity-3d/amplitude-webgl/release-notes/](https://crazyminnowstudio.com/unity-3d/amplitude-webgl/release-notes/)

---

<div class="post-metadata">

**Author:** ![Crazy-Minnow-Studio](https://dub1.discourse-cdn.com/unity/user_avatar/discussions.unity.com/crazy-minnow-studio/32/611914_2.png) [@Crazy-Minnow-Studio](https://discussions.unity.com/u/Crazy-Minnow-Studio)\
**Post date:** [January 18, 2018, 3:48pm UTC](https://discussions.unity.com/t/amplitude-for-webgl/684968/11 "2018-01-18T15:48:57Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![Crazy-Minnow-Studio](https://dub1.discourse-cdn.com/unity/user_avatar/discussions.unity.com/crazy-minnow-studio/32/611914_2.png) [@Crazy-Minnow-Studio](https://discussions.unity.com/u/Crazy-Minnow-Studio)\
**Post date:** [January 22, 2018, 7:14am UTC](https://discussions.unity.com/t/amplitude-for-webgl/684968/12 "2018-01-22T07:14:18Z")

</div>

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:**

- [Amplitude-BeatDetect](http://crazyminnowstudio.com/unity/Amplitude-BeatDetect/index.html)
- [Amplitude Hero (Guitar Hero clone)](http://crazyminnowstudio.com/unity/AmplitudeHero/index.html)

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

---

<div class="post-metadata">

**Author:** ![Crazy-Minnow-Studio](https://dub1.discourse-cdn.com/unity/user_avatar/discussions.unity.com/crazy-minnow-studio/32/611914_2.png) [@Crazy-Minnow-Studio](https://discussions.unity.com/u/Crazy-Minnow-Studio)\
**Post date:** [January 23, 2018, 6:44pm UTC](https://discussions.unity.com/t/amplitude-for-webgl/684968/13 "2018-01-23T18:44:53Z")

</div>

Amplitude 1.1.0 is now available in the asset store.  
[Unity Asset Store - The Best Assets for Game Making](https://www.assetstore.unity3d.com/en/#!/content/106699) (this link has been deprecated – we are waiting on a new asset link from Unity)

---

<div class="post-metadata">

**Author:** ![Crazy-Minnow-Studio](https://dub1.discourse-cdn.com/unity/user_avatar/discussions.unity.com/crazy-minnow-studio/32/611914_2.png) [@Crazy-Minnow-Studio](https://discussions.unity.com/u/Crazy-Minnow-Studio)\
**Post date:** [February 5, 2018, 9:34pm UTC](https://discussions.unity.com/t/amplitude-for-webgl/684968/14 "2018-02-05T21:34:02Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![Crazy-Minnow-Studio](https://dub1.discourse-cdn.com/unity/user_avatar/discussions.unity.com/crazy-minnow-studio/32/611914_2.png) [@Crazy-Minnow-Studio](https://discussions.unity.com/u/Crazy-Minnow-Studio)\
**Post date:** [February 5, 2018, 9:44pm UTC](https://discussions.unity.com/t/amplitude-for-webgl/684968/15 "2018-02-05T21:44:39Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![Crazy-Minnow-Studio](https://dub1.discourse-cdn.com/unity/user_avatar/discussions.unity.com/crazy-minnow-studio/32/611914_2.png) [@Crazy-Minnow-Studio](https://discussions.unity.com/u/Crazy-Minnow-Studio)\
**Post date:** [February 6, 2018, 6:23pm UTC](https://discussions.unity.com/t/amplitude-for-webgl/684968/16 "2018-02-06T18:23:42Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![wetcircuit](https://dub1.discourse-cdn.com/unity/user_avatar/discussions.unity.com/wetcircuit/32/580666_2.png) [@wetcircuit](https://discussions.unity.com/u/wetcircuit)\
**Post date:** [February 6, 2018, 6:35pm UTC](https://discussions.unity.com/t/amplitude-for-webgl/684968/17 "2018-02-06T18:35:57Z")

</div>

I guess it is all because Unity does not have a category that allows side-grades…. 🙄  
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.🕶

---

<div class="post-metadata">

**Author:** ![Crazy-Minnow-Studio](https://dub1.discourse-cdn.com/unity/user_avatar/discussions.unity.com/crazy-minnow-studio/32/611914_2.png) [@Crazy-Minnow-Studio](https://discussions.unity.com/u/Crazy-Minnow-Studio)\
**Post date:** [February 6, 2018, 8:15pm UTC](https://discussions.unity.com/t/amplitude-for-webgl/684968/18 "2018-02-06T20:15:39Z")

</div>

> [@wetcircuit](#):
>
> I guess it is all because Unity does not have a category that allows side-grades…. 🙄  
> 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.🕶

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! 😉

---

<div class="post-metadata">

**Author:** ![Crazy-Minnow-Studio](https://dub1.discourse-cdn.com/unity/user_avatar/discussions.unity.com/crazy-minnow-studio/32/611914_2.png) [@Crazy-Minnow-Studio](https://discussions.unity.com/u/Crazy-Minnow-Studio)\
**Post date:** [February 10, 2018, 11:22pm UTC](https://discussions.unity.com/t/amplitude-for-webgl/684968/19 "2018-02-10T23:22:58Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Crazy-Minnow-Studio](https://dub1.discourse-cdn.com/unity/user_avatar/discussions.unity.com/crazy-minnow-studio/32/611914_2.png) [@Crazy-Minnow-Studio](https://discussions.unity.com/u/Crazy-Minnow-Studio)\
**Post date:** [February 27, 2018, 4:08am UTC](https://discussions.unity.com/t/amplitude-for-webgl/684968/20 "2018-02-27T04:08:44Z")

</div>

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

> **[Unity Asset Store - The Best Assets for Game Making](https://assetstore.unity.com/)**
>
> Discover the best assets for game making. Choose from our massive catalog of 2D, 3D models, SDKs, templates, and tools to speed up your game development process.

[Next page](https://discussions.unity.com/t/amplitude-for-webgl/684968.md?page=2)
