Fluxamasynth - Sustaining Notes

Interfacing hardware, sensors, output drivers, chips.
yukonnor
Posts: 2
Joined: Sun Feb 21, 2021 7:21 pm

Fluxamasynth - Sustaining Notes

Post 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!

oz
Site Admin
Posts: 542
Joined: Mon May 12, 2008 4:19 pm

Re: Fluxamasynth - Sustaining Notes

Post 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

yukonnor
Posts: 2
Joined: Sun Feb 21, 2021 7:21 pm

Re: Fluxamasynth - Sustaining Notes

Post 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.

Post Reply