Revision 23:633ec097fa56 BeatRootProcessor.h

View differences:

BeatRootProcessor.h
81 81
	
82 82
    /** The estimated onset times and their saliences. */	
83 83
    EventList onsetList;
84
    
85
    /** User-specifiable processing parameters. */
86
    AgentParameters agentParameters;
84 87
	
85 88
    /** Flag for suppressing all standard output messages except results. */
86 89
    static bool silent;
......
89 92

  
90 93
    /** Constructor: note that streams are not opened until the input
91 94
     *  file is set (see <code>setInputFile()</code>). */
92
    BeatRootProcessor(float sr) :
93
        sampleRate(sr) {
94
        hopSize = 0;
95
        fftSize = 0;
96
        hopTime = 0.010;
97
        fftTime = 0.04644;
95
    BeatRootProcessor(float sr, AgentParameters parameters) :
96
        sampleRate(sr),
97
        hopSize(0),
98
        fftSize(0),
99
        hopTime(0.010),
100
        fftTime(0.04644),
101
        agentParameters(parameters)
102
    {
98 103
        hopSize = lrint(sampleRate * hopTime);
99 104
        fftSize = lrint(pow(2, lrint( log(fftTime * sampleRate) / log(2))));
100 105
    } // constructor

Also available in: Unified diff