You are not logged in.

#1 2013-04-08 13:11:09

Kilz
Member
Registered: 2008-03-01
Posts: 140

Please recommend a sound counting application

Please excuse me if this post is in the wrong section.

I have been searching for about a week and cant seem to find an application that counts sounds from a microphone. I have found one that will count beats per minute of a mp3, but I would like to avoid the recording step if possible. Perhaps I am just looking in the wrong place and if someone can point me in the right direction that would be great.

Here is some background

I am a watchmaker, I specialize in refurbishing antique pocket watches. After servicing the watch needs to be adjusted to be in beat to keep accurate time. I did have a $300 timing machine, but it died after many years of service. I was hoping that it would be possible to use my computer and not have to purchase another timing machine as they are now over $500 and all they do is count the ticks.
I have a contact microphone that works when plugged in, all I need is an application that would tell me how many "ticks" per minute. Most of the watches I work on are about 300 ticks per minute.

Thanks in advance.


I trust Microsoft about as far as I can comfortably spit a dead rat.
Cinnamon is a wonderful desktop
"Faith is the substance of things hoped for, the evidence of things not seen."

Offline

#2 2013-04-08 14:48:10

Stebalien
Member
Registered: 2010-04-27
Posts: 1,239
Website

Re: Please recommend a sound counting application

You could try a combination of arecord (alsa-utils) and soundstretch (http://www.surina.net/soundtouch/soundstretch.html). However, if you need high accuracy, you might want to creating your own signal processing application.


Steven [ web : git ]
GPG:  327B 20CE 21EA 68CF A7748675 7C92 3221 5899 410C

Offline

#3 2013-04-08 14:53:40

jakobcreutzfeldt
Member
Registered: 2011-05-12
Posts: 1,042

Re: Please recommend a sound counting application

Here's a VST called BeatCounter. I don't know if it will work in GNU/Linux or not though. It's worth trying. You'll need a VST host for that. I think Ardour should work.

I think most real-time solutions to this problem will come in VST plugin format, if that helps narrow your search.

Another option that would require a lot more work would be to implement something yourself in PureData smile

Edit: the BeatCounter VST includes a Linux Makefile, which is promising.

Last edited by jakobcreutzfeldt (2013-04-08 15:24:26)

Offline

#4 2013-04-09 01:36:06

Kilz
Member
Registered: 2008-03-01
Posts: 140

Re: Please recommend a sound counting application

Thank you both very much, you have given me a few options I had not thought of.


I trust Microsoft about as far as I can comfortably spit a dead rat.
Cinnamon is a wonderful desktop
"Faith is the substance of things hoped for, the evidence of things not seen."

Offline

#5 2013-04-09 02:08:35

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 20,727

Re: Please recommend a sound counting application

Out of curiosity, how are the measurements made?  Do they measure the period from tick to tick and average a several intervals, or do they open a sample window and count how many events occur during the window.  In other words, does the test take a minute with counts on the order of 300, or does it determine there are 33.3 mS between clicks and average a couple dozen samples to eliminate jitter and uncertainty?

If the systems have a fixed sample window and are counting the number of clicks, you might look at a program that does Fourier transforms.

In any event, really cool hobby


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
The shortest way to ruin a country is to give power to demagogues.— Dionysius of Halicarnassus
---
How to Ask Questions the Smart Way

Offline

#6 2013-04-10 02:20:46

Kilz
Member
Registered: 2008-03-01
Posts: 140

Re: Please recommend a sound counting application

Im not sure ewaller, I only used it to get the number of beats per second. But the replacement I was looking at is the Microset. It looks like it does both.

I am not a programmer so I went looking again for beat counting applications and came across Drum Count, its written in python. It looks like it will do ok for now.


I trust Microsoft about as far as I can comfortably spit a dead rat.
Cinnamon is a wonderful desktop
"Faith is the substance of things hoped for, the evidence of things not seen."

Offline

#7 2013-04-10 10:53:47

kokoko3k
Member
Registered: 2008-11-14
Posts: 2,481

Re: Please recommend a sound counting application

Kilz wrote:

I have been searching for about a week and cant seem to find an application that counts sounds from a microphone. I have found one that will count beats per minute of a mp3, but I would like to avoid the recording step if possible

If that app could read from a fifo or from stdin, you can use something like:

Pipes:
Mic -> arecord | lame | your counting app.

fifo:
mkfifo /tmp/fifo.mp3
mic -> arecord | lame > /tmp/fifo.mp3
your counting app /tmp/fifo.mp3

Changed code tags to quote -- Inxsible

Last edited by Inxsible (2013-04-10 15:05:05)


Help me to improve ssh-rdp !
Retroarch User? Try my koko-aio shader !

Offline

Board footer

Powered by FluxBB