Page 1 of 1

Fluxamasynth - Sustaining Notes

Posted: Sun Feb 21, 2021 7:29 pm
by yukonnor
Hello All!

I had intended to use my Fluxamasynth as tool to create 'ambient drones' but now I'm wondering if this is possible :)

It seems as though the sounds the play (any tonal instrument) decay on their own after about 6 seconds or so even if i have not turned the note off or adjusted the volume.

Does anyone know if it's possible to sustain any of the sounds indefinitely (as if I were holding a key down on a synthesizer)?

Here's an example sketch showing that the sound decays on it's own after about 6s even though the note is on for 20s:

Code: Select all

#include <Fluxamasynth.h>
 
Fluxamasynth synth;

byte instrument = 0;
 
void setup() {
  synth.setMasterVolume(255);   
}


void loop()
{
  for (int note=60; note<85; note++) {
    synth.noteOn(0, note, 100);  
    delay(20000);
    synth.noteOn(0, note, 0);    // Be sure to turn the note off!
  }
}
Any help or guidance would be appreciated!

Re: Fluxamasynth - Sustaining Notes

Posted: Sun Feb 21, 2021 11:02 pm
by oz
yukonnor,

I think the sustain is built into the voice, so you just have to choice voices (see ProgramChange()) that have a high sustain level like organ, violin, synth, brass and flutes. There are probably more.

Paul

Re: Fluxamasynth - Sustaining Notes

Posted: Tue Feb 23, 2021 9:26 pm
by yukonnor
Thanks, Paul!

I can confirm that some of the voices (like you mentioned: some organs / synths / strings / etc) have very long / infinite sustains.