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

Coding Challenge #151: Ukulele Tuner with Machine Learning Pitch Detection Model

85.3K views
•
October 3, 2019
by
The Coding Train
YouTube video player
Coding Challenge #151: Ukulele Tuner with Machine Learning Pitch Detection Model

TL;DR

A coding challenge where the host creates a ukulele tuner using ml5.js and p5 Web Editor.

Transcript

Hello and welcome to a coding challenge. Oh, my ukulele is very out of tune. What luck this happens to be the make a ukulele tuner coding challenge. What a coincidence. Well, I'm here in my new studio located-- it's not my studio, but it is a studio. It's in Brooklyn at New York University. And I'm doing my first coding challenge from here. I don't... Read More

Key Insights

  • 😒 The ml5.js library provides an easy-to-use interface for accessing machine learning models, such as the pitch detection model used in this coding challenge.
  • 🎭 Pretrained models like CREPE can be used to perform complex tasks, such as pitch detection, without the need for custom algorithms.
  • 👨‍💻 The p5 Web Editor simplifies the process of creating and running code, especially when using external libraries.
  • 👤 Visual indicators can be used to provide real-time feedback and enhance the user experience in applications like tuners.

Install to Summarize YouTube Videos and Get Transcripts

Explore YouTube Video Summarizer or Get YouTube Transcript Extractor

Questions & Answers

Q: What is the purpose of the ml5.js library in this coding challenge?

The ml5.js library is used to access the pitch detection model, which allows for analysis of sounds and identification of specific tones or pitches.

Q: How does the pitch detection model work?

The pitch detection model, known as CREPE, is a pretrained model that uses machine learning to analyze audio and estimate the pitch of the sound. It is trained on a specific dataset and can make predictions on new audio inputs.

Q: How does the host handle importing the model files for the pitch detection model?

The host downloads the necessary model files from the ml5-data-and-models GitHub repository and includes them in the code. They also provide a workaround using a content delivery network to directly access the model files from GitHub.

Q: How does the visual indicator on the screen represent the difference in pitch?

The host creates a rectangle on the canvas, with its position and size determined by the difference in frequency between the detected pitch and the desired pitch. The rectangle moves to the right if the pitch is higher and to the left if the pitch is lower.

Summary & Key Takeaways

  • The host introduces the coding challenge of creating a ukulele tuner using the ml5.js library and p5 Web Editor.

  • They explain how to import the ml5 library and access the pitch detection model.

  • The host demonstrates how to set up the audio context, microphone stream, and create a pitch detection object.

  • They show how to use the pitch detection object to get the current pitch and create a visual indicator based on the difference between the detected pitch and the desired pitch.


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 📚

Text Generation using Spell with Nabil Hassein thumbnail
Text Generation using Spell with Nabil Hassein
The Coding Train
Live Stream #64: Session 6 - Programming from A to Z thumbnail
Live Stream #64: Session 6 - Programming from A to Z
The Coding Train
How to Code and Visualize Worley Noise thumbnail
How to Code and Visualize Worley Noise
The Coding Train
Coding Challenge #116: Lissajous Curve Table thumbnail
Coding Challenge #116: Lissajous Curve Table
The Coding Train
Coding Challenge #61: Fractal Spirograph thumbnail
Coding Challenge #61: Fractal Spirograph
The Coding Train
16.2: const - Topics of JavaScript/ES6 thumbnail
16.2: const - Topics of JavaScript/ES6
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.