Products
Features
YouTube Video Summarizer
Summarize YouTube videos
Web & PDF Highlighter
Highlight web pages & PDFs
Chat with PDF
Ask any PDF questions with AI
Ask AI Clone
Chat with your highlights & memories
Audio Transcriber
Transcribe audio files to text
Glasp Reader
Read and highlight articles
Kindle Highlight Export
Export your Kindle highlights
Idea Hatch
Hatch ideas from your highlights
Integrations
Obsidian Plugin
Notion Integration
Pocket Integration
Instapaper Integration
Medium Integration
Readwise Integration
Snipd Integration
Hypothesis Integration
Apps & Extensions
Chrome Extension
Safari Extension
Edge Add-ons
Firefox Add-ons
iOS App
Android App
Discover
Discover
Ideas
Discover new ideas and insights
Articles
Curated articles and insights
Books
Book recommendations by great minds
Posts
Essays and notes from readers
Quotes
Inspiring quotes collection
Videos
Curated videos and summaries
Explore Glasp
Glasp Newsletter
Weekly insights and updates
Glasp Talk
Interview series with great minds
Glasp Blog
Latest news and articles
Glasp Use Cases
Learn how others use Glasp
Build & Support
Glasp API
Access Glasp's API for developers
MCP Connector
Connect Glasp to Claude & ChatGPT
Community
Glasp Reddit Community
Students
Student discount and benefits
FAQs
Frequently Asked Questions
AboutPricing
DashboardLog inSign up

17.9: Sound Visualization: Graphing Amplitude - p5.js Sound Tutorial

93.1K views
•
October 17, 2016
by
The Coding Train
YouTube video player
17.9: Sound Visualization: Graphing Amplitude - p5.js Sound Tutorial

TL;DR

Using p5.js, create interactive sound visualization by connecting sound amplitudes to an mp3 file.

Transcript

hello welcome to another video with p5.js sound as you can see the previous video this is the result of that one where I have this talking ellipse which moves as I speak is really just responding not to my voice but any sound and so what I want to do is now connect this same volume listening thing to an mp3 file instead of my voice and see what hap... Read More

Key Insights

  • 👂 p5.js allows for interactive sound visualization by connecting sound amplitudes.
  • 🖐️ Preloading and playing mp3 files can create an engaging auditory experience.
  • 🎮 Toggling play/pause functionality enhances user control in p5.js sound projects.
  • ⌛ Graphing volume levels over time offers insightful data visualization.
  • 👂 Customizing visual effects like translating and mapping can improve the sound visualization experience.
  • 🔇 Utilizing arrays for storing and manipulating volume history is crucial in sound visualization.
  • 🥺 Considering user suggestions can lead to innovative enhancements in sound visualization projects.

Install to Summarize YouTube Videos and Get Transcripts

Explore YouTube Video Summarizer or Get YouTube Transcript Extractor

Questions & Answers

Q: How can sound amplitudes be connected to an mp3 file in p5.js?

In p5.js, you can create an amplitude object and connect it to the mp3 file to listen to the volume levels of the sound.

Q: What is the process for toggling song play/pause in the p5.js sound visualization?

By creating a button to toggle the song play/pause and writing a function to handle the action based on whether the song is playing or paused.

Q: How can the volume levels over time be graphed in a p5.js sound visualization?

You can store the volume history in an array and graph it using points to visualize the amplitude changes over time.

Q: Is it possible to customize the sound visualization in p5.js further?

Yes, by utilizing features like mapping y-values, translating the graph for visual effects, and implementing additional visualization elements like a red line for real-time amplitude.

Summary & Key Takeaways

  • Generate sound visualization by connecting sound amplitudes to the mp3 file.

  • Utilize p5.js to preload and play the mp3 file for visualization.

  • Implement features like toggling song play/pause and graphing volume levels over time.


Read in Other Languages (beta)

English

Share This Summary 📚

Summarize YouTube Videos and Get Video Transcripts with 1-Click

Download browser extensions on:

Try YouTube Summary with ChatGPT & Claude or YouTube Transcript Generator

Explore More Summaries from The Coding Train 📚

Classifying Poses with ml5.js Part 2 thumbnail
Classifying Poses with ml5.js Part 2
The Coding Train
ITP/IMA Winter Show 2018 thumbnail
ITP/IMA Winter Show 2018
The Coding Train
9.4: Genetic Algorithm: Looking at Code - The Nature of Code thumbnail
9.4: Genetic Algorithm: Looking at Code - The Nature of Code
The Coding Train
Coding Challenge #126: Toothpicks thumbnail
Coding Challenge #126: Toothpicks
The Coding Train
Coding Challenge #116: Lissajous Curve Table thumbnail
Coding Challenge #116: Lissajous Curve Table
The Coding Train
8.1: Fractals - The Nature of Code thumbnail
8.1: Fractals - The Nature of Code
The Coding Train

Summarize YouTube Videos and Get Video Transcripts with 1-Click

Download browser extensions on:

Try YouTube Summary with ChatGPT & Claude or YouTube Transcript Generator

Apps & Extensions

  • Chrome Extension
  • Safari Extension
  • Edge Add-ons
  • Firefox Add-ons
  • iOS App
  • Android App

Key Features

  • YouTube Video Summarizer
  • Web & PDF Summarizer
  • Web & PDF Highlighter
  • Chat with PDF
  • Ask AI Clone
  • Audio Transcriber
  • Glasp Reader
  • Kindle Highlight Export
  • Idea Hatch

Integrations

  • Obsidian Plugin
  • Notion Integration
  • Pocket Integration
  • Instapaper Integration
  • Medium Integration
  • Readwise Integration
  • Snipd Integration
  • Hypothesis Integration

More Features

  • APIs
  • MCP Connector
  • Blog & Post
  • Embed Links
  • Image Highlight
  • Personality Test
  • Quote Shots

Company

  • About us
  • Blog
  • Community
  • FAQs
  • Job Board
  • Newsletter
  • Pricing
Terms

•

Privacy

•

Guidelines

© 2026 Glasp Inc. All rights reserved.