Boost logo

Boost Users :

Subject: Re: [Boost-users] state machine frequence detecting
From: Nat Goodspeed (nat_at_[hidden])
Date: 2012-07-23 09:13:21


On Jul 22, 2012, at 11:34 AM, Kraus Philipp <philipp.kraus_at_[hidden]> wrote:

> I need an idea for detecting frequencies. I have got an audio signal and I would check if a sequence of frequences are in the signal
>
> I have read the howto about the Boost finale statemachine, but I can not make a decision
> if the Boost statemaschine is the correct structure to solve this problem.
>
> Can anyone help me to discuss the pro / cons for the Boost statemachine in this case?

This may be a bit of a stretch, but if you could represent your sequence of frequencies as a container of int values, perhaps Boost.Xpressive? This kind of pattern-matching is a specialized kind of state machine, and Boost has a couple such libraries. (See also Boost.Regex.)


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net