Advertisement

Author and publisher:

Published: · Last updated:

How to Embed the Tone Generator Widget

Add audio testing and tone generation to your website

Get embed code

Copy the iframe code to embed on any website

Tone Generator widget embedded in a webpage

Perfect For

Music Education

Teach frequency, pitch, and waveform concepts with interactive demonstrations

Audio Equipment Reviews

Let readers test their speakers and headphones directly on your review pages

Meditation & Wellness

Provide solfeggio frequencies and relaxation tones for your wellness platform

Developer Documentation

Demonstrate Web Audio API capabilities with a working, interactive example

How to Embed

  1. Click the "Get embed code" button above to open the embed page
  2. Choose your preferred widget size and theme
  3. Copy the generated iframe code
  4. Paste the code into your website's HTML where you want the widget to appear

Customization Options

Add settings to the widget's address to preset its state when it loads: the tone settings go after # and the theme in the query string (?theme=):

Parameter Description Example
freq Starting frequency in Hz (20–20,000) freq=440
wave Waveform type (sine, square, triangle, sawtooth) wave=sine
vol Initial volume, from 0 to 1 vol=30
theme Widget theme, in the query string (blue-light, blue-dark, etc.) theme=blue-dark
Pro Tip: Combine settings with &, for example: widget.html?theme=purple-light#freq=528&wave=sine&vol=0.3 presets a 528 Hz sine tone at 30% volume in the purple theme.

Recommended Sizes

The widget comes in fixed sizes; the embed page offers each one:

  • Compact: 360 × 360 pixels (285 pixels high without the safety warning)
  • Standard: 400 × 450 pixels (365 pixels high without the safety warning)
  • Wide: use width="100%" to make the widget fill its container

Ready to Embed?

Get embed code
Advertisement