ADSR in over 2 days
-
This took me far longer than it probably should have, made a variable ADSR envelope, you can set any of ADSR values and the little vector is drawn off the settings.
Thanks to those that helped with the button thing yesterday, it was not to shoot lasers, but the sound will continue to play at the sustain value while the button is held down and will release when the button is released, though I found it difficult to do this as well as automate through the envelope if you don't hold the button.
Hopefully the devs can add ADSR natively in Fuse instead.
-
ADSR is indeed coming in the next patch! :)
-
@Dave Hurray! Any other audio-related additions you could tell us?
-
@Dave awesome! can we get a sneak peak of how to call it or set it
-
I just learnt today about ADSR. But how exactly is it possible to keep the sound at the sustain value? Is this done by changing the sound speed during the time the note is played? Does this mean I have to wait a few frames after the playNote() function and then I decrease continuously the speed? With what function? setEnvelope()? In the example with the sheep-sound, it somehow just reduced the volume of the sound. Thank you very much for elaborating this fascinating topic a bit @Dave @Discostew @sys64738 to me.
-
Thanks for that link @spikey - I really would like to get back into learning this stuff when I feel suitably motivated!
-
VL Tone lives. Who remembers Da Da Da?
-
@spikey oh you gave me an idea absolutely nothing to do with adsr couldn't think about anything else.
Couldn't even pick up my switch to program it.
Is it even possible.
I don't know.
Looked at our commands.
There's a stop and a start and 16 channels.
Not to cluey on sound but doesn't it cancel or amplify when they're laid over each other.
Because if they do
And you can stop and start each channel and lay them over each other quickly enough.
And that's my question.
What time period can you start and stop?
I want a voice !!! -
@DomDom Trio!
-
@DomDom OMG, VL Tone VL-1, I did not know what device that was, and it has a calculator! thanks for that input. ..and you define a sound by a typing in a few numbers. @sys64738 already was almost there to built an FM Synth with UI. Korg, if you don't let us export your stuff, we build our own synths. @Dave 's SoundFX Generator from the FUZE library helped me a lot in discovering most of the available functions.
-
Do we still not have native ADSR support built-in?
-
Technically, the function setADSR does exist in Fuze right now, but is in need of a couple of fixes to be fully functional. Because of that, the help page for it hasn't been constructed since it does not work as intended. In fact, it has very limiting factors currently which make it almost redundant.
It will be functional in the next patch, and help pages will be in Fuze to explain it!
Apologies for the delay everybody.
-
@Dave said in ADSR in over 2 days:
Technically, the function setADSR does exist in Fuze right now, but is in need of a couple of fixes to be fully functional. Because of that, the help page for it hasn't been constructed since it does not work as intended. In fact, it has very limiting factors currently which make it almost redundant.
It will be functional in the next patch, and help pages will be in Fuze to explain it!
Apologies for the delay everybody.
Is this in the works for the coming patch?
-
Is there any chance that we can have an adsr for the modulator too? Pretty please? :)
-
Meanwhile, I tried
setADSR(ch, a, d, s, r)
to see which part of it works already.(Take note: this is what I believe it works like, right now)
a
: sets the time duration for the attack phase in ms
d
: sets the time duration for the decay phase in ms
s
: sets the volume level (0-1), where the sound will stay at (but because r, is not implemented yet, it will stay at that level forever)
r
: the release time is not implemented yetWorkaround for
r
is:- setVolume to 0 after the note duration
- create a function that lerps the value to zero (not sure how this performs during a game)
Open questions:
- what are the default values of ADSR to set the channel ADSR back? Probably this is not trivial, because its depending on the note speed, so we would need a command to disable ADSR for a channel again.
isa
andd
really independent, when setting it? sometimes I feel likea
cannot be set freely
Appendix:
It looks like, ifa
is bigger than 0, the minimum fora
isd
. Means if you setd
to 125 anda
to something between 0 and 125, it will be automatically set to125
.
I retested this in a blank program, I was wrong, attack and decay are working fine for me.