Log In  
Log In  

@bjornkri

Follow
Follow

I was working on a game where cars run across the screen at various speeds, and I created a doppler-sounding effect to play when the cars were spawned. This didn't sound terribly natural though, since the cars all sounded the same regardless of speed. The only solution I found was to create a handful of effects these effects, and then choose the appropriate one based on speed, meaning all fast cars (i.e. velocity above some value) would have one sound effect, all slow cars another, and then a third one for those in between. Got me thinking though, it would be great if I could write a function that took the velocity as an argument and returned an appropriate sound effect. Is this possible? I'm fairly new at this, so it may be documented, but if it is I just don't understand the documentation. :)

That's a specific example, but it also got me thinking more generically. Is there a way to generate music on the fly? In the simplest case it could mean writing a few patterns in the tracker, and then playing one or more at a time, semi-randomly. They would be written in the same key presumably, but otherwise the only randomness is the order they appear in (and/or the channel they appear on).

At the other end of the complexity spectrum would be to generate the patterns procedurally as well, either by writing into the tracker, or manipulating sound in some other way. I don't really know where to start.

So I thought I'd start a discussion. Anyone experimented with any of the above? Any ideas how to tackle this?

P#50507 2018-03-17 07:00 ( Edited 2018-03-18 07:12)

Cart [#50055#] | Code | 2018-03-07 | License: CC4-BY-NC-SA | Embed
Have fun testing your brand new Renault engine in Barcelona.

P#50057 2018-03-07 11:40 ( Edited 2018-03-07 16:40)

About | Contact | Updates | Terms of Use
Follow Lexaloffle:        
Generated 2019-04-24 01:52 | 0.052s | 2097k | Q:20