Thread: Beat detection [Java]

Results 1 to 4 of 4
  1. #1 Beat detection [Java] 
    Community Veteran

    mige5's Avatar
    Join Date
    Aug 2008
    Posts
    5,528
    Thanks given
    573
    Thanks received
    1,410
    Rep Power
    2114
    Well I guess this might explain better than what I can with my own words so here: Swift iOS - How can I analyze a given MP3 file to determine what time the beats are at? - Stack Overflow

    or would it be possible to have a "short sample sound", and then a long audio file, and have a program scan it and find whenever that short sound was played.

    ^if all that is too complicated, this is short of cheaphax, but what if I had the long audio file and everything else but the beat removed from it, would it be possible to detect whenever something at all is played?
    Number of page #1 releases with most views & posts: (Updated: 2023)
    RS2 server section: 1
    RS2 client section: 2
    Reply With Quote  
     

  2. #2  
    ???

    funkE's Avatar
    Join Date
    Feb 2008
    Posts
    2,612
    Thanks given
    255
    Thanks received
    989
    Rep Power
    1366
    Compare the waveforms.
    .
    Reply With Quote  
     

  3. #3  
    Renown Programmer
    Harha's Avatar
    Join Date
    Jul 2006
    Age
    30
    Posts
    433
    Thanks given
    3
    Thanks received
    31
    Rep Power
    339
    I don't have experience about actually making something like this, but I'd imagine there are numerous ways to achieve what you want.

    You could combine many techniques together to get somewhat reliable beat detection. Fourier transform the audio and work out the loudest frequency areas (Bassdrum has peaks at low freqs, snare is intensive at middle frequncies and some drums might have transient high frequency peaks), combine that with the detection of volume peaks at certain threshold dB / threshold volume increase over some delta-time, etc. The key thing I'd image is that you have to do some sort of integration, find the average of the values of the collected samples during certain timespans continuously and then use that stream of data for beat analyzation. Then just whenever your algorithms find something that could be a drum hit or whatever you are looking for, mark the exact point in time, or point in time + the approximated duration of the drum hit.
    Reply With Quote  
     

  4. #4  
    Ex Rune-Scaper

    Join Date
    Jun 2008
    Posts
    3,534
    Thanks given
    457
    Thanks received
    1,257
    Rep Power
    990
    equalizers?
    Attached image
    Reply With Quote  
     


Thread Information
Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)


User Tag List

Similar Threads

  1. Webclient Java Detection Page
    By Kovu in forum Website Development
    Replies: 3
    Last Post: 10-08-2014, 09:28 AM
  2. Music beat detection and lighting system
    By Harry in forum Show-off
    Replies: 22
    Last Post: 02-17-2012, 08:30 PM
  3. Auto Detecting Java
    By Sabatino in forum Help
    Replies: 1
    Last Post: 08-05-2011, 04:39 AM
  4. Java 2D Rectangle collision detection.
    By mikelmao in forum Application Development
    Replies: 3
    Last Post: 04-20-2011, 12:16 AM
  5. New Version of my old ¨Java Coder Sig¨
    By Ndugu in forum Showcase
    Replies: 2
    Last Post: 04-26-2007, 08:59 AM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •