comparison audioio/ClipMixer.h @ 349:8d7f39df44ed tony_integration

Quieter clip playback for note layers
author Chris Cannam
date Thu, 08 May 2014 15:04:42 +0100
parents 7105604e9803
children 72c662fe7ea3
comparison
equal deleted inserted replaced
348:f8e1ca25dd80 349:8d7f39df44ed
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