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.6: Sound Synthesis - p5.js Sound Tutorial

42.4K views
•
June 18, 2016
by
The Coding Train
YouTube video player
17.6: Sound Synthesis - p5.js Sound Tutorial

TL;DR

Learn how to create sound from scratch using sound synthesis in JavaScript with the p5.js sound library.

Transcript

hello welcome to a video tutorial about sound synthesis in the browser using JavaScript using the p5js sound library now this is a uh one part of a continuing series about uh programming with sound and what I'm going to do in this particular video which is quite different from my previous four videos is instead of loading a sound from a file like s... Read More

Key Insights

  • 👋 Sound waves are created by vibrating objects, such as vocal cords, and travel through the air as vibrations.
  • 👋 Sound waves can be represented using waveforms, such as sine, triangle, sawtooth, or square waves.
  • 🔇 Amplitude refers to the height or volume of a sound wave, while frequency refers to the number of cycles per second.
  • 👂 JavaScript and the p5.js sound library enable the creation and control of sound waves through code.
  • 👋 Fade in and fade out effects can be achieved by adjusting the amplitude of a sound wave slowly.
  • 👂 Different waveform types produce different sounds, allowing for diverse sound synthesis possibilities.
  • 👂 User input can be used to create interactive sound experiences, such as synthesizing musical instruments or generating tunes.

Install to Summarize YouTube Videos and Get Transcripts

Explore YouTube Video Summarizer or Get YouTube Transcript Extractor

Questions & Answers

Q: What is sound synthesis and how does it differ from playing sound files?

Sound synthesis is the process of creating sound from scratch using algorithms, while playing sound files involves loading and playing pre-recorded audio. Sound synthesis allows for more control and flexibility in creating and manipulating sounds.

Q: How are sound waves represented in code?

Sound waves are represented using waveforms, such as sine, triangle, sawtooth, or square waves. These waveforms create different sounds depending on their shape.

Q: How can you control the amplitude and frequency of a sound wave in JavaScript?

In JavaScript, you can set the amplitude of a sound wave using the "amplitude" parameter, and the frequency using the "frequency" parameter. These values can be adjusted to achieve the desired volume and pitch of the sound.

Q: How can you create interactive sound experiences using sound synthesis?

By combining sound synthesis with user input, you can create interactive experiences like an interactive piano or melody generator. By manipulating different parameters of the sound wave, you can create a wide range of unique sounds.

Summary & Key Takeaways

  • This tutorial explores sound synthesis in the browser using JavaScript and the p5.js sound library.

  • It covers the concept of sound waves, amplitude, frequency, and waveform types.

  • The tutorial demonstrates how to create and control a sound wave through code, including toggling, fading, and adjusting frequency.


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 📚

Coding Train Live:  Processing Foundation Holiday Telethon 2019 thumbnail
Coding Train Live: Processing Foundation Holiday Telethon 2019
The Coding Train
How to Use Quad Trees for Efficient Point Retrieval thumbnail
How to Use Quad Trees for Efficient Point Retrieval
The Coding Train
2.3: Regular Expressions: Character Classes - Programming with Text thumbnail
2.3: Regular Expressions: Character Classes - Programming with Text
The Coding Train
4.3: Using random() - Processing Tutorial thumbnail
4.3: Using random() - Processing Tutorial
The Coding Train
Text Generation using Spell with Nabil Hassein thumbnail
Text Generation using Spell with Nabil Hassein
The Coding Train
Coding Challenge 170: The Monty Hall Problem thumbnail
Coding Challenge 170: The Monty Hall Problem
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.