🎧 Audio Engineering Basics – PCM, Sample Rate, Bit Depth After working on Zero-Shot TTS (cascading), Sesame (multimodal), and a host of other pipelines, I’ve learned there are a few primitives you have to commit to muscle memory. When you can picture the inputs and outputs—down to the units and shapes—you can sanity-check a model’s behavior in seconds. 1. Mono vs Stereo Think of channels as lanes…
Combining the best of object-oriented and functional programming paradigms to build maintainable SCRUD applications. Introduction Object-Oriented Shell, Functional Core (OSFC) represents a powerful architectural pattern that emerged from my experience with both Haskell’s pure functional approach and the pragmatic realities of OOP languages. This technique offers a compelling solution for managing…
OOP and Inheritance - the scourge of modern programming practices. “OOP is a terrible paradigm, stop using inheritance, it’s bad practice” - this is something that you will hear around on the internet and through some ideologues. Yes, that was clickbait. Is inheritance a bad design decision? Not necessarily, if you understand how to architect systems and quantify the change distance and complexity…
Numpy Top Functions used in Data Analysis Top Functions # To add a new cell, type '# %%' # To add a new markdown cell, type '# %% [markdown]' # %% import numpy as np # %% # Numpy: The commonly used functions - memorize these # %% # Initialize an array from a list my_list = [ 1 , 2 , 3 , 3 ] x = np . array ( my_list ) # %% # If you need to check the type type ( x ) # %% # Create a matrix from an…
Notes about VirtualEnv and Visual Studio Code Create a Virtual Environment python3 -m venv --copies /path/to/new/virtual/environment source venv/bin/activate #activate deactivate # leave Visual Studio Code: When you create a virtual env and open a folder where your code is sitting, then create the virtual environment there. Once you do, you can activate the environment in Visual Studio Code - look…
Graphing with Matplotlib in OOP style. I often see many tutorials using the global state machine version of matplotlib. While they are quick to use, it’s often confusing and quickly becomes unwieldy when you want to reuse the code. I often see many tutorials using the global state machine version of matplotlib. While they are quick to use, it’s often confusing and quickly becomes unwieldy when you…