Forum Rule: Always post complete source code & details to reproduce any issue!
Results 1 to 3 of 3

Thread: Teensy 3.6 as a top octave generator

  1. #1

    Teensy 3.6 as a top octave generator

    I need a TOG (Top Octave Generator) for a synth modification. Is it realistic to think that a Teensy 3.6 + the Audio Library would work for this? I'd like to use the PWM pins, not the audio expansion board. Any initial opinions would be appreciated before I jump in and start the work.

    Thanks,
    Michael

  2. #2
    Senior Member PaulStoffregen's Avatar
    Join Date
    Nov 2012
    Posts
    20,064
    Could you explain what you mean by "Top Octave Generator"?

    I did a quick search and found an article about generating 12 square waves at different frequencies. If you want something like that, you could pretty easily use 12 of the waveform synth objects, combine them using mixers, and output that to the DAC pin. Even Teensy 3.2 should be able to handle that pretty easily.

    The waveform object can give you sine, sawtooth and other options apart from square waves.

    The DAC is only 12 bits resolution and lacks fancy features like analog volume control that you get from the audio shield. But if you don't need full 16 bit quality, the build in DAC works pretty well.

  3. #3
    Paul,

    Thanks for the quick reply! Here is what I'm trying to do:
    <https://hackaday.com/2018/08/22/ask-hackaday-answered-the-tale-of-the-top-octave-generator/>

    The Teensy 3.6 would need generate 12 independent clocks on 12 different PWM pins. Each frequency would be a note of the chromatic scale with C8 (4186 Hz) as the highest. This provides 12 independent frequencies that can be divided in hardware for lower frequencies. The rest of the hardware already exists; I'm trying to replace the TOG with a Teensy.

    Thanks,
    Michael

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •