Maximilian and iOS Simulator ... noisy stuff or is it my ear ...?!

Hi,
Maximilian seems very nice.
Envelopes, filters etc

If I tried the first-example which should pop out a pretty 440Hz, I have a buzz like a sawtooth around 440Hz I guess

I have that with the iOS simulator.

Anyone else?
Any tips ?

Here is my code in case of:

testApp.h

  
#pragma once  
  
#include "ofMain.h"  
#include "ofxiPhone.h"  
#include "ofxiPhoneExtras.h"  
#include "ofxMaxim.h"  
  
  
  
class testApp : public ofxiPhoneApp {  
	  
public:  
	void setup();  
	void update();  
	void draw();  
	void exit();  
	  
	void touchDown(ofTouchEventArgs &touch);  
	void touchMoved(ofTouchEventArgs &touch);  
	void touchUp(ofTouchEventArgs &touch);  
	void touchDoubleTap(ofTouchEventArgs &touch);  
	void touchCancelled(ofTouchEventArgs &touch);  
  
	void lostFocus();  
	void gotFocus();  
	void gotMemoryWarning();  
	void deviceOrientationChanged(int newOrientation);  
      
    ofxMaxiOsc mySine;  
    void audioOut(float * output, int bufferSize, int nChannels);    
  
};  

testApp.mm

  
#include "testApp.h"  
  
//--------------------------------------------------------------  
void testApp::setup(){	  
	// register touch events  
	ofRegisterTouchEvents(this);  
	  
	// initialize the accelerometer  
	ofxAccelerometer.setup();  
	  
	//iPhoneAlerts will be sent to this.  
	ofxiPhoneAlerts.addListener(this);  
	  
	//If you want a landscape oreintation   
	//iPhoneSetOrientation(OFXIPHONE_ORIENTATION_LANDSCAPE_RIGHT);  
      
	ofSoundStreamSetup(2,0,this, 44100, 512, 4);/* Call this last ! */    
      
	ofBackground(127,127,127);  
}  
  
  
void testApp::audioOut(float * output, int bufferSize, int nChannels) {    
    *output=mySine.sinewave(440);  
}    
  
//--------------------------------------------------------------  
void testApp::update(){  
  
}  
  
//--------------------------------------------------------------  
void testApp::draw(){  
	  
}  
  
//--------------------------------------------------------------  
void testApp::exit(){  
  
}  
  
//--------------------------------------------------------------  
void testApp::touchDown(ofTouchEventArgs &touch){  
  
}  
  
//--------------------------------------------------------------  
void testApp::touchMoved(ofTouchEventArgs &touch){  
  
}  
  
//--------------------------------------------------------------  
void testApp::touchUp(ofTouchEventArgs &touch){  
  
}  
  
//--------------------------------------------------------------  
void testApp::touchDoubleTap(ofTouchEventArgs &touch){  
  
}  
  
//--------------------------------------------------------------  
void testApp::lostFocus(){  
  
}  
  
//--------------------------------------------------------------  
void testApp::gotFocus(){  
  
}  
  
//--------------------------------------------------------------  
void testApp::gotMemoryWarning(){  
  
}  
  
//--------------------------------------------------------------  
void testApp::deviceOrientationChanged(int newOrientation){  
  
}  
  
  
//--------------------------------------------------------------  
void testApp::touchCancelled(ofTouchEventArgs& args){  
  
}  
  
  

I think that’s an issue with the simulator. Make sure you OSX audio settings are set to 44100.

hey Seth,
already 44,1khz here.
all the same.
it is a bit annoying but I can test on a real device so…