mirror of
https://github.com/vsariola/sointu.git
synced 2025-07-14 02:54:37 -04:00
feat(vm): add dbgain unit, where gain is defined in decibels
Closes #78
This commit is contained in:
parent
f698986718
commit
04fbc9f6a7
@ -72,6 +72,8 @@ regression_test(test_gain LOADVAL GAIN)
|
||||
regression_test(test_gain_stereo GAIN)
|
||||
regression_test(test_invgain LOADVAL INVGAIN)
|
||||
regression_test(test_invgain_stereo INVGAIN)
|
||||
regression_test(test_dbgain LOADVAL DBGAIN)
|
||||
regression_test(test_dbgain_stereo DBGAIN)
|
||||
regression_test(test_send LOADVAL SEND)
|
||||
regression_test(test_send_stereo SEND)
|
||||
regression_test(test_send_global SEND SEND_GLOBAL)
|
||||
|
1
tests/expected_output/test_dbgain.raw
Normal file
1
tests/expected_output/test_dbgain.raw
Normal file
File diff suppressed because one or more lines are too long
1
tests/expected_output/test_dbgain_stereo.raw
Normal file
1
tests/expected_output/test_dbgain_stereo.raw
Normal file
File diff suppressed because one or more lines are too long
22
tests/test_dbgain.yml
Normal file
22
tests/test_dbgain.yml
Normal file
@ -0,0 +1,22 @@
|
||||
bpm: 100
|
||||
rowsperbeat: 4
|
||||
score:
|
||||
rowsperpattern: 16
|
||||
length: 1
|
||||
tracks:
|
||||
- numvoices: 1
|
||||
order: [0]
|
||||
patterns: [[64, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0]]
|
||||
patch:
|
||||
- numvoices: 1
|
||||
units:
|
||||
- type: loadval
|
||||
parameters: {stereo: 0, value: 0}
|
||||
- type: dbgain
|
||||
parameters: {decibels: 32, stereo: 0}
|
||||
- type: loadval
|
||||
parameters: {stereo: 0, value: 128}
|
||||
- type: dbgain
|
||||
parameters: {decibels: 32, stereo: 0}
|
||||
- type: out
|
||||
parameters: {gain: 128, stereo: 1}
|
20
tests/test_dbgain_stereo.yml
Normal file
20
tests/test_dbgain_stereo.yml
Normal file
@ -0,0 +1,20 @@
|
||||
bpm: 100
|
||||
rowsperbeat: 4
|
||||
score:
|
||||
rowsperpattern: 16
|
||||
length: 1
|
||||
tracks:
|
||||
- numvoices: 1
|
||||
order: [0]
|
||||
patterns: [[64, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0]]
|
||||
patch:
|
||||
- numvoices: 1
|
||||
units:
|
||||
- type: loadval
|
||||
parameters: {stereo: 0, value: 0}
|
||||
- type: loadval
|
||||
parameters: {stereo: 0, value: 128}
|
||||
- type: dbgain
|
||||
parameters: {decibels: 32, stereo: 1}
|
||||
- type: out
|
||||
parameters: {gain: 128, stereo: 1}
|
Reference in New Issue
Block a user