MQS on the Teensy 4.0

Status
Not open for further replies.
Is there someone having experience with the MQS feature of the Teensy 4.0?

search the forum for MQS

it's not part of the audio GUI yet, here's a simple sketch that I used in beta testing
Code:
// teensy4 mqs  frank's audiolib   pins 10/12 rt/left 8 ohm speaker with 100uF
// start monitor to hear sound,  hit key to increase freq
#include <Audio.h>

// GUItool: begin automatically generated code
AudioSynthWaveformSine   sine1;          //xy=180,469
//AudioSynthWaveformSineHires   sine1;
AudioOutputMQS        mqs1;           //xy=380,468
AudioConnection          patchCord1(sine1, mqs1);
// GUItool: end automatically generated code

int freq = 1100;

void setup() {
  Serial.begin(9600);
  while (!Serial);
  Serial.println("Setting up");

  AudioMemory(12);
  sine1.amplitude(1.0);
  sine1.frequency(440);
  Serial.println("Send Serial Char to increase freq");
}

void loop()
{
  if (Serial.available()) {
    Serial.read();
    sine1.frequency(freq);
    Serial.println(freq);
    freq += 100;
  }
}
 
@manitou Many thanks for your help. I think your program will provide a good starting point for my project.
 
Status
Not open for further replies.
Back
Top