Skip to content

Commit c98a364

Browse files
committed
Make A2DP optional
1 parent d09a000 commit c98a364

File tree

4 files changed

+135
-1
lines changed

4 files changed

+135
-1
lines changed

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,3 +33,7 @@ git clone https://github.com/pschatzmann/Arduino-STK.git
3333
You can consult the ArdConig.h file for the available functionality for your processor!
3434

3535
If you to use the library on a Standard Arduino please check out [my related Blog](https://www.pschatzmann.ch/home/2020/09/29/the-synthesis-toolkit-stk-library-for-arduino-running-on-a-nano/)
36+
37+
## Optional Libraries
38+
39+
If you want to use the Audio output to Bluetooth, you need to install the [ESP32-A2DP library](https://github.com/pschatzmann/ESP32-A2DP) and activate the functionality in [ArdConfig.h](src/ArdConfig.h)!

examples/OutToBluetooth/OutToBluetooth.ino

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
2+
// install https://github.com/pschatzmann/ESP32-A2DP
3+
// and activate __BT_A2DP__ in ArdConfig.h
14
#include "ArdBtSource.h"
25
#include "ArdMidiCommon.h"
36
#include "Clarinet.h"

src/ArdConfig.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,15 @@
99
#if defined(ESP32)
1010
#define __RAW_ARRAYS__ // raw files as compilable c arrays
1111
#define __STREAMS__ // output to Ardiono Streams
12-
#define __BT_A2DP__ // output to A2DP sink
1312
#define __MIDI__ // support Midi
1413
#define __MIDI_BLE__ // support BLE
1514
#define __RTOS__ // supports Free RTOS
1615
#define __LWIP__ // use lwip socket implementation
1716
#define TASK_STACK_SIZE configMINIMAL_STACK_SIZE
1817

18+
// Uncomment after installing https://github.com/pschatzmann/ESP32-A2DP
19+
// #define __BT_A2DP__ // output to A2DP sink
20+
1921
#undef PI
2022
#undef TWO_PI
2123

src/StkAll.h

Lines changed: 125 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,125 @@
1+
#include "Asymp.h"
2+
#include "BandedWG.h"
3+
#include "BeeThree.h"
4+
#include "BiQuad.h"
5+
#include "Blit.h"
6+
#include "BlitSaw.h"
7+
#include "BlitSquare.h"
8+
#include "BlowBotl.h"
9+
#include "BlowHole.h"
10+
#include "BowTable.h"
11+
#include "Bowed.h"
12+
#include "Brass.h"
13+
#include "Chorus.h"
14+
#include "Clarinet.h"
15+
#include "Cubic.h"
16+
#include "Delay.h"
17+
#include "DelayA.h"
18+
#include "DelayL.h"
19+
#include "Drummer.h"
20+
#include "Echo.h"
21+
#include "Effect.h"
22+
#include "Envelope.h"
23+
#include "FM.h"
24+
#include "FMVoices.h"
25+
#include "FileLoop.h"
26+
#include "FileRead.h"
27+
#include "FileWrite.h"
28+
#include "FileWvIn.h"
29+
#include "FileWvOut.h"
30+
#include "Filter.h"
31+
#include "Fir.h"
32+
#include "Flute.h"
33+
#include "FormSwep.h"
34+
#include "FreeVerb.h"
35+
#include "Function.h"
36+
#include "Generator.h"
37+
#include "Granulate.h"
38+
#include "Guitar.h"
39+
#include "HevyMetl.h"
40+
#include "Iir.h"
41+
#include "InetWvIn.h"
42+
#include "InetWvOut.h"
43+
#include "Instrmnt.h"
44+
#include "JCRev.h"
45+
#include "JetTable.h"
46+
#include "LentPitShift.h"
47+
#include "Mandolin.h"
48+
#include "MemoryFS.h"
49+
#include "MemoryLoop.h"
50+
#include "MemoryWvIn.h"
51+
#include "Mesh2D.h"
52+
#include "Messager.h"
53+
#include "MidiFileIn.h"
54+
#include "Modal.h"
55+
#include "ModalBar.h"
56+
#include "Modulate.h"
57+
#include "Moog.h"
58+
#include "Mutex.h"
59+
#include "NRev.h"
60+
#include "Noise.h"
61+
#include "OnePole.h"
62+
#include "OneZero.h"
63+
#include "PRCRev.h"
64+
#include "PercFlut.h"
65+
#include "Phonemes.h"
66+
#include "PitShift.h"
67+
#include "Plucked.h"
68+
#include "PoleZero.h"
69+
#include "Recorder.h"
70+
#include "ReedTable.h"
71+
#include "Resonate.h"
72+
#include "Rhodey.h"
73+
#include "RtAudio.h"
74+
#include "RtMidi.h"
75+
#include "RtWvIn.h"
76+
#include "RtWvOut.h"
77+
#include "SKINImsg.h"
78+
#include "SKINItbl.h"
79+
#include "STKAll.h"
80+
#include "Sampler.h"
81+
#include "Saxofony.h"
82+
#include "Shakers.h"
83+
#include "Simple.h"
84+
#include "SineWave.h"
85+
#include "SingWave.h"
86+
#include "Sitar.h"
87+
#include "Skini.h"
88+
#include "Socket.h"
89+
#include "Sphere.h"
90+
#include "StifKarp.h"
91+
#include "Stk.h"
92+
#include "TapDelay.h"
93+
#include "TcpClient.h"
94+
#include "TcpServer.h"
95+
#include "Thread.h"
96+
#include "TubeBell.h"
97+
#include "Twang.h"
98+
#include "TwoPole.h"
99+
#include "TwoZero.h"
100+
#include "UdpSocket.h"
101+
#include "Vector3D.h"
102+
#include "VoicForm.h"
103+
#include "Voicer.h"
104+
#include "Whistle.h"
105+
#include "Wurley.h"
106+
#include "WvIn.h"
107+
#include "WvOut.h"
108+
#ifdef ARDUINO
109+
#include "ArdBtSource.h"
110+
#include "ArdCommonOut.h"
111+
#include "ArdConfig.h"
112+
#include "ArdI2SOut.h"
113+
#include "ArdMidiBleClient.h"
114+
#include "ArdMidiBleEventHandler.h"
115+
#include "ArdMidiBleServer.h"
116+
#include "ArdMidiCommon.h"
117+
#include "ArdMidiEventHandler.h"
118+
#include "ArdMidiStreamIn.h"
119+
#include "ArdMidiStreamOut.h"
120+
#include "ArdStreamBinaryOut.h"
121+
#include "ArdStreamHexOut.h"
122+
#include "ArdStreamOut.h"
123+
#include "ArdStreamOutCommon.h"
124+
#include "ArdUdp.h"
125+
#endif

0 commit comments

Comments
 (0)