10#ifndef DSY_GRANULARPLAYER_H
11#define DSY_GRANULARPLAYER_H
15#include "Control/phasor.h"
18#define M_PI 3.14159265358979323846
45 void Init(
float* sample,
int size,
float sample_rate);
52 float Process(
float speed,
float transposition,
float grain_size);
56 uint32_t WrapIdx(uint32_t idx, uint32_t size);
59 float CentsToRatio(
float cents);
62 float MsToSamps(
float ms,
float samplerate);
65 float NegativeInvert(
Phasor* phs,
float frequency);
74 float sample_frequency_;
75 float cosEnv_[256] = {0};
Definition granularplayer.h:35
void Init(float *sample, int size, float sample_rate)
Definition granularplayer.cpp:5
float Process(float speed, float transposition, float grain_size)
Definition granularplayer.cpp:56
FIR Filter implementation, generic and ARM CMSIS DSP based.
Definition adenv.h:16