Commit graph

1397 commits

Author SHA1 Message Date
Paul Fd
a1dba6b60f Remove the uint8 versions from midistate 2020-03-28 22:10:18 +01:00
Paul Fd
c4db2bba56 Refactor the float versions 2020-03-28 22:10:18 +01:00
Paul Fd
7ed7720a54 Remove unnormalized versions from region 2020-03-28 22:08:33 +01:00
Paul Fd
1e2a18359e Remove getNoteGain 2020-03-28 22:07:32 +01:00
Paul Fd
78851082ea Add some assertions to check 2020-03-28 22:07:32 +01:00
Paul Fd
cc8944e452 Everyone should now use the normalized versions 2020-03-28 22:07:32 +01:00
Paul Fd
e7686d233e Use float internally in the voices 2020-03-28 22:07:32 +01:00
Paul Fd
601126db0d Normalize CCs internally in Synth and region 2020-03-28 22:07:03 +01:00
Paul Fd
0e1e65135e Region and Synth use float velocities internally 2020-03-28 22:07:03 +01:00
Paul Fd
2655418406 Add generic ranges for 7 bits and normalized values 2020-03-28 22:04:12 +01:00
Paul Fd
e89d93cf56 Add literals for normalized 7 bit values 2020-03-28 22:03:38 +01:00
Paul Fd
b5e578a7b8 Small map test 2020-03-28 22:03:38 +01:00
Paul Fd
9373f31945 Remove CCArray, and store floats internally 2020-03-28 22:03:38 +01:00
Paul Fd
f8801e78e4 Change numCC to uint16_t and increase the max number of ccs 2020-03-28 22:02:35 +01:00
Paul Ferrand
bce6258827
Merge pull request #128 from jpcima/wavetable-file
Add oscillator=on and wavetables from file
2020-03-28 21:37:46 +01:00
Paul Ferrand
29fc84fb09 const getSilenceWavetable 2020-03-28 21:29:38 +01:00
Paul Ferrand
9d8bfa5b82 Change the static silent wavetable into a functionThe previous form tripped the leak detector 2020-03-28 21:13:35 +01:00
Paul Ferrand
fbf2785211 createFileWave returns a boolean 2020-03-28 21:03:03 +01:00
Paul Ferrand
f71e0b4f21 Revert passing the sample rate to createHarmonicProfile 2020-03-28 20:47:00 +01:00
Paul Ferrand
82999166cb Add some checks when building the oscillator regions from files 2020-03-28 20:33:20 +01:00
Paul Ferrand
b17f9eaf32 Const all the region getters 2020-03-28 20:23:14 +01:00
Paul Ferrand
5e6de480fb Accidental fallthrough on rebase 2020-03-28 20:22:36 +01:00
Paul Ferrand
dabb7ead9f Use the phase helper 2020-03-28 20:11:17 +01:00
Paul Ferrand
b223fb5e4f Add a helper to get the normalized phase 2020-03-28 20:11:09 +01:00
Paul Ferrand
bad1120296 Pass the samplerate to the createHarmonicProfile function 2020-03-28 19:46:42 +01:00
Paul Ferrand
f5ac778c16 Use the new filepool API 2020-03-28 19:46:23 +01:00
Paul Ferrand
62b68b2af3 Change the FilePool to load files and not only preload 2020-03-28 19:45:34 +01:00
Paul Ferrand
2add056a51 Clear wavetables in the clear() method 2020-03-28 17:37:38 +01:00
Paul Ferrand
0de71d8e1b Add a check that atomic<DataStatus> is lock free 2020-03-28 17:37:02 +01:00
Paul Ferrand
e74ab54793 Remove an unneeded header 2020-03-28 17:37:02 +01:00
Jean Pierre Cimalando
5f564d749a Add oscillator=on and wavetables from file 2020-03-28 17:37:02 +01:00
Paul Ferrand
25ca3eeb0b
Merge pull request #139 from jpcima/vst
Allow VST to reload its files automatically
2020-03-28 16:13:38 +01:00
Paul Ferrand
a17b97a1c8
Merge pull request #130 from jpcima/new-parser
Parser rework
2020-03-28 16:13:25 +01:00
Jean Pierre Cimalando
fa65fd65f7 Allow VST to reload its files automatically 2020-03-28 15:08:54 +01:00
Jean Pierre Cimalando
a15a50b96c Make the parser demo UI a bit more practical 2020-03-28 02:53:50 +01:00
Jean Pierre Cimalando
6ee9dd106e Add proper support of external #define 2020-03-28 02:44:06 +01:00
Jean Pierre Cimalando
3871d9c9b2 Let the parser identify the origin of a failed #include 2020-03-28 02:25:48 +01:00
Jean Pierre Cimalando
ba23ed810a String parsing without originalDirectory setter 2020-03-28 01:55:05 +01:00
Paul Ferrand
99f0833a96
Merge pull request #127 from jpcima/wavetable-phase
Add support of oscillator_phase
2020-03-28 00:55:29 +01:00
Paul Ferrand
25fa15acbe Add an originalDirectory setter and change the logic for parseFile 2020-03-28 00:45:59 +01:00
Paul Ferrand
42234da650 Add tests for the new parser 2020-03-28 00:29:36 +01:00
Paul Ferrand
5a292aca31 End the value when hitting < too 2020-03-28 00:29:36 +01:00
Paul Ferrand
847af7b731 Added a way to parse from a string 2020-03-28 00:29:36 +01:00
Paul Ferrand
51b992617d Add +1 to error lines and put the file name in there 2020-03-28 00:29:36 +01:00
Jean Pierre Cimalando
972dbe06ea Fix the backslash include paths 2020-03-28 00:29:36 +01:00
Jean Pierre Cimalando
c03345e950 Adapt the newer parser to Sfizz 2020-03-28 00:29:36 +01:00
Jean Pierre Cimalando
9019ae3aef Some parser fixes 2020-03-28 00:28:50 +01:00
Jean Pierre Cimalando
30c8d25a59 Initial parser rework 2020-03-28 00:28:50 +01:00
Paul Ferrand
dcd688dbe5 Add oscillator phase tests 2020-03-27 18:17:15 +01:00
Paul Ferrand
3f3cb7def8 Add an assertion 2020-03-27 18:05:40 +01:00