nngn
Loading...
Searching...
No Matches
gen.cpp File Reference
#include "audio.h"
#include <cfloat>
#include <cmath>
#include <numbers>
#include "utils/span.h"
Include dependency graph for gen.cpp:

Namespaces

namespace  anonymous_namespace{gen.cpp}
 
namespace  nngn
 

Functions

void anonymous_namespace{gen.cpp}::fade (std::span< float > s, std::size_t ep, float g0, float g1, auto &&f)
 
void anonymous_namespace{gen.cpp}::sine (std::span< float > s, std::size_t rate, auto &&f)
 

Variables

constexpr auto anonymous_namespace{gen.cpp}::pi = std::numbers::pi_v<float>
 
constexpr auto anonymous_namespace{gen.cpp}::w = 2.0f * pi