Synth Forum

Notifications
Clear all

Attack time?

12 Posts
3 Users
0 Likes
248 Views
Posts: 263
Reputable Member
Topic starter
 

I would like to create some raser fx performance.
Attack, Decay etc there are has MIDI signs 0-127.
What is the time is this? Is it depend of bar or bpm?

I want make pitch and filter envelope... ADSR envelope.

 
Posted : 02/07/2023 9:32 pm
Posts: 779
Prominent Member
 

Attack, Decay etc there are has MIDI signs 0-127.
What is the time is this? Is it depend of bar or bpm?

Sorry - but there is no simple calculation or formula for this.

Jason did some extensive research some time ago and you can find his results here:
https://www.yamahasynth.com/forum/release-time-duration#reply-16748
He provides links in his replies in that thread to the GIT source code that explains the details.

GIT has the sample code if you want to read through it. I suggest you start with these
https://github.com/google/music-synthesizer-for-android/blob/master/wiki/Dx7Envelope.wiki

https://github.com/google/music-synthesizer-for-android/blob/master/app/src/main/jni/pitchenv.cc

private:
static int unit_;
int rates_[4];
int levels_[4];
int32_t level_;

There is an array for rate and level with 4 values corresponding to ADSR.
https://github.com/google/music-synthesizer-for-android/blob/master/app/src/main/jni/pitchenv.cc

ratetab array

1, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 11, 11,
12, 12, 13, 13, 14, 14, 15, 16, 16, 17, 18, 18, 19, 20, 21, 22, 23, 24, 25, 26,
27, 28, 30, 31, 33, 34, 36, 37, 38, 39, 41, 42, 44, 46, 47, 49, 51, 53, 54, 56,
58, 60, 62, 64, 66, 68, 70, 72, 74, 76, 79, 82, 85, 88, 91, 94, 98, 102, 106, 110,
115, 120, 125, 130, 135, 141, 147, 153, 159, 165, 171, 178, 185, 193, 202, 211, 232, 243, 254, 255
};

pitchtab array

-128, -116, -104, -95, -85, -76, -68, -61, -56, -52,
-49, -46, -43, -41, -39, -37, -35, -33, -32, -31,
-30, -29, -28, -27, -26, -25, -24, -23, -22, -21,
-20, -19, -18, -17, -16, -15, -14, -13, -12, -11,
-10, -9, -8, -7, -6, -5, -4, -3, -2, -1,
0, 1, 2, 3, 4, 5, 6, 7, 8, 9,
10, 11, 12, 13, 14, 15, 16, 17, 18, 19,
20, 21, 22, 23, 24, 25, 26, 27, 28, 29,
30, 31, 32, 33, 34, 35, 38, 40, 43, 46,
49, 53, 58, 65, 73, 82, 92, 103, 115, 127

The 'ratetab' array shows how the 0-99 values are mapped to a value from 1 to 255.

The 'pitchtab' array shows 0-99 being mapped to -128 to 127

Each of the 4 ADSR arrays has its own set of values. The first article starts the explanation of how the values
are accessed and used to compute the transition from A to D to S to R and how 'keydown' is taken into account.

This paper by Dr. John Chowning is pretty much what started it all.
http://people.ece.cornell.edu/land/courses/ece4760/Math/GCC644/FM_synth/Chowning.pdf
The Synthesis of Complex Audio Spectra by Means of Frequency Modulation

 
Posted : 02/07/2023 10:13 pm
Jason
Posts: 7919
Illustrious Member
 

Attack time and other timing parameters of the envelope generators are not related or based on tempo.

 
Posted : 03/07/2023 3:54 pm
Posts: 263
Reputable Member
Topic starter
 

Thanks!

 
Posted : 03/07/2023 6:55 pm
Posts: 779
Prominent Member
 

I want make pitch and filter envelope... ADSR envelope.

Please provide the specifics of what you want to do. Just saying you want to make an envelope doesn't provide any info. You get an envelope automatically - so you don't need to create one unless you want to create a specific pattern.

What kind of envelope? AWM2, FM-X, DRUM?
What area of the keyboard do you want affected? Low notes? High notes? what range?
Do you want the transition speed (from A to D to S to R) to vary based on the notes being played?
What kind of ADSR pattern are you wanting to create?

The more info you provide the easier it will be to help.

 
Posted : 03/07/2023 7:17 pm
Posts: 779
Prominent Member
 

What is the time is this? Is it depend of bar or bpm?

No - tempo/bpm is all abut when the NEXT event happens

Envelopes are all about THIS event:
1. Keydown - the start of the envelope
2. Keyup - the transition from Sustain to Release
3. The duration of the release

Jason provided results of some of his experimentation trying to relate the various envelope time components to each other in this reply:
https://www.yamahasynth.com/forum/decay-times-not-equal-release-times-remedies#reply-116143

 
Posted : 03/07/2023 8:59 pm
Posts: 263
Reputable Member
Topic starter
 

Thank you, Andrew!

 
Posted : 04/07/2023 8:25 pm
Posts: 263
Reputable Member
Topic starter
 

Hi! I make two UserArp. UserArp1 on time 4/4 and UserArp2 on 3/4 count.
Is I need something spetial to assign it? In Performance need some spetial?
I play it good, no problem in live play.
Nothing need to assign above?
🙂

Has Performance himself time signture? I not use pattern.. and scene

 
Posted : 04/07/2023 8:30 pm
Posts: 779
Prominent Member
 

Hi! I make two UserArp. UserArp1 on time 4/4 and UserArp2 on 3/4 count.
Is I need something spetial to assign it? In Performance need some spetial?
I play it good, no problem in live play.
Nothing need to assign above?
🙂

Has Performance himself time signture? I not use pattern.. and scene

I suggest you create new threads for your new questions. Those new questions have nothing to do with 'attack' which is what this thread is about.

People that may be able to help will first look at the subject to decide if they are interested. So some people will never read to the end of this thread and notice you have now ask 2 or 3 new questions.

It is also helpful if you first explain WHAT you are wanting to do to give some context to your questions.

We want to help you if we can but it makes it a lot harder when everything is jumbled together with no explanation.

 
Posted : 04/07/2023 8:48 pm
Posts: 263
Reputable Member
Topic starter
 

I think this is not such an important question to open a topic. Although it may be

 
Posted : 04/07/2023 8:50 pm
Posts: 779
Prominent Member
 

I think this is not such an important question to open a topic.

I don't understand why you are asking the questions if you don't really want answers?

 
Posted : 04/07/2023 9:12 pm
Posts: 263
Reputable Member
Topic starter
 

I want answers. Too many questions every day. 🙂

BTW Has scene to change bpm ? Scene 1 140bpm, Scene 2 180bpm? I not found It.

 
Posted : 04/07/2023 9:52 pm
Share:

© 2024 Yamaha Corporation of America and Yamaha Corporation. All rights reserved.    Terms of Use | Privacy Policy | Contact Us