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

The Dopplerboopening #170

Merged
merged 6 commits into from
Oct 17, 2024
Merged

Conversation

maaacha
Copy link

@maaacha maaacha commented Oct 16, 2024

About The Pull Request

This reuses the general structure of Mojave-Sun/mojave-sun-13#2142 however reworks most of the code of the main block.

In short, this adds a boop/mumble effect whenever a carbon human speaks. There are currently seven voice types available, however due to the simple nature of the files more can easily be made by modifying them (the source of which can be provided to anyone interested). The spoilered section will go into greater technical detail, while a short video is attached for your viewing pleasure.

Oh, also, you can test the voices in the preferences menu.

2024-10-16.22-37-34.mp4
Detailed Summary

The system works by using a regex to segment every syllable the user types into a list. It then iterates through this list, using several modifiers and values to determine pitch and falloff, before assigning the filetype based on the user's preferenced voice type and the syllable used. Certain punctuation characters, as well as spaces, play no sound and yet increase the delay between sounds to replicate the effect of a pause in speech.

Each vowel has 20 permutations available, and each consonant has 6 permutations available.

The audio files are heavily influenced by the speech style of Animal Crossing. The raw files, when used, were far too jarring however, and as such were processed to give a more 'mumble-like' effect. The macro to recreate this effect in Audacity is attached. I attempted to work a system that would dynamically modulate pitch based on user preferences, however BYOND's pitch value is bad, and glitches out pretty heavily. In the future I'm going to look into adding more voice types, especially those leaning more towards the mid-toned monotone type, as there are currently mostly high-pitched, low-pitched and melodic voices.

dopplerboop-macro.txt

Changelog

🆑
add: Dopplerboops

/:cl:

modular_doppler/dopplerboop/living.dm Outdated Show resolved Hide resolved
@carpotoxin carpotoxin merged commit deaca9b into DopplerShift13:master Oct 17, 2024
20 of 21 checks passed
@maaacha maaacha deleted the dopplerboops branch October 17, 2024 18:05
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.

2 participants