Bill Manaris : JMUSIC / Durations

1 /*
2   
3   <This Java Class is part of the jMusic API version 1.4, February 2003.>
4   
5   Copyright (C) 2000 Andrew Sorensen & Andrew Brown
6   
7   This program is free software; you can redistribute it and/or modify
8   it under the terms of the GNU General Public License as published by
9   the Free Software Foundation; either version 2 of the License, or any
10  later version.
11 
12  This program is distributed in the hope that it will be useful, but
13  WITHOUT ANY WARRANTY; without even the implied warranty of
14  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15  GNU General Public License for more details.
16 
17  You should have received a copy of the GNU General Public License
18  along with this program; if not, write to the Free Software
19  Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
20 
21  */

22 
23  package jm.constants;
24 
25  /** An interface storing rhythm value constants.
26    *
27    * @see jm.music.data.Note
28    * @author Andrew Sorensen, Andrew Brown, Andrew Troedson, Adam Kirby
29    */

30  public interface Durations {
31     
32    public static final double
33      SB = 4.0, SEMIBREVE = 4.0, WHOLE_NOTE = 4.0, WN = 4.0,
34      MD = 3.0, DM = 3.0, DOTTED_MINIM = 3.0, DOTTED_HALF_NOTE = 3.0,
35                                  DHN = 3.0,
36      MDD = 3.5, DDM = 3.5, DOUBLE_DOTTED_MINIM = 3.5,
37                                  DOUBLE_DOTTED_HALF_NOTE = 3.5, DDHN = 3.5,
38      M = 2.0, MINIM = 2.0, HALF_NOTE = 2.0, HN = 2.0,
39      MT = 4.0/3.0, MINIM_TRIPLET = 4.0/3.0,
40                                  HALF_NOTE_TRIPLET = 4.0/3.0, HNT = 4.0/3.0,
41      C = 1.0, CROTCHET = 1.0, QUARTER_NOTE = 1.0, QN = 1.0,
42      CT = 2.0/3.0, CROTCHET_TRIPLET = 2.0/3.0,
43                                  QUARTER_NOTE_TRIPLET = 2.0/3.0, QNT = 2.0/3.0,
44      CD = 1.5, DC = 1.5, DOTTED_CROTCHET = 1.5
45                                  DOTTED_QUARTER_NOTE = 1.5, DQN = 1.5,
46      CDD = 1.75, DDC = 1.75, DOUBLE_DOTTED_CROTCHET = 1.75
47                                  DOUBLE_DOTTED_QUARTER_NOTE = 1.75, DDQN = 1.75,
48      Q = 0.5, QUAVER = 0.5, EIGHTH_NOTE = 0.5, EN = 0.5,
49      QD = 0.75, DQ = 0.75, DOTTED_QUAVER = 0.75,
50                                  DOTTED_EIGHTH_NOTE = 0.75, DEN = 0.75,
51      QT = 1.0/3.0, QUAVER_TRIPLET = 1.0/3.0,
52                                  EIGHTH_NOTE_TRIPLET = 1.0/3.0, ENT = 1.0/3.0,
53                  DDQ = 0.875, QDD = 0.875, DOUBLE_DOTTED_QUAVER = 0.875,
54                                  DOUBLE_DOTTED_EIGHTH_NOTE = 0.875, DDEN = 0.875,
55      SQ = 0.25, SEMI_QUAVER = 0.25, SIXTEENTH_NOTE = 0.25, SN = 0.25,
56      SQD = 0.375, DOTTED_SEMI_QUAVER = 0.375,
57                                  DOTTED_SIXTEENTH_NOTE = 0.375, DSN = 0.375,
58      SQT = 1.0/6.0, SEMI_QUAVER_TRIPLET = 1.0/6.0,
59                                  SIXTEENTH_NOTE_TRIPLET = 1.0/6.0, SNT = 1.0/6.0,
60      DSQ = 0.125, DEMI_SEMI_QUAVER = 0.125,
61                                  THIRTYSECOND_NOTE = 0.125, TN = 0.125,
62                                  TSN = 0.125,
63      DSQT = 1.0/12.0, DEMI_SEMI_QUAVER_TRIPLET = 1.0/12.0,
64                                  THIRTYSECOND_NOTE_TRIPLET = 1.0/12.0,
65                                  TNT = 1.0/12.0, TSNT = 1.0/12.0;
66 
67  }

 
(Printable View of http://www.cs.cofc.edu/~manaris/?n=JMUSIC.Durations)