
Search found 13 matches
- Tue Oct 12, 2021 5:30 pm
- Forum: Module Designer
- Topic: Integrating External Libraries Like JSyn?
- Replies: 1
- Views: 1799
- Sat Oct 09, 2021 6:30 pm
- Forum: Module Designer
- Topic: Integrating External Libraries Like JSyn?
- Replies: 1
- Views: 1799
Integrating External Libraries Like JSyn?
Has anyone had any luck integrating something like JSyn with VoltageModular?
Bryan
Bryan
- Fri Oct 08, 2021 2:52 am
- Forum: Module Designer
- Topic: ADSR - How to Trigger Envelope?
- Replies: 12
- Views: 6878
Re: ADSR - How to Trigger Envelope?
OK, another newb question-- why am I having to divide the envelope values by 4 in order to get the voltage down to +/-5 and avoid clipping (saw tooth wave in my current test)?
outputJack.SetValue(myosc1.GetSawtoothValue() * (envelope.GetValue()/4));
Also-- does anyone know where I can find a ...
outputJack.SetValue(myosc1.GetSawtoothValue() * (envelope.GetValue()/4));
Also-- does anyone know where I can find a ...
- Thu Oct 07, 2021 6:52 pm
- Forum: Module Designer
- Topic: ADSR - How to Trigger Envelope?
- Replies: 12
- Views: 6878
Re: ADSR - How to Trigger Envelope?
Actually, looks like I figured it out; I needed to run 'envelope.SetGate(false)' whenever the gate signal becomes 0.0. Here is the whole code block in case it helps someone:
if(outputJack.IsConnected()){
if(inputJackGate.GetValue() > 0.0 && gateSet == false ){
envelope.SetGate(true);
gateSet ...
if(outputJack.IsConnected()){
if(inputJackGate.GetValue() > 0.0 && gateSet == false ){
envelope.SetGate(true);
gateSet ...
- Thu Oct 07, 2021 5:11 pm
- Forum: Module Designer
- Topic: ADSR - How to Trigger Envelope?
- Replies: 12
- Views: 6878
Re: ADSR - How to Trigger Envelope?
I was using a bool to check for 'gate active/gate non active' but was havning issues--- but I see that it is definitely necessary, so I did some tweakin' and made it work:
// add your own code here
if(outputJack.IsConnected()){
if(inputJackGate.GetValue() > 0.0 && gateSet == false){
envelope ...
// add your own code here
if(outputJack.IsConnected()){
if(inputJackGate.GetValue() > 0.0 && gateSet == false){
envelope ...
- Thu Oct 07, 2021 2:18 pm
- Forum: Module Designer
- Topic: ADSR - How to Trigger Envelope?
- Replies: 12
- Views: 6878
Re: ADSR - How to Trigger Envelope?
OK, I have things almost working. Here's my ProcessSample() code so far:
if(outputJack.IsConnected()){
if(inputJackGate.GetValue() > 0.0){
envelope.Reset();
envelope.SetGate(true);
}
if(inputJackGate.GetValue() <= 0.0 && envelope.GetStage() == ADSREnvelope.ENV_STAGE.ADSR_Stage_Sustain ...
if(outputJack.IsConnected()){
if(inputJackGate.GetValue() > 0.0){
envelope.Reset();
envelope.SetGate(true);
}
if(inputJackGate.GetValue() <= 0.0 && envelope.GetStage() == ADSREnvelope.ENV_STAGE.ADSR_Stage_Sustain ...
- Thu Oct 07, 2021 1:48 am
- Forum: Module Designer
- Topic: ADSR - How to Trigger Envelope?
- Replies: 12
- Views: 6878
Re: ADSR - How to Trigger Envelope?
Yeah, I was wondering about updating the text in ProcessAudio() (even though it's just a test)-- however, I had seen an LED being updated in ProcessAudio() in one of the SDK demo modules (the LFO demo).
And, yeah, I flaked out on actually setting an attack/release/etc. time; I'm setting variables ...
And, yeah, I flaked out on actually setting an attack/release/etc. time; I'm setting variables ...
- Wed Oct 06, 2021 8:52 pm
- Forum: Module Designer
- Topic: ADSR - How to Trigger Envelope?
- Replies: 12
- Views: 6878
Re: ADSR - How to Trigger Envelope?
Sounds good...I'll give that a go.
Thanks!
Bryan
Thanks!
Bryan
- Wed Oct 06, 2021 8:11 pm
- Forum: Module Designer
- Topic: ADSR - How to Trigger Envelope?
- Replies: 12
- Views: 6878
Re: ADSR - How to Trigger Envelope?
Also, this is one of several unanwered/partially answered questions on the forum regarding the ADSR envelope...it would be nice if the devs chimed in. 
Bryan

Bryan
- Wed Oct 06, 2021 7:57 pm
- Forum: Module Designer
- Topic: ADSR - How to Trigger Envelope?
- Replies: 12
- Views: 6878
ADSR - How to Trigger Envelope?
In my ProcessSample() function I have this:
if(inputJackGate.GetValue() > 0.0){
envelope.SetGate(true);
}
txtDebug.SetText(String.valueOf(envelope.GetValue()));
envelope.AdvanceSample();
...which I would expect to display the envelope's value via the label 'txtDebug' when a signal is ...
if(inputJackGate.GetValue() > 0.0){
envelope.SetGate(true);
}
txtDebug.SetText(String.valueOf(envelope.GetValue()));
envelope.AdvanceSample();
...which I would expect to display the envelope's value via the label 'txtDebug' when a signal is ...