MCPcopy Create free account
hub / github.com/LabSound/LabSound / note

Method note

examples/src/Examples.hpp:1277–1280  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1275struct ex_wavepot_dsp : public labsound_example
1276{
1277 float note(int n, int octave = 0)
1278 {
1279 return std::pow(2.0f, (n - 33.f + (12.f * octave)) / 12.0f) * 440.f;
1280 }
1281
1282 std::vector<std::vector<int>> bassline = {
1283 {7, 7, 7, 12, 10, 10, 10, 15},

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected