f@0
|
1 /*
|
f@0
|
2 Cross-Modal DAW Prototype - Prototype of a simple Cross-Modal Digital Audio Workstation.
|
f@0
|
3
|
f@0
|
4 Copyright (C) 2015 Queen Mary University of London (http://depic.eecs.qmul.ac.uk/)
|
f@0
|
5
|
f@0
|
6 This program is free software: you can redistribute it and/or modify
|
f@0
|
7 it under the terms of the GNU General Public License as published by
|
f@0
|
8 the Free Software Foundation, either version 3 of the License, or
|
f@0
|
9 (at your option) any later version.
|
f@0
|
10
|
f@0
|
11 This program is distributed in the hope that it will be useful,
|
f@0
|
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
|
f@0
|
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
f@0
|
14 GNU General Public License for more details.
|
f@0
|
15
|
f@0
|
16 You should have received a copy of the GNU General Public License
|
f@0
|
17 along with this program. If not, see <http://www.gnu.org/licenses/>.
|
f@0
|
18 */
|
f@0
|
19 package uk.ac.qmul.eecs.depic.daw;
|
f@0
|
20
|
f@0
|
21 import uk.ac.qmul.eecs.depic.patterns.Sequence;
|
f@0
|
22
|
f@1
|
23 /**
|
f@1
|
24 *
|
f@1
|
25 * An abstract wave
|
f@1
|
26 *
|
f@1
|
27 */
|
f@0
|
28 public interface Wave {
|
f@0
|
29 public int getChunkNum();
|
f@0
|
30
|
f@0
|
31 public Chunk getChunkAt(int i);
|
f@0
|
32
|
f@0
|
33 /**
|
f@0
|
34 * Sets the new scale factor.
|
f@0
|
35 *
|
f@0
|
36 * Registered {@code SoundWaveListener} objects are notified with a
|
f@0
|
37 * {@code SCALE_FACTOR_CHANGED} event.
|
f@0
|
38 *
|
f@0
|
39 * @param scaleFactor the new scale factor
|
f@0
|
40 */
|
f@0
|
41 public void setScaleFactor(int scaleFactor);
|
f@0
|
42
|
f@0
|
43 public int getScaleFactor();
|
f@0
|
44
|
f@0
|
45 public int getMaxScaleFactor();
|
f@0
|
46
|
f@0
|
47 public float getWaveTime();
|
f@0
|
48
|
f@0
|
49 public float getMillisecPerChunk();
|
f@0
|
50
|
f@0
|
51 public Sequence getSequence();
|
f@0
|
52
|
f@0
|
53 public boolean hasSequence();
|
f@0
|
54 }
|