Simple ADSR VST?
-
- KVRian
- 624 posts since 10 Apr, 2005 from Portland, Oregon baby!
gd, are you a SynthEdit user? from your posts it seems like you're not, but i thought i'd ask (no offense intended, just curious). i never have had to deal with this "going through the zero" problem so far, which i suspect is because that low level logic is built into the Comparator module, which seems like it'll work fine with the output smoothed as me & the red rocket man have been discussing.
i suspect that once the output of the comparator module is smoothed it'll work like gangbusters (for note on too).
since i'm a relatively new guy in the SynthEdit community with less than 6 months of experience, i'll just have to try it out and see. didn't get any work done last night, but i'm off work tonight, so after i get back from a movie i'll probably get mo' work done.
if i have major problems, i could always bug Jeff about it, since he wrote the comparator (i think), and is nice about helping SE users out.
i suspect that once the output of the comparator module is smoothed it'll work like gangbusters (for note on too).
since i'm a relatively new guy in the SynthEdit community with less than 6 months of experience, i'll just have to try it out and see. didn't get any work done last night, but i'm off work tonight, so after i get back from a movie i'll probably get mo' work done.
if i have major problems, i could always bug Jeff about it, since he wrote the comparator (i think), and is nice about helping SE users out.
===================================
DistBit (freeware versatile distortion VST)
my Sleeping Prophet music
DistBit (freeware versatile distortion VST)
my Sleeping Prophet music
-
- KVRian
- 624 posts since 10 Apr, 2005 from Portland, Oregon baby!
oh one more thing, anyone have any input on what the GUI ought to look like? i was planning on just using the knobs i made for my DistBit project, but i can make the accent color anything (the knobs have a colorized layer on them). what you guys think, maybe blue? yellow/green?
===================================
DistBit (freeware versatile distortion VST)
my Sleeping Prophet music
DistBit (freeware versatile distortion VST)
my Sleeping Prophet music
-
- KVRian
- 769 posts since 2 Apr, 2005
No - I know nothing about Synthedit or DSP. I write code in VB, and i would like to mess around with DSP at some stage. I just think in terms of what I would like to do with a waveform - and would probably be frustrated just assembling other peoples components together. But I don't believe in re-inventing the wheel either, so if Synth-edit has components that work, that's good enough for me.
-
- KVRAF
- 3528 posts since 18 Apr, 2002 from British Columbia, Canada
hi
EVM also wrote some really good modules for SynthEdit. i use some of his logic mods, you might want to check it out - if not for this, maybe for the next thing.
http://www.evmsynths.com/modules.htm
EVM also wrote some really good modules for SynthEdit. i use some of his logic mods, you might want to check it out - if not for this, maybe for the next thing.
http://www.evmsynths.com/modules.htm
-
- KVRian
- 624 posts since 10 Apr, 2005 from Portland, Oregon baby!
thanks, rocketman. i've got a fairly extensive collection at this point 
===================================
DistBit (freeware versatile distortion VST)
my Sleeping Prophet music
DistBit (freeware versatile distortion VST)
my Sleeping Prophet music
-
- KVRian
- 624 posts since 10 Apr, 2005 from Portland, Oregon baby!
ok so i went back and looked at my old "guitar box" project (where i had built a nice noisegate), and basically used that gate section as my starting point.
for the SE people on the board, the module i'm using to do the actual signal comparison (is it on/off) work is Ralph Gonzalez's Enveloper. it puts out a nice & steady 10V when "on", and 0 when off, making it perfect to drive the Gate input on an ADSR. the ADSR now cycles through all 4 phases properly. i built a dual-knob control which has a coarse knob (range of 0 to 5000, snapping to nearest 100s), and a fine knob (rang 0 to 100, snapping to nearest integer), and these controls will be used for the attack, decay, and release sections, thus giving you a huge range to work with while maintaining precision control.
i haven't screwed with MIDI output since i got the ADSR working properly, but that is next on the list after i convert my "learn" and theshold controls over to SubControls modules.
one additional request for feedback/input:
what do you guys think about having a BPM sync mode you can toggle on the A,D, and R sections? this would basically allow you to set the time in musical units based on host tempo as opposed to ms, so like you could set the attack time to 3/16ths or something. doing this would probably only require an additional toggle switch for each of the three sections (i could use the same text readout & knobs for both time & tempo modes). i have a sneaking suspicion that this function could prove useful, especially if you use this unit for MIDI output.
any thoughts?
for the SE people on the board, the module i'm using to do the actual signal comparison (is it on/off) work is Ralph Gonzalez's Enveloper. it puts out a nice & steady 10V when "on", and 0 when off, making it perfect to drive the Gate input on an ADSR. the ADSR now cycles through all 4 phases properly. i built a dual-knob control which has a coarse knob (range of 0 to 5000, snapping to nearest 100s), and a fine knob (rang 0 to 100, snapping to nearest integer), and these controls will be used for the attack, decay, and release sections, thus giving you a huge range to work with while maintaining precision control.
i haven't screwed with MIDI output since i got the ADSR working properly, but that is next on the list after i convert my "learn" and theshold controls over to SubControls modules.
one additional request for feedback/input:
what do you guys think about having a BPM sync mode you can toggle on the A,D, and R sections? this would basically allow you to set the time in musical units based on host tempo as opposed to ms, so like you could set the attack time to 3/16ths or something. doing this would probably only require an additional toggle switch for each of the three sections (i could use the same text readout & knobs for both time & tempo modes). i have a sneaking suspicion that this function could prove useful, especially if you use this unit for MIDI output.
any thoughts?
===================================
DistBit (freeware versatile distortion VST)
my Sleeping Prophet music
DistBit (freeware versatile distortion VST)
my Sleeping Prophet music
-
- KVRist
- 206 posts since 13 Mar, 2002 from Zagreb, Croatia
hi sleepy,
thats great idea. i think it would be very useful. you should definately do it, if thats not much of a trouble for you.
would your plugin have any latency to deal with? hope not.
what would be used as a trashold for "off" message? the same as for "on" or different (user defined)?
cheers
thats great idea. i think it would be very useful. you should definately do it, if thats not much of a trouble for you.
would your plugin have any latency to deal with? hope not.
what would be used as a trashold for "off" message? the same as for "on" or different (user defined)?
cheers
-
- KVRian
- 624 posts since 10 Apr, 2005 from Portland, Oregon baby!
actually, after asking if it would be a good idea of not, i went ahead and built the BPM section anyways, cuz better to have it and not need it than need it and not have it.
on the threshold, i'm currently having good results with a single level for both on and off. doing it this way makes it a lot easier from a scructural standpoint, and so far it seems to work pretty well. i'm currently working on debugging some stuff and trying to get the MIDI input working properly. it looks like it won't work properly when using both audio & MIDI for triggering, so it may be limited to just one or the other
on a final note, i'm at a total loss for what to call this thing. it's got the functionality of a nice noisegate, but also a bunch of MIDI functionality as well. any ideas? my current working name is "MetaGate" but that isn't really a good description for it and isn't very cool sounding
on the threshold, i'm currently having good results with a single level for both on and off. doing it this way makes it a lot easier from a scructural standpoint, and so far it seems to work pretty well. i'm currently working on debugging some stuff and trying to get the MIDI input working properly. it looks like it won't work properly when using both audio & MIDI for triggering, so it may be limited to just one or the other
on a final note, i'm at a total loss for what to call this thing. it's got the functionality of a nice noisegate, but also a bunch of MIDI functionality as well. any ideas? my current working name is "MetaGate" but that isn't really a good description for it and isn't very cool sounding
===================================
DistBit (freeware versatile distortion VST)
my Sleeping Prophet music
DistBit (freeware versatile distortion VST)
my Sleeping Prophet music
-
- KVRian
- 624 posts since 10 Apr, 2005 from Portland, Oregon baby!
not really sure how to measure that. it doesn't seem to have any more latency than the buffer in my ASIO driver. i'll ask around about measuring this...
===================================
DistBit (freeware versatile distortion VST)
my Sleeping Prophet music
DistBit (freeware versatile distortion VST)
my Sleeping Prophet music
- KVRAF
- 12615 posts since 7 Dec, 2004
the answer to this is simple,
min attack, min release compressor with max depth into
a gate, with the attack set very slow (1s ++) and release set very slow. "ADSR" is meaningless, i think he didnt know what he's looking for. its very easy to get a gate with ADSR envelope though, which i've considered doing to my gate plugin, but the effect is pretty useless to be honest, and therefore i havent implemented it in the release.
compressor, i'm working on one, but as for a suggestion, just
about anything will work, try the builtin directx compressor, works fine. for a gate, i'd use xhip gate, http://xhip.cjb.net/xhipeffects/ http://xhip.cjb.net/xhip/data/xhipeffects.zip
not just to plug either, but because this gate is the best one i've ever used in software (obviously i made it because others wouldnt do), and also the only one you can get me to modify for you, to make as long attack/decay as you like (min 1ms, max several hours)
min attack, min release compressor with max depth into
a gate, with the attack set very slow (1s ++) and release set very slow. "ADSR" is meaningless, i think he didnt know what he's looking for. its very easy to get a gate with ADSR envelope though, which i've considered doing to my gate plugin, but the effect is pretty useless to be honest, and therefore i havent implemented it in the release.
compressor, i'm working on one, but as for a suggestion, just
about anything will work, try the builtin directx compressor, works fine. for a gate, i'd use xhip gate, http://xhip.cjb.net/xhipeffects/ http://xhip.cjb.net/xhip/data/xhipeffects.zip
not just to plug either, but because this gate is the best one i've ever used in software (obviously i made it because others wouldnt do), and also the only one you can get me to modify for you, to make as long attack/decay as you like (min 1ms, max several hours)
-
- KVRian
- 624 posts since 10 Apr, 2005 from Portland, Oregon baby!
why would anyone need a duration of such length?
===================================
DistBit (freeware versatile distortion VST)
my Sleeping Prophet music
DistBit (freeware versatile distortion VST)
my Sleeping Prophet music
-
- KVRian
- 624 posts since 10 Apr, 2005 from Portland, Oregon baby!
ok luka and others, i have finished up the plugin.
it's been re-named TriggerMod. here's the GUI:

i haven't done a whole lot of testing with the current build. it seems to do everything it's supposed to do to my expectations. luka, you were right, the tempo-sync is already cool/useful for doing filter sweeps and stuff. the only thing i couldn't figure out how to fix was getting both triggering methods working simultaneously. in this build you can trigger the envelope via audio or MIDI but not both. not that being able to do both at the same time struck me as super neccessary, but i don't like limitations...
i have posted the current build to my WebSamba account in my usual 3 archive formats.
please let me know how it works and what host you use. (the MIDI output routing is one of things i think varies quite a bit from host to host...)
7zip
RAR
ZIP
it's been re-named TriggerMod. here's the GUI:

i haven't done a whole lot of testing with the current build. it seems to do everything it's supposed to do to my expectations. luka, you were right, the tempo-sync is already cool/useful for doing filter sweeps and stuff. the only thing i couldn't figure out how to fix was getting both triggering methods working simultaneously. in this build you can trigger the envelope via audio or MIDI but not both. not that being able to do both at the same time struck me as super neccessary, but i don't like limitations...
i have posted the current build to my WebSamba account in my usual 3 archive formats.
please let me know how it works and what host you use. (the MIDI output routing is one of things i think varies quite a bit from host to host...)
7zip
RAR
ZIP
===================================
DistBit (freeware versatile distortion VST)
my Sleeping Prophet music
DistBit (freeware versatile distortion VST)
my Sleeping Prophet music
- KVRian
- 1305 posts since 26 May, 2003 from im müscha...
hey, thanx for sharing...very useful plugs...cya
tro
tro
