This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#pragma once | |
#include "memory_arena.hpp" | |
struct Median | |
{ | |
using Idx_Type = int32_t; | |
float* window {}; | |
Idx_Type* idxs {}; | |
Idx_Type ptr = {}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import numpy as np | |
import warnings | |
warnings.filterwarnings("ignore") | |
import tensorflow as tf | |
import tensorflow.keras as keras | |
from tensorflow.keras.layers import Input, Conv1D, PReLU, BatchNormalization | |
tf.compat.v1.enable_eager_execution() | |
import matplotlib.pyplot as plt | |
from model_utils import save_model |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// loading audio file "guitar.wav" | |
AudioFormatManager formatManager; | |
formatManager.registerBasicFormats(); | |
// normal way | |
File audioFile ("/path/to/guitar.wav"); | |
FileInputStream* input = audioFile.createInputStream(); | |
AudioFormatReader* reader = formatManager.createReaderFor (input); | |
// from the reader we can load into an audio buffer, etc... |