-
Notifications
You must be signed in to change notification settings - Fork 7
/
wrapper.h
57 lines (48 loc) · 2.96 KB
/
wrapper.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
46
47
48
49
50
51
52
53
54
55
56
57
// This header is used only by test_wrapper.cpp
#pragma once
#include <cstdint>
#include "cpp.audio/include/public.h"
#include "extras.h"
extern "C" {
bool initializeAudioOutput (int samplingRate, float minLatencySeconds, int portaudioMinLatencyMillis);
void teardownAudioOutput();
void setMaxMIDIJitter(uint64_t v);
bool midiNoteOnAHDSR_(int voice, float stereo,
imajuscule::audio::audioelement::OscillatorType osc,
imajuscule::audio::audioelement::EnvelopeRelease t,
int a, int ai, int h, int d, int di, float s, int r, int ri,
harmonicProperties_t * hars, int har_sz,
int16_t pitch, float velocity, int midiSource, uint64_t maybeMIDITime);
bool midiNoteOffAHDSR_(int voice,
imajuscule::audio::audioelement::OscillatorType osc,
imajuscule::audio::audioelement::EnvelopeRelease t,
int a, int ai, int h, int d, int di, float s, int r, int ri,
harmonicProperties_t * hars, int har_sz,
int16_t pitch, int midiSource, uint64_t maybeMIDITime);
bool midiNoteOnAHDSRSweep_(int voice, float stereo,
imajuscule::audio::audioelement::OscillatorType osc,
imajuscule::audio::audioelement::EnvelopeRelease t,
int a, int ai, int h, int d, int di, float s, int r, int ri,
harmonicProperties_t * hars, int har_sz,
int sweep_duration,
float sweep_freq,
imajuscule::audio::audioelement::Extremity sweep_freq_extremity,
int sweep_interp,
int16_t pitch, float velocity, int midiSource, uint64_t maybeMIDITime);
bool midiNoteOffAHDSRSweep_(int voice, imajuscule::audio::audioelement::OscillatorType osc,
imajuscule::audio::audioelement::EnvelopeRelease t,
int a, int ai, int h, int d, int di, float s, int r, int ri,
harmonicProperties_t * hars, int har_sz,
int sweep_duration,
float sweep_freq,
imajuscule::audio::audioelement::Extremity sweep_freq_extremity,
int sweep_interp,
int16_t pitch, int midiSource, uint64_t maybeMIDITime);
double* analyzeAHDSREnvelope_(imajuscule::audio::audioelement::EnvelopeRelease t, int a, int ai, int h, int d, int di, float s, int r, int ri, int*nElems, int*splitAt);
bool effectOn(int voice, int program, int16_t pitch, float velocity, float pan);
bool effectOff(int voice, int16_t pitch);
bool getConvolutionReverbSignature_(const char * dirPath, const char * filePath, spaceResponse_t * r);
bool dontUseReverb_();
bool useReverb_(const char * dirPath, const char * filePath, double wet);
bool setReverbWetRatio(double wet);
}