Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement MSGS-style Drum Note Cut #1199

Merged
merged 3 commits into from
Dec 29, 2023
Merged

Implement MSGS-style Drum Note Cut #1199

merged 3 commits into from
Dec 29, 2023

Conversation

derselbst
Copy link
Member

@derselbst derselbst commented Jan 7, 2023

This PR implements the drum note cut used by Microsoft's software synth as discussed in #1196. Whenever a NoteOn is played on a drum channel, any previously playing voice for the same note is now being canceled / cut.

I am not sure if this make musically sense, whether this is permitted by the SF2 spec and whether it breaks any use-case. Any feedback is therefore highly welcome!

@sonarcloud
Copy link

sonarcloud bot commented Jan 7, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

0.0% 0.0% Coverage
0.0% 0.0% Duplication

@vladkosi
Copy link

vladkosi commented Jan 7, 2023

I have tested this PR on Doom soundtrack and the drums sound closer to a real Roland SC-55 now. Good job!

Comparison between version 2.3.1, this PR and a recording from an SC-55:
1

@sonarcloud
Copy link

sonarcloud bot commented Apr 2, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

0.0% 0.0% Coverage
0.0% 0.0% Duplication

@fdelapena
Copy link

+1 to this. It improves playback when using Windows' gm.dls inspired soundfonts, drum note length matches the Microsoft Synthesizer behaviour with this patch.

@derselbst derselbst added this to the 2.4 milestone Oct 14, 2023
@derselbst
Copy link
Member Author

Thanks for the feedback. Will become part of fluidsynth 2.4.0.

@derselbst derselbst merged commit fa5173c into master Dec 29, 2023
@derselbst derselbst deleted the issue1196 branch December 29, 2023 12:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants