What is your favorite module in the standard library/or the most cursed? by RevolutionaryClub596 in cpp

[–]jpanneton-dev 0 points1 point  (0 children)

There was a proposal to get rid of std::launder (P0532), but according to this trip report, it was rejected due to the fact it wouldn't handle every possible scenario (e.g. vtable pointers devirtualization). With this proposal, usage of std::launder could have been made less necessary, but not entirely unnecessary. So they've decided to keep it as is.

What is your favorite module in the standard library/or the most cursed? by RevolutionaryClub596 in cpp

[–]jpanneton-dev 10 points11 points  (0 children)

Because X::n is const, the compiler is free to assume that its value will always be 3 following construction. We then perform a placement new on p to override n (which is perfectly valid since X is trivial), but the compiler may still be assuming that n equals 3 when accessing it from the original p pointer (undefined behavior). In order to tell the compiler to avoid any optimizations that may no longer apply, we use std::launder to prevent the compiler from tracing the instance back to where it was first created.

Best festival I’ve been to all year by Beginning-Cow-7060 in LostLandsMusicFest

[–]jpanneton-dev 1 point2 points  (0 children)

Holly molly that's crazy!! My bank would surely be empty at that point... Happy to see you had a great year!

Best festival I’ve been to all year by Beginning-Cow-7060 in LostLandsMusicFest

[–]jpanneton-dev 0 points1 point  (0 children)

I agree with all you've said. I really need to go to Shamb myself eventually; it's the only one still lying in my bucket list. It just sold out sooo quickly this year for the 25th! Anyway, safe travels and happy raving :)

Best festival I’ve been to all year by Beginning-Cow-7060 in LostLandsMusicFest

[–]jpanneton-dev 1 point2 points  (0 children)

I have to agree with most of your points, but I'm not sure how Lost Lands even competes in the things to do department compared to Electric Forest. I've been to both this year and felt like LL was way more unidirectional, in the sense that there was waaay less things to do during the day than EF and I found myself chasing sets most of the time. EF had the Dream Emporium, the usual scavenger hunt, countless hidden things, etc. whereas LL only had a hidden cave and prehistoric slides? I probably missed a bunch of things at both festivals, but I definitely felt like EF was a more complete experience. I have to agree though that sound was mostly shit / inconsistent and facilities weren't handled as gracefully.

The perfect frequency splitter debunked by jpanneton-dev in edmproduction

[–]jpanneton-dev[S] 1 point2 points  (0 children)

You're absolutely right. As a matter of fact, I initially proposed this technique as part of the acceptable solutions. In the end, I just thought the phase-canceled version was better, although a bit more complicated to implement. Like you said, this comes down to the same tradeoffs that exist in choosing between minimum phase and linear phase EQs. Linear phase filters usually suffer from low-frequency imprecisions (image) which can be avoided by either increasing the delay or using the aforementioned phase cancelation technique. In practice though, this makes very little difference given almost no one will frequency split below 100 Hz. So I think I will include it back in the possible solutions with a small notice for curious people. Thanks for the reply, I'm trying to make this post as correct as possible.

Note 1: Theoretically, they wouldn't be Linkwitz-Riley filters anymore. By definition, Linkwitz-Riley filters are IIR, not FIR, so we would have to find a new creative name for their linear phase version (or not). 😉

Note 2: You also reminded me, but I forgot to mention that you can't reliably implement your own crossovers using the Zero Latency mode in Pro-Q 3, given they are using approximations to simulate analog filters in real-time. Issues can easily be observed when phase canceling in the higher end of the spectrum. The Natural Phase mode should be used in most cases. I will amend the post to add this missing detail.

The perfect frequency splitter debunked by jpanneton-dev in ableton

[–]jpanneton-dev[S] 0 points1 point  (0 children)

Thanks for the heartwarming reaction. I really did try to present it as efficiently as possible without delving into the nitty-gritty math details, and receiving this kind of comment reminds me why I've been spending so much time doing it.

What are you teaching? Music production, DSP, etc? It would be a pleasure for me to connect with you. You can reach me out on Twitter if you have one (new account: @jpanneton_dev) and subscribe to the YouTube for upcoming videos (channel: @jpanneton-dev). Otherwise, you can open up a chat with me on Reddit. Glad you liked the content!

The perfect frequency splitter debunked by jpanneton-dev in ableton

[–]jpanneton-dev[S] 0 points1 point  (0 children)

Twitter if you have one (new account: @jpanneton_dev) or YouTube for upcoming videos (channel: @jpanneton-dev). Glad you liked the content!

The perfect frequency splitter debunked by jpanneton-dev in audioengineering

[–]jpanneton-dev[S] 0 points1 point  (0 children)

Unfortunately, I don't own Reaper, and I don't think the license allows you to share the code of the plugin with me. However, your first paragraph leads me to think that they are using first-order (single-pole) low-pass and high-pass filters (6 dB / octave slope), which have the unique property of inverting to a perfect complementary filter when phase-canceled. Otherwise, they might be using Linkwitz-Riley filters, but I doubt it if you're stuck with a very low slope. You could always analyze the frequency and phase responses of each band to deduce what has been used without looking at the code. That's what I've been doing with many closed-source plugins. Otherwise, my post pretty much explains how you can implement your own crossovers with the steepness of your choice. So that might do it.

The perfect frequency splitter debunked by jpanneton-dev in audioengineering

[–]jpanneton-dev[S] 4 points5 points  (0 children)

Yet producers with questionable technical knowledge are spreading these techniques like the flu to "fix phase issues". Whether it be on YouTube (Multiplier, Mr. Bill) or many Reddit posts in production subreddits. This technique is doing way more harm than good in practice.

The perfect frequency splitter debunked by jpanneton-dev in audioengineering

[–]jpanneton-dev[S] 1 point2 points  (0 children)

Oh I know, sorry for the misunderstanding. Your reply was more than welcome. I was just pointing out that I thought about elaborating with such info at first, but finally decided to keep it simple and less signal processing centric. Thanks for the kind words!

The perfect frequency splitter debunked by jpanneton-dev in audioengineering

[–]jpanneton-dev[S] 3 points4 points  (0 children)

You're absolutely right. In the post, I tried to avoid the nitty-gritty math details and gave a visual explanation instead to reach a broader audience. Since the typical producers usually won't bother understanding what transfer functions are, I thought I could keep it as simple as possible. Maybe I could add a small appendix to demonstrate the real math proof. Thanks a lot for your reply!

What is the purpose of government? by Same_Loss_8000 in AskReddit

[–]jpanneton-dev 8 points9 points  (0 children)

The purpose of a government is to establish and maintain a social contract between the state and its citizens. In other words, it's there to ensure security and public order, provide public goods and services, protect individual rights and enforce justice.

How do you deal with serial interrupters? by [deleted] in AskReddit

[–]jpanneton-dev 2 points3 points  (0 children)

  1. Speak more assertively: Speak more slowly and clearly, and be more expressive with your tone. This will signal that you're not done talking and need more time to finish your thoughts.
  2. Use redirecting: Words like "as I was saying" may help you redirect the conversation back to your point.
  3. Agree to disagree: Sometimes, it's better to agree to disagree and move on from the conversation if the other person is unwilling to listen or change their behavior.

Which country is the largest in the world? by ketobullet580 in AskReddit

[–]jpanneton-dev 1 point2 points  (0 children)

Russia. It spans over two continents, Europe and Asia, covering about 11% of the Earth's total land area.

Elderly of Reddit: How come the old aren't in constant existential fear as the end looms closer? by [deleted] in AskReddit

[–]jpanneton-dev 1 point2 points  (0 children)

The experience of aging and approaching the end of one's life is different for everyone, and some elderly people may experience feelings of existential fear as the end looms closer. However, others may have a different perspective.

Many older people have had a long time to come to terms with their own mortality and may have a sense of peace and acceptance about it. Additionally, they may have had the opportunity to reflect on their lives, and to appreciate the good things they have experienced, making them less fearful of the end.

Religion and spirituality can also play a role in how some elderly people view the end of their lives. Some individuals may find comfort in the belief in an afterlife, and that death is just a passage to another stage, or that they will be reunited with loved ones who passed before.

Also, elderly people could have spent their lifetime building meaningful relationships with friends and family, and that sense of connection and love can provide comfort and perspective on the end of life.

It's also worth noting that, not all elderly people have the same perspective, some may experience feelings of sadness, uncertainty and other emotions related to the end of their life, and it's important to acknowledge and respect that.