• home
  • portfolio
    • MTPMEPB
    • SINGLES
    • PRESS
    • PHOTOS
  • about
  • contact
    • Billy on Spotify
    • Billy on Bandcamp
    • Billy on All Credits
    • Misc Interviews
    • lets-dance
Menu

Billy Bennett

  • home
  • portfolio
  • music
    • MTPMEPB
    • SINGLES
    • PRESS
    • PHOTOS
  • about
  • contact
  • links
    • Billy on Spotify
    • Billy on Bandcamp
    • Billy on All Credits
    • Misc Interviews
    • lets-dance
×

ml5 Pitch Detection

Billy Bennett February 25, 2019

So I got a little sidetracked when working on a coding project for my Subtraction class, but since the 4-axis mill isn’t working, I may not get a chance to do the project. So I am sharing the code here.

This is a musical visualization using the ml5 library for pitch detection. Implementation was difficult to manage since the example only works through the computer’s built-in microphone. To get the model to work on a musical selection, I had to put the computer’s mic up to the computer’s speaker while the sketch played the song using the p5 sound library. Also, the model’s shard files can’t be uploaded to the p5 Editor so I wasn’t able to upload it there. I used Atom running live-server locally. Either way, it should visualize something.

I was also happy with getting the Math.log() function to try to weight the frequency values differently. I want to look further into that for getting a logarithmic FFT instead of a linear one. I still have a long ways to go, but there’s a video below and the code here.

← Disappearing Attractor - Midterm ProjectOscillation, Vectors and Forces →
Logo Brands Collegiate Georgia Bulldogs Elite Chair, Red, Adult
Logo Inc.
Elite Fan Shop Georgia Bulldogs 12.5"x18" Garden Flag - Red
Elite Fan Shop
Buy on Amazon
Apple AirPods with Wired Charging Case
Apple Computer