Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New version in line with the Wavetable Editor #6

Open
nygma2004 opened this issue Jan 12, 2021 · 0 comments
Open

New version in line with the Wavetable Editor #6

nygma2004 opened this issue Jan 12, 2021 · 0 comments

Comments

@nygma2004
Copy link

Hi bitluni,

Thanks a lot for this driver. I tried using it and I noticed that your Wavetable editor creates the .h file in a different format as what is in the Mono.ino. It also creates a structure which probably is defined elsewhere in the newer version of your program.
Do you have an updated example which works with the current Wavetable version?
I would like to use it like the way you are probably using it, so the ESP plays very short clips when something happens, and not continuously.
If I comment out these lines in the fillSamples method, I can disable the loop playback, right?

    if(lastFilledWord == totalSampleWords)
      lastFilledWord = 0;

Also, can you advice on how I can modify this to only play different sounds on request?

  • Use same sample rate, so the RFC timing stays the same
  • Keep fillSamples in the loop
  • Modify nextSample, so in return line it picks samples from the array that I want to be played back?
  • Create a dummy silence sample with 128-s which will be "played" when nothing needs to be played?

Thanks a lot,
Csongor

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant