Main siteMain site  ForumForum  ForumSearch  Private messageEmail contact  RegisterRegister  Log inLog in 
Topic: PCMAudioSource ADSR clarification
Reply to topic
Author Message
EMebane



Joined: Apr 15, 2019
Posts: 60

PostPosted: May 22, 2019 8:43 PM    Post subject: PCMAudioSource ADSR clarification

PCMAudioSource implements an ADSR envelope, but the Time Segments array only has 3 elements by default.
How are times set for each of the 4 ADSR times?

Does the Amplitude Targets correspond with each of the entries in the Time Segments array. There are only 2 Amplitude Targets by default so I'm not sure how the arrays map to one another.

Can a silence period be specified following each ASDR envelope to create pulse modulated audio? Would you use the Start and Stop at Zero checkbox for that? i.e., I want a 10 Hz pulsed audio with ASDR enveloped sound for the first part of the duty cycle and silence for the second part.
jarek



Joined: Oct 22, 2007
Posts: 713

PostPosted: May 22, 2019 9:33 PM    Post subject:

Here is a simple example how to use ADSR:

http://proatech.com/design/adsr.bpd
jarek



Joined: Oct 22, 2007
Posts: 713

PostPosted: May 22, 2019 9:36 PM    Post subject:

The PCMEnvelope element has not been really used much.

Maybe because it is easier and more flexible to create your desired waveform in external sound editor and play it in BioEra using SoundFileReader or similar. BioEra's sound generation or editing is very basic.
EMebane



Joined: Apr 15, 2019
Posts: 60

PostPosted: May 23, 2019 12:04 PM    Post subject:

Great, that's a helpful start. I am unable to get a consistent pulsing without sound glitches and inconsistent timing. Is there any more documentation about how that element works? Would you revise the sample to create 10 pulses per second for 10 seconds.
jarek



Joined: Oct 22, 2007
Posts: 713

PostPosted: May 23, 2019 12:54 PM    Post subject:

I will try to update the documentation.

It might be a good idea to try to use ExpressionEvaluator though. If you have any programming experience, then the ExpressionEvaluator can be the most powerful element because it gives you full flexibility of java language (which is similar to C/C++). And yes, it can be used for audio processing (I have no examples for that though). Many elements like PCMEnvelope are really suitable for only very specific functionality.
Reply to topic