From 21a7fe9d7d125be58c4dcfa09db469e83f16780d Mon Sep 17 00:00:00 2001 From: Tim Redfern Date: Wed, 16 Nov 2022 00:13:00 +0000 Subject: better osc stat message --- audioin/src/ofApp.cpp | 20 ++++++++++++-------- audioin/src/ofApp.h | 1 + 2 files changed, 13 insertions(+), 8 deletions(-) diff --git a/audioin/src/ofApp.cpp b/audioin/src/ofApp.cpp index cf454ce..b2d9810 100644 --- a/audioin/src/ofApp.cpp +++ b/audioin/src/ofApp.cpp @@ -60,6 +60,8 @@ void ofApp::draw(){ frameNum++; + ofSetWindowTitle(ofToString(ofGetFrameRate())); + } @@ -78,43 +80,45 @@ void ofApp::audioIn(float * input, int blockSize, int nChannels){ } - +void ofApp::printOscParams(){ + ofLog()<<(1000.0f/(SAMPLERATE/(ofGetWidth()/hScale)))<<"ms, scale: "<