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

Thread: T40 Synth ok with Loader 1.49 but 1.52 has distortion.

  1. #1
    Junior Member
    Join Date
    Jul 2019
    Posts
    7

    T40 Synth ok with Loader 1.49 but 1.52 has distortion.

    Windows 10, Arduino 1.8.9, standard Audio library files. T40 with pt8211

    My original S5 code was whittled down to reduce file count and prove that size is not an issue. S5 includes 32 wave table and 32 waveform voices with conditional compiles for up to five Teensys and 10 channels of audio by one USB MIDI source (16 channels). Currently using a T36 host and T40 clients, but a T40 can execute host code by itself.

    For more info, see the beginnings of S5's documentation link.

    The S5-WT zip file which I am attempting to include eliminates wave table capability and includes a T40 PT8211 1.49 and 1.52 hex files to expedite demos. After loading the file, setup plays a chord of notes on a T40 PT8211 (unless the AA_SYNTH.h file is reconfigured). To also demonstrate sound (distortion or not) the terminal 'a' command plays an arpeggio. A 'W' command plays a built in script of William Tell Overture which can be stopped by '/' or '?' help command.

    I have had numerous build problems when attempting to build this on a T41 but thought that this would be the most important starting point to refer to.

    I hope to attain USB Audio, Serial, and MIDI, on the S5 host, but can not get the USB audio working. (Yet, I have made a different script design that can handle USB MIDI, Audio and serial on a T36.)

    http://dbhale.com/S5/S5.html

    I really would be appreciative in any help to get this to work.
    Attached Files Attached Files

  2. #2
    Junior Member
    Join Date
    Jul 2019
    Posts
    7
    By the way, I did try Arduino 1.8.12 and a build with Teensy 1.52 does distort also.

  3. #3
    Junior Member
    Join Date
    Jul 2019
    Posts
    7

    SimpleWavetable.ino built by Teensy 1.52 has distortion.

    I guess I should have reported this as a bug.
    I have a simpler example that demonstrates that TeensyLoader version 1.52 appears to have a bug.
    SimpleWavetable.ino from the Examples code was modified as follows:

    The sound is turned on and off periodically (by software) instead of the a button.
    Fixed values are set for pitch and volume instead of pots.
    i2s1 and sgtl5000 commented out and PT8211 audio out was added
    (No usb midi is required for the demo.)

    Teensy 1.49 hex is fine. Teensy 1.52 hex has distortion.
    Two hex files are in the zip folder.

    Thanks
    Dave
    Attached Files Attached Files

  4. #4
    Senior Member PaulStoffregen's Avatar
    Join Date
    Nov 2012
    Posts
    22,082
    Please give this a try with 1.53-beta3.

    https://forum.pjrc.com/threads/61570...no-1-53-Beta-3

    A bug impacting PT8211 output was fixed in 1.53-beta3. Does that fully resolve the problem you were seeing?

  5. #5
    Junior Member
    Join Date
    Jul 2019
    Posts
    7
    Thanks, Paul !

    I tried 3 sketches compiled with 1.53-beta3 which use the PT8211 on a Teensy 4.0.
    They all worked OK.

    I'll have to now assemble another PT8211 (slightly modified) board for a Teensy 4.1 now that I've figured a way
    to include the USB host pins without increasing the T4.1's footprint.
    I expect the T4.1 PT8211 audio should be fine.

    Thanks ever so much, for you and your team's work !!

    Looking forward to finally getting some videos online, soon.

    Dave

  6. #6
    Senior Member PaulStoffregen's Avatar
    Join Date
    Nov 2012
    Posts
    22,082
    Thanks for confirming the fix. We're really close to wrapping up 1.53, so nice to know this issue will be fully resolved in the new release.

Posting Permissions

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