import jp.crestmuse.cmx.amusaj.commands.* import jp.crestmuse.cmx.amusaj.sp.* class MyAnalyzer extends AbstractWAVAnalyzer { def stft, peakext ProducerConsumerCompatible[] getUsedModules() { stft = new STFT(false) peakext = new PeakExtractor() [stft, peakext] } ModuleConnection[] getModuleConnections() { [new ModuleConnection(getWindowSlider(), 0, stft, 0), new ModuleConnection(stft, 0, peakext, 0), new ModuleConnection(stft, 1, peakext, 1), new ModuleConnection(stft, 2, peakext, 2)] } String getAmusaXMLFormat() { "" } OutputData[] getOutputData() { [] } } (new MyAnalyzer()).start("-conf config.xml sample.wav")