Re: Useful list-indexing trick

2020-10-01 Thread AudioGames . net Forum — Developers room : camlorn via Audiogames-reflector
Re: Useful list-indexing trick The delay line implementation is include/synthizer/block_delay_line.hpp.  Example usage is in src/hrtf.cpp, starting in HRTFPanner::run, starting just above input_line.runReadLoopSplit(...).I haven't benchmarked it against the naive implementation

Re: Useful list-indexing trick

2020-10-01 Thread AudioGames . net Forum — Developers room : Ethin via Audiogames-reflector
Re: Useful list-indexing trick @6, which files is that in? I'm curious now to go check that out. URL: https://forum.audiogames.net/post/576088/#p576088 -- Audiogames-reflector mailing list Audiogames-reflector@sabahattin-gucukoglu.com https://sabahattin-gucukoglu.com/cgi-bin/ma

Re: Useful list-indexing trick

2020-10-01 Thread AudioGames . net Forum — Developers room : chrisnorman7 via Audiogames-reflector
Re: Useful list-indexing trick @4Sorry, turning doesn't involve a list. I thought the whole thought, and only typed half of it.Thanks so much for the info. URL: https://forum.audiogames.net/post/576080/#p576080 -- Audiogames-reflector mailing list Audiogames-reflector@sabah

Re: Useful list-indexing trick

2020-10-01 Thread AudioGames . net Forum — Developers room : camlorn via Audiogames-reflector
Re: Useful list-indexing trick @5slow is only one of the problems.  The hardware implementation also doesn't match up with the math.  If you do anything that's not trivial and which would really take full advantage, you still have to guard, because negative numbers don&#x

Re: Useful list-indexing trick

2020-10-01 Thread AudioGames . net Forum — Developers room : Ethin via Audiogames-reflector
Re: Useful list-indexing trick Yeah, the % operator is really useful. Its useful for ensuring that an integer always remains within a particular range (you'll never suffer array out-of-bound errors if you use it right, because you'll always have indices within the range of the a

Re: Useful list-indexing trick

2020-10-01 Thread AudioGames . net Forum — Developers room : camlorn via Audiogames-reflector
Re: Useful list-indexing trick Why would turning involve a list?  or are you asking if you can do (degrees + change) % 360?  If it's (degrees + change) % 360, that's fine and will do what you expect, but turning shouldn't ever involve needing to index into a list, and

Re: Useful list-indexing trick

2020-10-01 Thread AudioGames . net Forum — Developers room : chrisnorman7 via Audiogames-reflector
Re: Useful list-indexing trick So for something like calculating degrees when turning, should I stick to the tried-and-tested method of checking for overflows?I never even considered that some operators might be more expensive than others. URL: https://forum.audiogames.net/post/575986

Re: Useful list-indexing trick

2020-10-01 Thread AudioGames . net Forum — Developers room : camlorn via Audiogames-reflector
Re: Useful list-indexing trick It's called a ringbuffer and is popularly used in lots of things, high-volume logging libraries and work queues for example, just not usually in Python.  Synthizer has lots of these because, with some additional magic, it turns into a really efficient w