Chris@2: /* Chris@2: Copyright (C) 2001, 2006 by Simon Dixon Chris@2: Chris@2: This program is free software; you can redistribute it and/or modify Chris@2: it under the terms of the GNU General Public License as published by Chris@2: the Free Software Foundation; either version 2 of the License, or Chris@2: (at your option) any later version. Chris@2: Chris@2: This program is distributed in the hope that it will be useful, Chris@2: but WITHOUT ANY WARRANTY; without even the implied warranty of Chris@2: MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the Chris@2: GNU General Public License for more details. Chris@2: Chris@2: You should have received a copy of the GNU General Public License along Chris@2: with this program (the file gpl.txt); if not, download it from Chris@2: http://www.gnu.org/licenses/gpl.txt or write to the Chris@2: Free Software Foundation, Inc., Chris@2: 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. Chris@2: */ Chris@2: Chris@2: package at.ofai.music.util; Chris@2: Chris@2: public class WormEvent extends Event { Chris@2: Chris@2: public double tempo; Chris@2: public double loudness; Chris@2: public String label; Chris@2: Chris@2: public WormEvent(double on, double off, double eoff, int pitch, int vel, Chris@2: double beat, double dur, int flags, int cmd, int ch, int tr) { Chris@2: super(on, off, eoff, pitch, vel, beat, dur, flags, cmd, ch, tr); Chris@2: tempo = -1; Chris@2: loudness = -1; Chris@2: label = null; Chris@2: } // WormEvent Chris@2: Chris@2: public WormEvent(double time, double t, double l, double beat, int flags) { Chris@2: super(time, 0, 0, 0, 0, beat, 0, flags); Chris@2: tempo = t; Chris@2: loudness = l; Chris@2: label = null; Chris@2: } // constructor Chris@2: Chris@2: } // class WormEvent