Main Page   Packages   Class Hierarchy   Compound List   File List   Compound Members  

ChunkStartTime.java

00001 
00002 /*
00003  *  Copyright 2006-2007 Columbia University.
00004  *
00005  *  This file is part of MEAPsoft.
00006  *
00007  *  MEAPsoft is free software; you can redistribute it and/or modify
00008  *  it under the terms of the GNU General Public License version 2 as
00009  *  published by the Free Software Foundation.
00010  *
00011  *  MEAPsoft is distributed in the hope that it will be useful, but
00012  *  WITHOUT ANY WARRANTY; without even the implied warranty of
00013  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00014  *  General Public License for more details.
00015  *
00016  *  You should have received a copy of the GNU General Public License
00017  *  along with MEAPsoft; if not, write to the Free Software
00018  *  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
00019  *  02110-1301 USA
00020  *
00021  *  See the file "COPYING" for the text of the license.
00022  */
00023 
00024 package com.meapsoft.featextractors;
00025 
00026 import com.meapsoft.STFT;
00027 
00035 public class ChunkStartTime extends FeatureExtractor 
00036 {       
00037     public double[] features(STFT stft, long startFrame, int length) 
00038     {
00039                 double[] chunkStart = new double[1];
00040 
00041                 chunkStart[0] = startFrame;
00042 
00043         return chunkStart;
00044     }
00045 
00046         public String description()
00047         {
00048                 return "Simply returns the start time of each segment. " +
00049                 "Good for making backwards tracks!";
00050         }
00051 }
00052 

Generated on Tue Feb 6 19:02:24 2007 for MEAPsoft by doxygen1.2.18