Skip to content

Commit

Permalink
feat: update reverb processor + presets (#199)
Browse files Browse the repository at this point in the history
  • Loading branch information
cdrani committed Dec 11, 2023
1 parent a658572 commit 8244aa8
Show file tree
Hide file tree
Showing 6 changed files with 234 additions and 226 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "chorus",
"private": true,
"type": "module",
"version": "1.19.0",
"version": "1.20.0",
"scripts": {
"build": "rollup -c",
"watch": "rollup -c -w"
Expand Down
24 changes: 13 additions & 11 deletions src/lib/reverb/presets.js
Original file line number Diff line number Diff line change
@@ -1,18 +1,20 @@
const PARAMS = ['preDelay','bandwidth','diffuse','decay','damping','excursion','wet','dry']
const PARAMS = [
'preDelay' , 'bandwidth' , 'inputDiffusion1' , 'inputDiffusion2' , 'decay' , 'decayDiffusion1' ,
'decayDiffusion2' , 'damping', 'excursionRate', 'excursionDepth', 'dry', 'wet'
]

const PRESETS = {
// preDelay bandwidth diffuse decay damping excursion wet dry
demi: [ 1525 , 0.5683 , 0.5 , 0.3226 , 0.6446 , 0 , 0.2921 , 0.4361 ],
short: [ 596 , 0.983 , 0.9 , 0.8271 , 0.2975 , 2.8 , 0.1402 , 0.9000 ],
tall: [ 0 , 0.9999 , 1 , 0.5 , 0.005 , 16 , 0.6 , 0.3 ],
grande: [ 0 , 0.999 , 0.6 , 0.78 , 0.37 , 12 , 0.5015 , 0.5012 ],
venti: [ 0 , 0.999 , 0.6 , 0.78 , 0.37 , 12 , 0.715 , 0.394 ],
trenta: [ 0 , 0.7011 , 0.7331 , 0.88 , 0.35 , 12 , 0.7015 , 0.3012 ],
quaranta: [ 0 , 0.999 , 1 , 0.88 , 0.35 , 12 , 0.915 , 0.194 ],
// pD bw iD1 iD2 decay dD1 dD2 damping eR eD dry wet
demi: [ 0, 0.9 , 0.7331, 0.4534, 0.5 , 0.6 , 0.1992, 0.15 , 0 , 0 , 0.7015, 0.3012 ],
short: [ 0, 0.7011, 0.7331, 0.4534, 0.8271, 0.7839, 0.1992, 0.5975, 0 , 0 , 0.7015, 0.3012 ],
tall: [ 0, 0.7011, 0.7331, 0.4534, 0.8271, 0.7839, 0.1992, 0.5975, 2 , 2 , 0.7015, 0.3012 ],
grande: [ 0, 0.7011, 0.7331, 0.5534, 0.8271, 0.6839, 0.6992, 0.3975, 2 , 2 , 0.7015, 0.3012 ],
venti: [ 0, 0.9 , 0.75 , 0.625 , 0.88 , 0.5 , 0.711 , 0.205 , 0.3, 1.4, 0.7015, 0.3012 ],
trenta: [ 0, 0.9 , 0.35 , 0.625 , 0.72 , 0.5 , 0.711 , 0.225 , 0.3, 1.4, 0.5015, 0.5012 ],
}

const drinkPresets = ['demi','short','tall','grande','venti','trenta','quaranta' ]
const convolverPresets = ['diffusor','kick','muffler','telephone']
const convolverPresets = [ 'diffusor', 'kick', 'muffler', 'telephone' ]
const drinkPresets = [ 'demi', 'short' , 'tall' , 'grande' , 'venti' , 'trenta' ]

const getParamsListForEffect = effect => {
const effectValues = PRESETS[effect]
Expand Down
Loading

0 comments on commit 8244aa8

Please sign in to comment.