Quantcast
Channel: openFrameworks - Latest posts
Viewing all articles
Browse latest Browse all 40524

ofxStk, Synthesis ToolKit addon

$
0
0

to amplify the signal just multiply each sample by the same value

for (int i = 0; i < bufferSize ; i++) {
  output[2*i] = amplitude * frames(i,0);
  output[2*i+1] = amplitude * frames(i,1);
}

If you want to have a slider with Decibels then to get the amplitude I believe the you do

amplitude = 10.0^(dbValue/10.0)

Viewing all articles
Browse latest Browse all 40524

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>