Playful Tones
playfultones.bsky.social
Playful Tones
@playfultones.bsky.social
Into C++, audio dev, JUCE, sound design, synths, Unity VR/XR app dev, and more.
https://playfultones.com
TIL about a handy C++17 feature.

The "if with initializer" aka "init-statement in if" syntax lets you declare variables right in the if statement, keeping scope tight and code clean.

#cpp #audio #programming #audiodev
June 25, 2025 at 7:20 AM
TIL about JUCE's ScopedTimeMeasurement class - a handy RAII timer that measures the execution time of a scope block.

Way cleaner than manually handling high-precision timers!

#JUCE #cpp #audiodev
February 18, 2025 at 2:27 PM
Pro tip: If you're using JUCE, check out their UTF-8 String-Literal helper in the Projucer (Tools menu). It converts unicode strings into proper escaped sequences that work reliably in C++ source. Way safer!

#CPP #Programming #Unicode #JUCE
January 20, 2025 at 2:35 PM
You might have heard of JUCE_LIVE_CONSTANT:
github.com/remberg/juce...

It's a great utility for UI prototyping. Though using it excessively quickly makes it a hassle to find a specific one in the Live Values window.

Here's a helpful regex pattern for cleaning them up:
JUCE_LIVE_CONSTANT\(([^)]*)\)
December 20, 2024 at 8:55 AM