annotate at/ofai/music/util/WormEvent.java @ 5:bcb4c9697967 tip

Add README and CITATION files
author Chris Cannam
date Tue, 03 Dec 2013 12:58:05 +0000
parents 4c3f5bc01c97
children
rev   line source
Chris@2 1 /*
Chris@2 2 Copyright (C) 2001, 2006 by Simon Dixon
Chris@2 3
Chris@2 4 This program is free software; you can redistribute it and/or modify
Chris@2 5 it under the terms of the GNU General Public License as published by
Chris@2 6 the Free Software Foundation; either version 2 of the License, or
Chris@2 7 (at your option) any later version.
Chris@2 8
Chris@2 9 This program is distributed in the hope that it will be useful,
Chris@2 10 but WITHOUT ANY WARRANTY; without even the implied warranty of
Chris@2 11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
Chris@2 12 GNU General Public License for more details.
Chris@2 13
Chris@2 14 You should have received a copy of the GNU General Public License along
Chris@2 15 with this program (the file gpl.txt); if not, download it from
Chris@2 16 http://www.gnu.org/licenses/gpl.txt or write to the
Chris@2 17 Free Software Foundation, Inc.,
Chris@2 18 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
Chris@2 19 */
Chris@2 20
Chris@2 21 package at.ofai.music.util;
Chris@2 22
Chris@2 23 public class WormEvent extends Event {
Chris@2 24
Chris@2 25 public double tempo;
Chris@2 26 public double loudness;
Chris@2 27 public String label;
Chris@2 28
Chris@2 29 public WormEvent(double on, double off, double eoff, int pitch, int vel,
Chris@2 30 double beat, double dur, int flags, int cmd, int ch, int tr) {
Chris@2 31 super(on, off, eoff, pitch, vel, beat, dur, flags, cmd, ch, tr);
Chris@2 32 tempo = -1;
Chris@2 33 loudness = -1;
Chris@2 34 label = null;
Chris@2 35 } // WormEvent
Chris@2 36
Chris@2 37 public WormEvent(double time, double t, double l, double beat, int flags) {
Chris@2 38 super(time, 0, 0, 0, 0, beat, 0, flags);
Chris@2 39 tempo = t;
Chris@2 40 loudness = l;
Chris@2 41 label = null;
Chris@2 42 } // constructor
Chris@2 43
Chris@2 44 } // class WormEvent