If you have a problem or need to report a bug please email : support@dsprobotics.com
There are 3 sections to this support area:
DOWNLOADS: access to product manuals, support files and drivers
HELP & INFORMATION: tutorials and example files for learning or finding pre-made modules for your projects
USER FORUMS: meet with other users and exchange ideas, you can also get help and assistance here
NEW REGISTRATIONS - please contact us if you wish to register on the forum
Users are reminded of the forum rules they sign up to which prohibits any activity that violates any laws including posting material covered by copyright
How to not release a stream?
17 posts
• Page 1 of 2 • 1, 2
How to not release a stream?
I'd like to know how I can hold a note/stream (for a specified time of ms) after the key on the midi keyboard is released.
As I want to add a short release envelope - like the already existing "R" (release) module does.
As I want to add a short release envelope - like the already existing "R" (release) module does.
-
jacob - Posts: 9
- Joined: Thu May 31, 2012 9:14 am
- Location: Germany
Re: How to not release a stream?
Why don't you use the Release module, when it does what you want?
-
MyCo - Posts: 718
- Joined: Tue Jul 13, 2010 12:33 pm
- Location: Germany
Re: How to not release a stream?
Because I want to manually manipulate/code the decay phase.
I tried trimming down the Release module to find the section which holds the note but could not find it.
I tried trimming down the Release module to find the section which holds the note but could not find it.
-
jacob - Posts: 9
- Joined: Thu May 31, 2012 9:14 am
- Location: Germany
Re: How to not release a stream?
The holding itself is done by the "Env" primitive (when "Hold" is set to true). You have to keep the bool input "End" true as long as you want your note to stay on after a release.
Basically you set "End" to false, when the voice is on (Envelope state 1) then you need a counter that starts when the envelope goes into release state (4)... when the counter reaches its goal you set "End" to true and the voices gets marked as done. A site note: the voice itself can still be running after you set "End" to true, in this case the "Env" primitive outputs the state 5 (which is undocumented).
Basically you set "End" to false, when the voice is on (Envelope state 1) then you need a counter that starts when the envelope goes into release state (4)... when the counter reaches its goal you set "End" to true and the voices gets marked as done. A site note: the voice itself can still be running after you set "End" to true, in this case the "Env" primitive outputs the state 5 (which is undocumented).
-
MyCo - Posts: 718
- Joined: Tue Jul 13, 2010 12:33 pm
- Location: Germany
Re: How to not release a stream?
I will try that thanks
-
jacob - Posts: 9
- Joined: Thu May 31, 2012 9:14 am
- Location: Germany
Re: How to not release a stream?
It seems to work so far
But now I need a trigger to my code module where it says whether the key is released - then I can start my envelope. Any ideas?
But now I need a trigger to my code module where it says whether the key is released - then I can start my envelope. Any ideas?
-
jacob - Posts: 9
- Joined: Thu May 31, 2012 9:14 am
- Location: Germany
Re: How to not release a stream?
Ok I read about the different states of the envelope now
State 4 is what I needed. I have it done. It works. Tough I guess I have to clean everything up now
Tough I don't know why my setup is much less modules and code than the R-module... And why should I need that retrigger thing...
thanks
State 4 is what I needed. I have it done. It works. Tough I guess I have to clean everything up now
Tough I don't know why my setup is much less modules and code than the R-module... And why should I need that retrigger thing...
thanks
Last edited by jacob on Wed Jul 10, 2013 6:04 pm, edited 1 time in total.
-
jacob - Posts: 9
- Joined: Thu May 31, 2012 9:14 am
- Location: Germany
Re: How to not release a stream?
MyCo wrote: "Env" primitive outputs the state 5 (which is undocumented).
about this, I after various experiments,
seems to correspond to the state when it reaches the maximum voices can be activated.
es.
max = 4 voices
. first active voice
. second active voice
. third active voice
. fourth active voice
now if you activate another voice the "ENV" primitive give the stage 5.
I use it together with the output envFastRelease,
you can make a further rapid ramp to kill the voice softly,
this prevents many times the annoying clicks.
it must be said that the various settings made to the primitive "Voices Midi to" determine the different behavior.
if you have found other uses let me know.
-
digitalwhitebyte - Posts: 106
- Joined: Sat Jul 31, 2010 10:20 am
Re: How to not release a stream?
digitalwhitebyte wrote:max = 4 voices
. first active voice
. second active voice
. third active voice
. fourth active voice
now if you activate another voice the "ENV" primitive give the stage 5.
No, what you read out is the the sum of all Env-States (5 * State1 = 5). State 5 is happening, when all voices are done, but the instance of the voice wasn't deleted. I think voice are managed in blocks, so when all voices are done when you are in a block, the voice still exists til a new audio buffer comes in.
-
MyCo - Posts: 718
- Joined: Tue Jul 13, 2010 12:33 pm
- Location: Germany
Re: How to not release a stream?
ok, but at the moment it is Stage5,
envFastRelease the output changes its state.
but as mentioned also depends on how the various parameters are set to "M to V"
primitive.
so its not like I think?
envFastRelease the output changes its state.
but as mentioned also depends on how the various parameters are set to "M to V"
primitive.
so its not like I think?
-
digitalwhitebyte - Posts: 106
- Joined: Sat Jul 31, 2010 10:20 am
17 posts
• Page 1 of 2 • 1, 2
Who is online
Users browsing this forum: No registered users and 63 guests