Page 1 of 1

Specify sounds to exclude from random pitches?

PostPosted: Wed Sep 12, 2018 5:52 am
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!

Re: Specify sounds to exclude from random pitches?

PostPosted: Wed Sep 12, 2018 12:14 pm
by Enjay
$pitchshiftrange 0 in SNDINFO

Re: Specify sounds to exclude from random pitches?

PostPosted: Thu Sep 13, 2018 8:54 am
by Marisa Kirisame
I wish we could get the opposite of this, though.

Re: Specify sounds to exclude from random pitches?

PostPosted: Thu Sep 13, 2018 9:14 am
by Enjay
You mean force certain sounds to be pitch-shifted even when shifting is disabled?

Re: Specify sounds to exclude from random pitches?

PostPosted: Thu Sep 13, 2018 9:53 am
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

Re: Specify sounds to exclude from random pitches?

PostPosted: Fri Sep 14, 2018 8:22 am
by Marisa Kirisame
Or at least a way to set pitch when playing sounds from scripting

Re: Specify sounds to exclude from random pitches?

PostPosted: Fri Sep 14, 2018 1:24 pm
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.

Re: Specify sounds to exclude from random pitches?

PostPosted: Fri Sep 14, 2018 1:54 pm
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.

Re: Specify sounds to exclude from random pitches?

PostPosted: Fri Sep 14, 2018 2:29 pm
by kodi
A tempo argument would be absolutely amazing too

Re: Specify sounds to exclude from random pitches?

PostPosted: Wed Sep 19, 2018 11:12 am
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.