Commit graph

599 commits

Author SHA1 Message Date
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
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
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
a17b97a1c8
Merge pull request #130 from jpcima/new-parser
Parser rework
2020-03-28 16:13:25 +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
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
3f3cb7def8 Add an assertion 2020-03-27 18:05:40 +01:00
Paul Ferrand
281ee61146 local variable can be const 2020-03-27 18:05:30 +01:00
Paul Fd
a6cbb48222 Add the ability to set a log filename (non abi breaking change) 2020-03-26 23:40:42 +01:00
Paul Fd
36cb6db974 Remove the export definitions from the macros 2020-03-26 23:14:33 +01:00
Paul Fd
7513d5a4bd put back the export definitions in the headers 2020-03-26 23:13:45 +01:00
Paul Fd
20dea5ec94 Add back the library name in the CMakeLists 2020-03-26 23:12:41 +01:00
Jean Pierre Cimalando
b551716b08 Apply panning in case of stereo sample 2020-03-18 21:33:18 +01:00
Jean Pierre Cimalando
1faa7f0739 Fix the broken stereo when width is default 2020-03-18 20:56:07 +01:00
Jean Pierre Cimalando
890d5ddb46 Add support of oscillator_phase 2020-03-16 19:02:21 +01:00
Jean Pierre Cimalando
2002a58da2 Apply the pitch ratio to wavetable oscillator 2020-03-16 17:54:47 +01:00
Jean Pierre Cimalando
4065d406f7 Rewrite a division as multiplication 2020-03-16 17:37:52 +01:00
Jean Pierre Cimalando
f80decf4c0 Extend the range of opcodes tune and pitch 2020-03-16 17:36:16 +01:00
Paul Fd
930bfdfefe Correct a potential overflow for CC names
A previous change put the opcode parameters as uint16
2020-03-16 12:44:18 +01:00