What is the (approximate) function for amplitude of a plucked string over time? Does it differ between string...











up vote
2
down vote

favorite












Impetus: I'm currently working on my first synthesizer, after many years of playing with them. I've just added an ADSR envelope to modify the gain, but for some reason it sounds wrong to me. I've asked around forums whether or not I'm supposed to apply the envelope to the amplitude linearly, and it would appear that's the normal way to do it. So my guess here is that experience with acoustic instruments has conditioned me to hear drop off differently. In order to prove/disprove this theory, I would like an answer to the following...



Question: What is the (approximate) function for amplitude of a plucked string over time? Is it linear, or curved? And, if it's curved, is that curvature a product of the material, tension, or other variables?



Detailed Explanation: In this context, what I mean by "function for amplitude" is the value by which a simple wave would be multiplied over time to create a reasonably approximate rate of fade out. I do realize the actual function of amplitude is probably a very complex physics problem, and while I think it would be interesting to cite some sources in that vein, it is not my intention to create a true to physics simulation of a string.










share|improve this question


























    up vote
    2
    down vote

    favorite












    Impetus: I'm currently working on my first synthesizer, after many years of playing with them. I've just added an ADSR envelope to modify the gain, but for some reason it sounds wrong to me. I've asked around forums whether or not I'm supposed to apply the envelope to the amplitude linearly, and it would appear that's the normal way to do it. So my guess here is that experience with acoustic instruments has conditioned me to hear drop off differently. In order to prove/disprove this theory, I would like an answer to the following...



    Question: What is the (approximate) function for amplitude of a plucked string over time? Is it linear, or curved? And, if it's curved, is that curvature a product of the material, tension, or other variables?



    Detailed Explanation: In this context, what I mean by "function for amplitude" is the value by which a simple wave would be multiplied over time to create a reasonably approximate rate of fade out. I do realize the actual function of amplitude is probably a very complex physics problem, and while I think it would be interesting to cite some sources in that vein, it is not my intention to create a true to physics simulation of a string.










    share|improve this question
























      up vote
      2
      down vote

      favorite









      up vote
      2
      down vote

      favorite











      Impetus: I'm currently working on my first synthesizer, after many years of playing with them. I've just added an ADSR envelope to modify the gain, but for some reason it sounds wrong to me. I've asked around forums whether or not I'm supposed to apply the envelope to the amplitude linearly, and it would appear that's the normal way to do it. So my guess here is that experience with acoustic instruments has conditioned me to hear drop off differently. In order to prove/disprove this theory, I would like an answer to the following...



      Question: What is the (approximate) function for amplitude of a plucked string over time? Is it linear, or curved? And, if it's curved, is that curvature a product of the material, tension, or other variables?



      Detailed Explanation: In this context, what I mean by "function for amplitude" is the value by which a simple wave would be multiplied over time to create a reasonably approximate rate of fade out. I do realize the actual function of amplitude is probably a very complex physics problem, and while I think it would be interesting to cite some sources in that vein, it is not my intention to create a true to physics simulation of a string.










      share|improve this question













      Impetus: I'm currently working on my first synthesizer, after many years of playing with them. I've just added an ADSR envelope to modify the gain, but for some reason it sounds wrong to me. I've asked around forums whether or not I'm supposed to apply the envelope to the amplitude linearly, and it would appear that's the normal way to do it. So my guess here is that experience with acoustic instruments has conditioned me to hear drop off differently. In order to prove/disprove this theory, I would like an answer to the following...



      Question: What is the (approximate) function for amplitude of a plucked string over time? Is it linear, or curved? And, if it's curved, is that curvature a product of the material, tension, or other variables?



      Detailed Explanation: In this context, what I mean by "function for amplitude" is the value by which a simple wave would be multiplied over time to create a reasonably approximate rate of fade out. I do realize the actual function of amplitude is probably a very complex physics problem, and while I think it would be interesting to cite some sources in that vein, it is not my intention to create a true to physics simulation of a string.







      sound amplitude acoustics






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked 2 hours ago









      Seph Reed

      158111




      158111






















          2 Answers
          2






          active

          oldest

          votes

















          up vote
          2
          down vote



          accepted










          An exponentially decaying envelope $aexp(-b x)$ is a good choice, and is used for example in vintage Yamaha FM synthesizers. It has the favorable property that over any constant length time interval, by the end of the interval the envelope has decayed to a constant fraction of what it was at the beginning of the interval. Damped oscillation (with some frequency-dependent energy loss) of a string is largely sinusoidal after enough time has passed, and if the oscillation is small enough that the system can be considered linear, then the amplitude loss per time unit will be proportional to the amplitude, giving an exponentially decaying envelope. Closer to the attack these assumptions do not hold.



          In the simple exponential decay model, the choice of material could only manifest itself in the decay rate constant $b.$ If it would affect also $a,$ the player could adjust the plucking strength to compensate, nullifying this effect.



          Exponential decay of the amplitude is linear decay in dB scale.






          share|improve this answer























          • Do you have any generalizations about the effects of materials on the decay rate b? Just curious, great answer btw.
            – Seph Reed
            33 mins ago


















          up vote
          1
          down vote













          I found a way to answer my own question. By looking at various .wav's of samples of string plucks (https://freesound.org/search/?q=guitar+string), it would appear that amplitude drop off is not linear, which would explain why my adsr release sounds so wrong!



          I still can't tell if a harder string would make this curve sharper or more linear, but my guess is sharper. In terms of what I can hear/see, it's very hard to tell the difference between a sharper curve and a shorter release time.



          Still, to answer two parts of my own question:




          1. The approximate curve appears to be in the range of reciprocal functions (ie 1/(x+1) or 1/(2^x))

          2. It is not linear

          3. I have yet to answer this question, but my theory is that the curvature is fairly similar amongst materials, else there would be a material with something close to a linear drop off and it wouldn't sound so unnatural.






          share|improve this answer

















          • 1




            Note that $1/2^x = 2^{-x} = exp(-bx),$ with $b = ln(2)$, is exponential decay.
            – Olli Niemitalo
            1 hour ago













          Your Answer





          StackExchange.ifUsing("editor", function () {
          return StackExchange.using("mathjaxEditing", function () {
          StackExchange.MarkdownEditor.creationCallbacks.add(function (editor, postfix) {
          StackExchange.mathjaxEditing.prepareWmdForMathJax(editor, postfix, [["$", "$"], ["\\(","\\)"]]);
          });
          });
          }, "mathjax-editing");

          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "295"
          };
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function() {
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled) {
          StackExchange.using("snippets", function() {
          createEditor();
          });
          }
          else {
          createEditor();
          }
          });

          function createEditor() {
          StackExchange.prepareEditor({
          heartbeatType: 'answer',
          convertImagesToLinks: false,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: null,
          bindNavPrevention: true,
          postfix: "",
          imageUploader: {
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          },
          noCode: true, onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          });


          }
          });














          draft saved

          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fdsp.stackexchange.com%2fquestions%2f54176%2fwhat-is-the-approximate-function-for-amplitude-of-a-plucked-string-over-time%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          2 Answers
          2






          active

          oldest

          votes








          2 Answers
          2






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes








          up vote
          2
          down vote



          accepted










          An exponentially decaying envelope $aexp(-b x)$ is a good choice, and is used for example in vintage Yamaha FM synthesizers. It has the favorable property that over any constant length time interval, by the end of the interval the envelope has decayed to a constant fraction of what it was at the beginning of the interval. Damped oscillation (with some frequency-dependent energy loss) of a string is largely sinusoidal after enough time has passed, and if the oscillation is small enough that the system can be considered linear, then the amplitude loss per time unit will be proportional to the amplitude, giving an exponentially decaying envelope. Closer to the attack these assumptions do not hold.



          In the simple exponential decay model, the choice of material could only manifest itself in the decay rate constant $b.$ If it would affect also $a,$ the player could adjust the plucking strength to compensate, nullifying this effect.



          Exponential decay of the amplitude is linear decay in dB scale.






          share|improve this answer























          • Do you have any generalizations about the effects of materials on the decay rate b? Just curious, great answer btw.
            – Seph Reed
            33 mins ago















          up vote
          2
          down vote



          accepted










          An exponentially decaying envelope $aexp(-b x)$ is a good choice, and is used for example in vintage Yamaha FM synthesizers. It has the favorable property that over any constant length time interval, by the end of the interval the envelope has decayed to a constant fraction of what it was at the beginning of the interval. Damped oscillation (with some frequency-dependent energy loss) of a string is largely sinusoidal after enough time has passed, and if the oscillation is small enough that the system can be considered linear, then the amplitude loss per time unit will be proportional to the amplitude, giving an exponentially decaying envelope. Closer to the attack these assumptions do not hold.



          In the simple exponential decay model, the choice of material could only manifest itself in the decay rate constant $b.$ If it would affect also $a,$ the player could adjust the plucking strength to compensate, nullifying this effect.



          Exponential decay of the amplitude is linear decay in dB scale.






          share|improve this answer























          • Do you have any generalizations about the effects of materials on the decay rate b? Just curious, great answer btw.
            – Seph Reed
            33 mins ago













          up vote
          2
          down vote



          accepted







          up vote
          2
          down vote



          accepted






          An exponentially decaying envelope $aexp(-b x)$ is a good choice, and is used for example in vintage Yamaha FM synthesizers. It has the favorable property that over any constant length time interval, by the end of the interval the envelope has decayed to a constant fraction of what it was at the beginning of the interval. Damped oscillation (with some frequency-dependent energy loss) of a string is largely sinusoidal after enough time has passed, and if the oscillation is small enough that the system can be considered linear, then the amplitude loss per time unit will be proportional to the amplitude, giving an exponentially decaying envelope. Closer to the attack these assumptions do not hold.



          In the simple exponential decay model, the choice of material could only manifest itself in the decay rate constant $b.$ If it would affect also $a,$ the player could adjust the plucking strength to compensate, nullifying this effect.



          Exponential decay of the amplitude is linear decay in dB scale.






          share|improve this answer














          An exponentially decaying envelope $aexp(-b x)$ is a good choice, and is used for example in vintage Yamaha FM synthesizers. It has the favorable property that over any constant length time interval, by the end of the interval the envelope has decayed to a constant fraction of what it was at the beginning of the interval. Damped oscillation (with some frequency-dependent energy loss) of a string is largely sinusoidal after enough time has passed, and if the oscillation is small enough that the system can be considered linear, then the amplitude loss per time unit will be proportional to the amplitude, giving an exponentially decaying envelope. Closer to the attack these assumptions do not hold.



          In the simple exponential decay model, the choice of material could only manifest itself in the decay rate constant $b.$ If it would affect also $a,$ the player could adjust the plucking strength to compensate, nullifying this effect.



          Exponential decay of the amplitude is linear decay in dB scale.







          share|improve this answer














          share|improve this answer



          share|improve this answer








          edited 1 hour ago

























          answered 1 hour ago









          Olli Niemitalo

          7,5421233




          7,5421233












          • Do you have any generalizations about the effects of materials on the decay rate b? Just curious, great answer btw.
            – Seph Reed
            33 mins ago


















          • Do you have any generalizations about the effects of materials on the decay rate b? Just curious, great answer btw.
            – Seph Reed
            33 mins ago
















          Do you have any generalizations about the effects of materials on the decay rate b? Just curious, great answer btw.
          – Seph Reed
          33 mins ago




          Do you have any generalizations about the effects of materials on the decay rate b? Just curious, great answer btw.
          – Seph Reed
          33 mins ago










          up vote
          1
          down vote













          I found a way to answer my own question. By looking at various .wav's of samples of string plucks (https://freesound.org/search/?q=guitar+string), it would appear that amplitude drop off is not linear, which would explain why my adsr release sounds so wrong!



          I still can't tell if a harder string would make this curve sharper or more linear, but my guess is sharper. In terms of what I can hear/see, it's very hard to tell the difference between a sharper curve and a shorter release time.



          Still, to answer two parts of my own question:




          1. The approximate curve appears to be in the range of reciprocal functions (ie 1/(x+1) or 1/(2^x))

          2. It is not linear

          3. I have yet to answer this question, but my theory is that the curvature is fairly similar amongst materials, else there would be a material with something close to a linear drop off and it wouldn't sound so unnatural.






          share|improve this answer

















          • 1




            Note that $1/2^x = 2^{-x} = exp(-bx),$ with $b = ln(2)$, is exponential decay.
            – Olli Niemitalo
            1 hour ago

















          up vote
          1
          down vote













          I found a way to answer my own question. By looking at various .wav's of samples of string plucks (https://freesound.org/search/?q=guitar+string), it would appear that amplitude drop off is not linear, which would explain why my adsr release sounds so wrong!



          I still can't tell if a harder string would make this curve sharper or more linear, but my guess is sharper. In terms of what I can hear/see, it's very hard to tell the difference between a sharper curve and a shorter release time.



          Still, to answer two parts of my own question:




          1. The approximate curve appears to be in the range of reciprocal functions (ie 1/(x+1) or 1/(2^x))

          2. It is not linear

          3. I have yet to answer this question, but my theory is that the curvature is fairly similar amongst materials, else there would be a material with something close to a linear drop off and it wouldn't sound so unnatural.






          share|improve this answer

















          • 1




            Note that $1/2^x = 2^{-x} = exp(-bx),$ with $b = ln(2)$, is exponential decay.
            – Olli Niemitalo
            1 hour ago















          up vote
          1
          down vote










          up vote
          1
          down vote









          I found a way to answer my own question. By looking at various .wav's of samples of string plucks (https://freesound.org/search/?q=guitar+string), it would appear that amplitude drop off is not linear, which would explain why my adsr release sounds so wrong!



          I still can't tell if a harder string would make this curve sharper or more linear, but my guess is sharper. In terms of what I can hear/see, it's very hard to tell the difference between a sharper curve and a shorter release time.



          Still, to answer two parts of my own question:




          1. The approximate curve appears to be in the range of reciprocal functions (ie 1/(x+1) or 1/(2^x))

          2. It is not linear

          3. I have yet to answer this question, but my theory is that the curvature is fairly similar amongst materials, else there would be a material with something close to a linear drop off and it wouldn't sound so unnatural.






          share|improve this answer












          I found a way to answer my own question. By looking at various .wav's of samples of string plucks (https://freesound.org/search/?q=guitar+string), it would appear that amplitude drop off is not linear, which would explain why my adsr release sounds so wrong!



          I still can't tell if a harder string would make this curve sharper or more linear, but my guess is sharper. In terms of what I can hear/see, it's very hard to tell the difference between a sharper curve and a shorter release time.



          Still, to answer two parts of my own question:




          1. The approximate curve appears to be in the range of reciprocal functions (ie 1/(x+1) or 1/(2^x))

          2. It is not linear

          3. I have yet to answer this question, but my theory is that the curvature is fairly similar amongst materials, else there would be a material with something close to a linear drop off and it wouldn't sound so unnatural.







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered 1 hour ago









          Seph Reed

          158111




          158111








          • 1




            Note that $1/2^x = 2^{-x} = exp(-bx),$ with $b = ln(2)$, is exponential decay.
            – Olli Niemitalo
            1 hour ago
















          • 1




            Note that $1/2^x = 2^{-x} = exp(-bx),$ with $b = ln(2)$, is exponential decay.
            – Olli Niemitalo
            1 hour ago










          1




          1




          Note that $1/2^x = 2^{-x} = exp(-bx),$ with $b = ln(2)$, is exponential decay.
          – Olli Niemitalo
          1 hour ago






          Note that $1/2^x = 2^{-x} = exp(-bx),$ with $b = ln(2)$, is exponential decay.
          – Olli Niemitalo
          1 hour ago




















          draft saved

          draft discarded




















































          Thanks for contributing an answer to Signal Processing Stack Exchange!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid



          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.


          Use MathJax to format equations. MathJax reference.


          To learn more, see our tips on writing great answers.





          Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


          Please pay close attention to the following guidance:


          • Please be sure to answer the question. Provide details and share your research!

          But avoid



          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.


          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fdsp.stackexchange.com%2fquestions%2f54176%2fwhat-is-the-approximate-function-for-amplitude-of-a-plucked-string-over-time%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          Quarter-circle Tiles

          build a pushdown automaton that recognizes the reverse language of a given pushdown automaton?

          Mont Emei