Mercurial > hg > svapp
comparison audioio/ClipMixer.h @ 351:36efd75d7b7b tonioni
Merge from default branch
author | Chris Cannam |
---|---|
date | Wed, 14 May 2014 09:58:27 +0100 |
parents | 8d7f39df44ed |
children | 72c662fe7ea3 |
comparison
equal
deleted
inserted
replaced
344:63dec7dc11cc | 351:36efd75d7b7b |
---|---|
34 | 34 |
35 void setChannelCount(int channels); | 35 void setChannelCount(int channels); |
36 | 36 |
37 /** | 37 /** |
38 * Load a sample clip from a wav file. This can only happen once: | 38 * Load a sample clip from a wav file. This can only happen once: |
39 * construct a new ClipMixer if you want a different clip. | 39 * construct a new ClipMixer if you want a different clip. The |
40 * clip was recorded at a pitch with fundamental frequency clipF0, | |
41 * and should be scaled by level (in the range 0-1) when playing | |
42 * back. | |
40 */ | 43 */ |
41 bool loadClipData(QString clipFilePath, float clipF0); | 44 bool loadClipData(QString clipFilePath, float clipF0, float level); |
42 | 45 |
43 void reset(); // discarding any playing notes | 46 void reset(); // discarding any playing notes |
44 | 47 |
45 struct NoteStart { | 48 struct NoteStart { |
46 int frameOffset; // within current processing block | 49 int frameOffset; // within current processing block |