Skip to content

Commit a0494a3

Browse files
authored
Merge pull request #196 from electro-smith/LGPL
LGPL Library Split
2 parents fb2d4de + 1458c32 commit a0494a3

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

96 files changed

+606
-2820
lines changed

.gitmodules

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[submodule "DaisySP-LGPL"]
2+
path = DaisySP-LGPL
3+
url = https://www.github.com/Electro-smith/DaisySP-LGPL

CMakeLists.txt

-18
Original file line numberDiff line numberDiff line change
@@ -5,50 +5,34 @@ project(DAISYSP VERSION 0.0.1)
55
add_library(DaisySP STATIC
66
Source/Control/adenv.cpp
77
Source/Control/adsr.cpp
8-
Source/Control/line.cpp
98
Source/Control/phasor.cpp
109
Source/Drums/analogbassdrum.cpp
1110
Source/Drums/analogsnaredrum.cpp
1211
Source/Drums/hihat.cpp
1312
Source/Drums/synthbassdrum.cpp
1413
Source/Drums/synthsnaredrum.cpp
15-
Source/Dynamics/balance.cpp
16-
Source/Dynamics/compressor.cpp
1714
Source/Dynamics/crossfade.cpp
1815
Source/Dynamics/limiter.cpp
1916
Source/Effects/autowah.cpp
20-
Source/Effects/bitcrush.cpp
2117
Source/Effects/chorus.cpp
2218
Source/Effects/decimator.cpp
2319
Source/Effects/flanger.cpp
24-
Source/Effects/fold.cpp
2520
Source/Effects/overdrive.cpp
26-
Source/Effects/reverbsc.cpp
2721
Source/Effects/phaser.cpp
2822
Source/Effects/sampleratereducer.cpp
2923
Source/Effects/tremolo.cpp
3024
Source/Effects/wavefolder.cpp
31-
Source/Filters/allpass.cpp
32-
Source/Filters/atone.cpp
33-
Source/Filters/biquad.cpp
34-
Source/Filters/comb.cpp
35-
Source/Filters/mode.cpp
36-
Source/Filters/moogladder.cpp
37-
Source/Filters/nlfilt.cpp
3825
Source/Filters/svf.cpp
39-
Source/Filters/tone.cpp
4026
Source/Filters/soap.cpp
4127
Source/Noise/clockednoise.cpp
4228
Source/Noise/grainlet.cpp
4329
Source/Noise/particle.cpp
4430
Source/PhysicalModeling/drip.cpp
4531
Source/PhysicalModeling/modalvoice.cpp
46-
Source/PhysicalModeling/pluck.cpp
4732
Source/PhysicalModeling/resonator.cpp
4833
Source/PhysicalModeling/KarplusString.cpp
4934
Source/PhysicalModeling/stringvoice.cpp
5035
Source/Sampling/granularplayer.cpp
51-
Source/Synthesis/blosc.cpp
5236
Source/Synthesis/fm2.cpp
5337
Source/Synthesis/formantosc.cpp
5438
Source/Synthesis/oscillator.cpp
@@ -58,9 +42,7 @@ Source/Synthesis/variableshapeosc.cpp
5842
Source/Synthesis/vosim.cpp
5943
Source/Synthesis/zoscillator.cpp
6044
Source/Utility/dcblock.cpp
61-
Source/Utility/jitter.cpp
6245
Source/Utility/metro.cpp
63-
Source/Utility/port.cpp
6446
)
6547

6648

DaisySP-LGPL

Submodule DaisySP-LGPL added at c89d380

LICENSE

+50-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
MIT License
1+
DaisySP, copyright (c) 2020 Electrosmith, Corp.
22

3-
Copyright (c) 2020 Electrosmith, Corp.
3+
Published under the MIT license:
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal
@@ -19,3 +19,51 @@ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
1919
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
2020
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
2121
SOFTWARE.
22+
23+
-------------------------------------------------------------------------------
24+
25+
Plaits, copyright 2016 Emilie Gillet ([email protected])
26+
27+
Published under the MIT license:
28+
29+
Permission is hereby granted, free of charge, to any person obtaining a copy
30+
of this software and associated documentation files (the "Software"), to deal
31+
in the Software without restriction, including without limitation the rights
32+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
33+
copies of the Software, and to permit persons to whom the Software is
34+
furnished to do so, subject to the following conditions:
35+
36+
The above copyright notice and this permission notice shall be included in
37+
all copies or substantial portions of the Software.
38+
39+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
40+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
41+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
42+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
43+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
44+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
45+
THE SOFTWARE.
46+
47+
-------------------------------------------------------------------------------
48+
49+
Soundpipe, copyright 2015 Paul Batchelor
50+
51+
Published under the MIT license:
52+
53+
Permission is hereby granted, free of charge, to any person obtaining a copy
54+
of this software and associated documentation files (the "Software"), to deal
55+
in the Software without restriction, including without limitation the rights
56+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
57+
copies of the Software, and to permit persons to whom the Software is
58+
furnished to do so, subject to the following conditions:
59+
60+
The above copyright notice and this permission notice shall be included in
61+
all copies or substantial portions of the Software.
62+
63+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
64+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
65+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
66+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
67+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
68+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
69+
THE SOFTWARE.

Makefile

+21-44
Original file line numberDiff line numberDiff line change
@@ -10,102 +10,71 @@ CONTROL_MOD_DIR = Control
1010
CONTROL_MODULES = \
1111
adenv \
1212
adsr \
13-
line \
14-
phasor
13+
phasor \
1514

1615
DRUM_MOD_DIR = Drums
1716
DRUM_MODULES = \
1817
analogbassdrum \
1918
analogsnaredrum \
2019
hihat \
2120
synthbassdrum \
22-
synthsnaredrum
21+
synthsnaredrum \
2322

2423
DYNAMICS_MOD_DIR = Dynamics
2524
DYNAMICS_MODULES = \
26-
balance \
27-
compressor \
2825
crossfade \
29-
limiter
26+
limiter \
3027

3128
EFFECTS_MOD_DIR = Effects
3229
EFFECTS_MODULES = \
3330
autowah \
34-
bitcrush \
3531
chorus \
3632
decimator \
3733
flanger \
38-
fold \
3934
overdrive \
4035
phaser \
41-
reverbsc \
4236
sampleratereducer \
4337
tremolo \
44-
wavefolder
45-
#pitchshifter
38+
wavefolder \
4639

4740
FILTER_MOD_DIR = Filters
4841
FILTER_MODULES = \
49-
allpass \
50-
atone \
51-
biquad \
52-
comb \
53-
mode \
54-
moogladder \
55-
nlfilt \
5642
svf \
57-
tone \
58-
soap
59-
#fir
43+
soap \
6044

6145
NOISE_MOD_DIR = Noise
6246
NOISE_MODULES = \
6347
clockednoise \
6448
grainlet \
65-
particle
66-
#dust
67-
#fractal_noise
68-
#whitenoise
49+
particle \
6950

7051
PHYSICAL_MODELING_MOD_DIR = PhysicalModeling
7152
PHYSICAL_MODELING_MODULES = \
7253
drip \
73-
modalvoice \
74-
pluck \
7554
KarplusString \
55+
modalvoice \
7656
resonator \
77-
stringvoice
78-
#PolyPluck
57+
stringvoice \
7958

8059
SAMPLING_MOD_DIR = Sampling
8160
SAMPLING_MODULES = \
82-
granularplayer \
61+
granularplayer
8362

8463
SYNTHESIS_MOD_DIR = Synthesis
8564
SYNTHESIS_MODULES = \
86-
blosc \
8765
fm2 \
8866
formantosc \
8967
oscillator \
9068
oscillatorbank \
9169
variablesawosc \
9270
variableshapeosc \
9371
vosim \
94-
zoscillator
95-
#harmonic_osc
72+
zoscillator \
9673

9774
UTILITY_MOD_DIR = Utility
9875
UTILITY_MODULES = \
9976
dcblock \
100-
jitter \
10177
metro \
102-
port
103-
#delayline
104-
#dsp
105-
#looper
106-
#maytrig
107-
#samplehold
108-
#smooth_random
10978

11079
######################################
11180
# source
@@ -137,6 +106,7 @@ OPT = -O3
137106

138107
# Build path
139108
BUILD_DIR = build
109+
DAISYSP_LGPL_DIR = DaisySP-LGPL
140110

141111
#######################################
142112
# binaries
@@ -201,7 +171,6 @@ C_INCLUDES = \
201171
-I$(MODULE_DIR)/$(FILTER_MOD_DIR) \
202172
-I$(MODULE_DIR)/$(NOISE_MOD_DIR) \
203173
-I$(MODULE_DIR)/$(PHYSICAL_MODELING_MOD_DIR) \
204-
-I$(MODULE_DIR)/$(SAMPLING_MOD_DIR) \
205174
-I$(MODULE_DIR)/$(SYNTHESIS_MOD_DIR) \
206175
-I$(MODULE_DIR)/$(UTILITY_MOD_DIR)
207176

@@ -223,7 +192,7 @@ CPPFLAGS += \
223192
-finline-functions
224193

225194
# default action: build all
226-
all: $(BUILD_DIR)/$(TARGET).a
195+
all: $(BUILD_DIR)/$(TARGET).a lgpl
227196

228197
#######################################
229198
# build the library
@@ -251,13 +220,21 @@ $(BUILD_DIR)/$(TARGET).a: $(OBJECTS) Makefile
251220
$(AR) rcs $@ $(OBJECTS)
252221

253222
$(BUILD_DIR):
254-
mkdir $@
223+
mkdir $@
224+
225+
# build the lgpl submodule if it exists
226+
lgpl:
227+
@if [ -f $(DAISYSP_LGPL_DIR)/Makefile ]; then\
228+
make -C $(DAISYSP_LGPL_DIR); \
229+
echo "Building DaisySP-LGPL";\
230+
fi
255231

256232
#######################################
257233
# clean up
258234
#######################################
259235
clean:
260236
-rm -fR $(BUILD_DIR)
237+
-rm -fR $(DAISYSP_LGPL_DIR)/build
261238
#######################################
262239

263240
# dependencies

Source/Control/adenv.h

+8
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
/*
2+
Copyright (c) 2020 Electrosmith, Corp
3+
4+
Use of this source code is governed by an MIT-style
5+
license that can be found in the LICENSE file or at
6+
https://opensource.org/licenses/MIT.
7+
*/
8+
19
#pragma once
210
#ifndef ADENV_H
311
#define ADENV_H

Source/Control/adsr.h

+8
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
/*
2+
Copyright (c) 2020 Electrosmith, Corp, Paul Batchelor
3+
4+
Use of this source code is governed by an MIT-style
5+
license that can be found in the LICENSE file or at
6+
https://opensource.org/licenses/MIT.
7+
*/
8+
19
#pragma once
210
#ifndef DSY_ADSR_H
311
#define DSY_ADSR_H

Source/Control/line.cpp

-41
This file was deleted.

Source/Control/line.h

-39
This file was deleted.

0 commit comments

Comments
 (0)