void draw(){ ofSetColor(255,255,255); ofDrawBitmapString("Volume: " + ofToString(scaled_vol), 20, 40); ofDrawBitmapString("IP: " + kAddress, 20, 60); ofDrawBitmapString("Port: " + ofToString(kPort), 20, 80); ofDrawBitmapString("---Key info ----", 20, 100); ofDrawBitmapString("press 's': Stop audio", 20, 120); ofDrawBitmapString("press 'p': Play audio", 20, 140); drawAudioInput(); }
//-------------------------------------------------------------- void testApp::draw(){ ofBackground(0); if (screenToDraw == 0){ ofSetColor(166); verdana14.drawString("input: "+inputSoundStream.deviceName, 20, 20); verdana14.drawString("output: "+outputSoundStream.deviceName, 20, 60); if (showingInputDevices) showDeviceListWindow(inputSoundStream); if (showingOutputDevices) showDeviceListWindow(outputSoundStream); drawAudioInput(); }else{ aubioOnsetDetect->drawOnsetDetection(); } }
void ofApp::draw() { ofBackground(0); ofPushMatrix(); ofTranslate(10, 10); drawAudioInput(0, 0, 128); drawVinyl(128, 0, 128); ofTranslate(256, 0); ofSetColor(yellowPrint); drawCurve(absolutePosition, 128); ofSetColor(magentaPrint); drawCurve(relativePosition, 128); ofSetColor(255); drawCurve(faderPosition, 128, 0, 255); ofPopMatrix(); ofSetColor(255); ofPushMatrix(); ofTranslate(10, ofGetHeight() - 120); ofDrawBitmapString("pitch: " + ofToString(xwax.getPitch(), 2) + "x", 0, 20); ofDrawBitmapString("velocity: " + ofToString(xwax.getVelocity(), 2) + " ms", 0, 40); ofDrawBitmapString("relative: " + ofToString(xwax.getRelative(), 0) + " ms", 0, 60); ofDrawBitmapString("absolute: " + ofToString(xwax.getAbsolute(), 0) + " ms", 0, 80); ofDrawBitmapString("absolute valid: " + ofToString(xwax.isAbsoluteValid() ? "yes" : "no"), 0, 100); ofPopMatrix(); ofPushMatrix(); ofTranslate(256, ofGetHeight() - 120); ofDrawBitmapString("format: " + xwax.getFormat() + " (" + recordSide +")", 0, 20); ofDrawBitmapString("osc: " + oscHost + ":" + ofToString(oscPort), 0, 40); ofDrawBitmapString("subdivide: " + ofToString(oscSubdivide) + " (" + ofToString(oscRate, 1) + "Hz)", 0, 60); ofDrawBitmapString("audio: " + ofToString(audioSamplerate) + "Hz, " + ofToString(audioBuffersize) + " samples", 0, 80); ofDrawBitmapString("serial: " + ofToString(serialPort), 0, 100); ofPopMatrix(); }