Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
b0ad8b8c
Commit
b0ad8b8c
authored
Nov 15, 2023
by
Anton Baskanov
Committed by
Alexandre Julliard
Nov 15, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dmsynth: Use FLUID_MOD_KEY for CONN_SRC_KEYNUMBER.
Fixes incorrect EG key number scale and offset that caused missing lower notes of some instruments (e.g. Acoustic Grand Piano).
parent
02853687
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
15 deletions
+0
-15
synth.c
dlls/dmsynth/synth.c
+0
-15
No files found.
dlls/dmsynth/synth.c
View file @
b0ad8b8c
...
...
@@ -1483,17 +1483,6 @@ static BOOL set_gen_from_connection(fluid_voice_t *fluid_voice, const CONNECTION
{
if
(
!
gen_from_connection
(
conn
,
&
gen
))
return
FALSE
;
}
else
if
(
conn
->
usSource
==
CONN_SRC_KEYNUMBER
)
{
switch
(
conn
->
usDestination
)
{
case
CONN_DST_EG2_HOLDTIME
:
gen
=
GEN_KEYTOMODENVHOLD
;
break
;
case
CONN_DST_EG2_DECAYTIME
:
gen
=
GEN_KEYTOMODENVDECAY
;
break
;
case
CONN_DST_EG1_HOLDTIME
:
gen
=
GEN_KEYTOVOLENVHOLD
;
break
;
case
CONN_DST_EG1_DECAYTIME
:
gen
=
GEN_KEYTOVOLENVDECAY
;
break
;
default:
return
FALSE
;
}
}
else
if
(
conn
->
usSource
==
CONN_SRC_LFO
)
{
switch
(
conn
->
usDestination
)
...
...
@@ -1588,10 +1577,6 @@ static void add_mod_from_connection(fluid_voice_t *fluid_voice, const CONNECTION
case
MAKELONG
(
CONN_SRC_LFO
,
CONN_DST_FILTER_CUTOFF
):
gen
=
GEN_MODLFOTOFILTERFC
;
break
;
case
MAKELONG
(
CONN_SRC_EG2
,
CONN_DST_FILTER_CUTOFF
):
gen
=
GEN_MODENVTOFILTERFC
;
break
;
case
MAKELONG
(
CONN_SRC_LFO
,
CONN_DST_GAIN
):
gen
=
GEN_MODLFOTOVOL
;
break
;
case
MAKELONG
(
CONN_SRC_KEYNUMBER
,
CONN_DST_EG2_HOLDTIME
):
gen
=
GEN_KEYTOMODENVHOLD
;
break
;
case
MAKELONG
(
CONN_SRC_KEYNUMBER
,
CONN_DST_EG2_DECAYTIME
):
gen
=
GEN_KEYTOMODENVDECAY
;
break
;
case
MAKELONG
(
CONN_SRC_KEYNUMBER
,
CONN_DST_EG1_HOLDTIME
):
gen
=
GEN_KEYTOVOLENVHOLD
;
break
;
case
MAKELONG
(
CONN_SRC_KEYNUMBER
,
CONN_DST_EG1_DECAYTIME
):
gen
=
GEN_KEYTOVOLENVDECAY
;
break
;
}
if
(
conn
->
usControl
!=
CONN_SRC_NONE
&&
gen
!=
-
1
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment