MCPcopy Create free account
hub / github.com/cycfi/q / main

Function main

example/delay.cpp:60–79  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

58};
59
60int main()
61{
62 q::wav_reader wav{"audio_files/Low E.wav"};
63 if (wav)
64 {
65 std::vector<float> in(wav.length());
66 wav.read(in);
67
68 delay_processor proc{in.data(), wav.sps(), 350_ms, 0.85f};
69
70 if (proc.is_valid())
71 {
72 proc.start();
73 q::sleep(q::duration(wav.length()) / wav.sps());
74 proc.stop();
75 }
76 }
77
78 return 0;
79}

Callers

nothing calls this directly

Calls 9

sleepFunction · 0.85
durationClass · 0.85
lengthMethod · 0.80
dataMethod · 0.80
spsMethod · 0.80
readMethod · 0.45
is_validMethod · 0.45
startMethod · 0.45
stopMethod · 0.45

Tested by

no test coverage detected