Specify sounds to exclude from random pitches?

Moderator: GZDoom Developers

Post Reply
rchrdcrg
Posts: 3
Joined: Wed Sep 12, 2018 4:37 am

Specify sounds to exclude from random pitches?

Post by rchrdcrg »

I noticed something and thought I might make a small feature suggestion for modders. I tend to prefer the randomized pitches sound option turned on so my ears don't get quite as bored, but in some instances things don't sound right, such as the spinning chain gun barrel in Brutal Doom, where each loop of the effect comes in at a different pitch and ruins the seamlessness of the sound loop. I was curious if there could be a way to exclude specific sounds from the randomized pitch function (as well as the inverse and forcing a sample to play back with randomized pitch). That way, the users could flip that setting however they like, and the modders can ensure the user isn't getting a wonky experience due to the user's preference in settings.

Thanks!
User avatar
Enjay
 
 
Posts: 26517
Joined: Tue Jul 15, 2003 4:58 pm
Location: Scotland
Contact:

Re: Specify sounds to exclude from random pitches?

Post by Enjay »

$pitchshiftrange 0 in [wiki]SNDINFO[/wiki]
User avatar
Marisa the Magician
Posts: 3886
Joined: Fri Feb 08, 2008 9:15 am
Preferred Pronouns: She/Her
Operating System Version (Optional): (btw I use) Arch
Graphics Processor: nVidia with Vulkan support
Location: Vigo, Galicia
Contact:

Re: Specify sounds to exclude from random pitches?

Post by Marisa the Magician »

I wish we could get the opposite of this, though.
User avatar
Enjay
 
 
Posts: 26517
Joined: Tue Jul 15, 2003 4:58 pm
Location: Scotland
Contact:

Re: Specify sounds to exclude from random pitches?

Post by Enjay »

You mean force certain sounds to be pitch-shifted even when shifting is disabled?
User avatar
Xaser
 
 
Posts: 10772
Joined: Sun Jul 20, 2003 12:15 pm
Contact:

Re: Specify sounds to exclude from random pitches?

Post by Xaser »

Quasi-related: I've never considered pitch shifting to be a usable modding feature because users have to switch on a setting for it to work (which they won't).

A "yes I know what I'm doing; this isn't the default weirdo Doom pitch shifting" override would be handy, but then we're dealing with overrides-of-overrides again. :P
User avatar
Marisa the Magician
Posts: 3886
Joined: Fri Feb 08, 2008 9:15 am
Preferred Pronouns: She/Her
Operating System Version (Optional): (btw I use) Arch
Graphics Processor: nVidia with Vulkan support
Location: Vigo, Galicia
Contact:

Re: Specify sounds to exclude from random pitches?

Post by Marisa the Magician »

Or at least a way to set pitch when playing sounds from scripting
User avatar
Enjay
 
 
Posts: 26517
Joined: Tue Jul 15, 2003 4:58 pm
Location: Scotland
Contact:

Re: Specify sounds to exclude from random pitches?

Post by Enjay »

I guess the obvious way is to pitch shift a sound in a sound editor then save a bunch of shifted files and use $random in SNDINFO. Clearly not a very efficient solution compared to a couple of lines of text in a control lump of some sort though.
User avatar
Xaser
 
 
Posts: 10772
Joined: Sun Jul 20, 2003 12:15 pm
Contact:

Re: Specify sounds to exclude from random pitches?

Post by Xaser »

Marisa Kirisame wrote:Or at least a way to set pitch when playing sounds from scripting
That'd rock, TBH. A parameter to A_PlaySound that just always works regardless of the setting, since then we can just frandom it up and get results on demand, without introducing any compatibility cruft to the old way of doing things.
User avatar
kodi
 
 
Posts: 1355
Joined: Mon May 06, 2013 8:02 am

Re: Specify sounds to exclude from random pitches?

Post by kodi »

A tempo argument would be absolutely amazing too
User avatar
De-M-oN
Posts: 203
Joined: Mon May 26, 2008 3:24 pm

Re: Specify sounds to exclude from random pitches?

Post by De-M-oN »

Enjay wrote:I guess the obvious way is to pitch shift a sound in a sound editor then save a bunch of shifted files and use $random in SNDINFO. Clearly not a very efficient solution compared to a couple of lines of text in a control lump of some sort though.
And reduces quality if you recompress lossy to lossy format.
Post Reply

Return to “Closed Feature Suggestions [GZDoom]”