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

Thread: definitive waveform sync/reset?

  1. #1
    Junior Member
    Join Date
    Dec 2015
    Posts
    4

    definitive waveform sync/reset?

    Hello,

    I've been seraching for an hard sync/waveform reset (waveform reset to zero) for the AudioSynthWaveform or AudioSynthWaveformModulated.
    Found some solutions posted here over the years on the forum, but haven't tryed them yet because i don't have the confidence to change the .h and .ccp's and i like to keep the "official" files.

    I was wondering if after all this time, this was already implement on the official library or if any of you guys have any tricks to do it without changin the file?

    Thanks all!

  2. #2
    Junior Member
    Join Date
    May 2022
    Posts
    16
    I've wanted this as well. Pretty sure there's not an official solution.

    I attempted to add sync and have attached my modified files. You can either use (for example) OSC_A.sync() in your sketch or patch in another audio object into input 2. This has worked for my project, but I'm sure someone more knowledgeable could do it better (please do!). I'm just trying to help as no one as responded yet.

    If you don't want to mess with the actual audio library, you can just put these in the same folder as your sketch and include it like this:
    Code:
    #include "synth_waveform_withsync.h"
    Then use it like so:
    Code:
    AudioSynthWaveformModulatedSync OSC_A;
    synth_waveform_withsync.cpp
    synth_waveform_withsync.h

Posting Permissions

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