Mercurial > hg > svapp
comparison audio/ClipMixer.h @ 595:b23bebfdfaba
Untabify
author | Chris Cannam |
---|---|
date | Thu, 01 Mar 2018 18:02:22 +0000 |
parents | 56acd9368532 |
children |
comparison
equal
deleted
inserted
replaced
594:72b4870f0e6b | 595:b23bebfdfaba |
---|---|
46 bool loadClipData(QString clipFilePath, double clipF0, double level); | 46 bool loadClipData(QString clipFilePath, double clipF0, double level); |
47 | 47 |
48 void reset(); // discarding any playing notes | 48 void reset(); // discarding any playing notes |
49 | 49 |
50 struct NoteStart { | 50 struct NoteStart { |
51 sv_frame_t frameOffset; // within current processing block | 51 sv_frame_t frameOffset; // within current processing block |
52 float frequency; // Hz | 52 float frequency; // Hz |
53 float level; // volume in range (0,1] | 53 float level; // volume in range (0,1] |
54 float pan; // range [-1,1] | 54 float pan; // range [-1,1] |
55 }; | 55 }; |
56 | 56 |
57 struct NoteEnd { | 57 struct NoteEnd { |
58 sv_frame_t frameOffset; // in current processing block | 58 sv_frame_t frameOffset; // in current processing block |
59 float frequency; // matching note start | 59 float frequency; // matching note start |
60 }; | 60 }; |
61 | 61 |
62 void mix(float **toBuffers, | 62 void mix(float **toBuffers, |
63 float gain, | 63 float gain, |
64 std::vector<NoteStart> newNotes, | 64 std::vector<NoteStart> newNotes, |
65 std::vector<NoteEnd> endingNotes); | 65 std::vector<NoteEnd> endingNotes); |
66 | 66 |
67 private: | 67 private: |
68 int m_channels; | 68 int m_channels; |
69 sv_samplerate_t m_sampleRate; | 69 sv_samplerate_t m_sampleRate; |
70 sv_frame_t m_blockSize; | 70 sv_frame_t m_blockSize; |