-
Notifications
You must be signed in to change notification settings - Fork 26
/
RecordingView.h
46 lines (30 loc) · 940 Bytes
/
RecordingView.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
/*
Copyright (c) 2020 Christof Ruch. All rights reserved.
Dual licensed: Distributed under Affero GPL license by default, an MIT license is available for purchase
*/
#pragma once
#include "JuceHeader.h"
#include "AudioRecorder.h"
#include "Thumbnail.h"
#include "TimedMidiSender.h"
#include "LambdaButtonStrip.h"
#include "PatchView.h"
class RecordingView : public Component, private ChangeListener {
public:
RecordingView(PatchView &patchView);
~RecordingView() override;
void stopAudio();
virtual void resized() override;
void sampleNote();
bool hasDetectedSignal() const;
private:
void changeListenerCallback(ChangeBroadcaster* source) override;
PatchView &patchView_;
AudioDeviceManager deviceManager_;
AudioDeviceSelectorComponent deviceSelector_;
AudioSourcePlayer audioSource_;
AudioRecorder recorder_;
midikraft::TimedMidiSender midiSender_;
LambdaButtonStrip buttons_;
Thumbnail thumbnail_;
};