Commit graph

1742 commits

Author SHA1 Message Date
Paul Ferrand
ff5a218f87 Use int on oversampling to match the current api 2020-05-13 22:13:30 +02:00
Paul Ferrand
2e8b637f09 Update docs 2020-05-13 22:10:02 +02:00
Paul Ferrand
2c5cc017cd use C struct init 2020-05-13 21:56:22 +02:00
Paul Ferrand
7d98349e16 Internally check that a change is needed or not 2020-05-13 20:34:22 +02:00
Paul Ferrand
cced103479 Convert the oversampling to next power of 2 2020-05-13 20:34:22 +02:00
JP Cimalando
f51ccb24a6
Merge pull request #223 from paulfd/stack-smash
Changes to the worker messages
2020-05-13 18:04:56 +02:00
Paul Ferrand
a970fc0698 Changes to the worker messages
Checking for file changes or loading disables future file change checks
The worker only responds to reactivate the file change checks
Upon parameter change, the new value is stored immediately so only one message is sent to the worker
Removed the changing_state bool and let the sfizz internal lock protect the state
2020-05-12 23:21:03 +02:00
Paul Ferrand
d6c24be064
Merge pull request #214 from paulfd/note-stealing
Improve the note stealing
2020-05-09 11:46:33 +02:00
Paul Ferrand
e4f0b0c7b0 Move things around 2020-05-08 00:21:21 +02:00
Paul Ferrand
59c25dccf1 Move the voice ordering as a free function 2020-05-08 00:16:50 +02:00
Paul Ferrand
6df5b217c9 Move the voice rendering into a private method 2020-05-08 00:16:28 +02:00
Paul Ferrand
ec13c70b82 C++11 does not like constexpr 2020-05-07 23:16:07 +02:00
Paul Ferrand
dbb75398cc Killed voices pre-render their next block
This data is ramped out before the main rendering loop, to smooth the voice killings
2020-05-07 20:49:42 +02:00
Paul Ferrand
691c25362b Add a helper to apply a gain span to effect inputs
Used for ramping out voice data
2020-05-07 20:48:48 +02:00
Paul Ferrand
91fc783b49 Increase the buffer pool size 2020-05-07 20:48:18 +02:00
Paul Ferrand
f0b527525f Add implicit conversions to AudioBuffer 2020-05-07 20:48:08 +02:00
Paul Ferrand
2fcd231062 Consider the max of the sister voices 2020-05-07 18:45:59 +02:00
Paul Ferrand
298ec7fc0c Change the name of the envelope variables and filters 2020-05-07 18:26:29 +02:00
Paul Ferrand
cd455c435e Consider all sister voices when killing a note 2020-05-07 18:24:49 +02:00
redtide
f1e87b48e5 Remove travis irc notifications entirely 2020-05-07 18:05:18 +02:00
Paul Ferrand
81ee1f2e59 Add a tick method to the OPF 2020-05-07 17:52:29 +02:00
JP Cimalando
e7c462403e
Merge pull request #217 from jpcima/load-string
Add the string loading API
2020-05-07 14:09:13 +02:00
Paul Ferrand
0c9c188e4b Refine the stealing algorithm 2020-05-07 13:49:13 +02:00
Paul Ferrand
725bda2af8 Corrected a false error message when changing the number of voices 2020-05-07 13:26:05 +02:00
Paul Ferrand
1601ff6afe Do not change parameters unnecessarily 2020-05-07 13:25:47 +02:00
Paul Ferrand
36e4c69fc2 Use age and average envelope for stealing 2020-05-07 12:58:24 +02:00
Paul Ferrand
b78a7945ab Add aging in the voice 2020-05-07 12:27:29 +02:00
JP Cimalando
dda4162a01
Merge pull request #218 from jpcima/numeric-hash
Hashing function for numbers
2020-05-07 12:27:28 +02:00
Jean Pierre Cimalando
64b3a999c7 Add the header guard in the C++ header 2020-05-07 10:10:29 +02:00
Jean Pierre Cimalando
0818896cb6 Hashing function for numbers 2020-05-07 09:19:38 +02:00
Paul Ferrand
a9980f163f Changed the historical buffer to a smoothed envelope tracker 2020-05-07 01:27:20 +02:00
Paul Ferrand
d740f1c32b Cherry pick the OPF refactor from the smoothers 2020-05-07 01:02:35 +02:00
Paul Ferrand
68abedae36 Updated tests 2020-05-07 00:49:05 +02:00
Jean Pierre Cimalando
cd6017f0e9 Add the string loading API 2020-05-06 19:12:53 +02:00
redtide
e7a3be1870 Make build messages less verbose on Discord 2020-05-06 18:48:36 +02:00
JP Cimalando
1d53ad9435
Merge pull request #216 from jpcima/dpf
Add a build helper for DPF
2020-05-06 16:32:01 +02:00
Paul Ferrand
b4cc58dc87 Release the envelope and let the voice clean up itself (#215)
In the previous version, for very short sample, the voice could start and end in the same block and falsely reset itself before finishing its rendering pass
2020-05-06 15:41:18 +02:00
Paul Ferrand
c4a080fd54 Add a verbose state switch in the jack client 2020-05-06 13:36:38 +02:00
Jean Pierre Cimalando
9db2e3dbab Add more dpf deps, needed for debug mode 2020-05-06 10:42:49 +02:00
Jean Pierre Cimalando
bdf8671739 Support make dependencies for dpf sfizz 2020-05-06 10:00:45 +02:00
Jean Pierre Cimalando
d823588837 Add a build helper for DPF 2020-05-06 09:52:52 +02:00
Paul Ferrand
ac993741d1 Rename the "canBeStolen" function 2020-05-05 23:45:06 +02:00
Paul Ferrand
87e4b4ed90 Voice are unilateraly stolen now depending on their average power over the last 10 blocks. 2020-05-05 23:43:32 +02:00
Paul Ferrand
13dcadc321 Memoize the mean power 2020-05-05 23:40:06 +02:00
Paul Ferrand
646b71cb43 Set a default polyphony of 256 2020-05-05 23:18:08 +02:00
Paul Ferrand
5539fef4d2 Remove most sample files from the repo (#175) 2020-05-05 22:49:20 +02:00
Paul Ferrand
5ee3e92848 Handle 0-vel noteons as noteoffs 2020-05-05 22:35:37 +02:00
JP Cimalando
b0c84ad99a
Merge pull request #212 from jpcima/opcode-cleanup
Opcode cleanup
2020-05-05 11:43:39 +02:00
Paul Ferrand
9d7317f14c
Merge pull request #211 from jpcima/noteoffs
jack: handle note-on velocity=0 events
2020-05-05 10:24:04 +02:00
Jean Pierre Cimalando
35b757b582 Remove fil_gaincc, not part of ARIA (verified) 2020-05-05 04:21:50 +02:00