Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 507083
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T06:46:04+00:00 2026-05-13T06:46:04+00:00

I’m trying to implement this extenstion of the Karplus-Strong plucked string algorithm, but I

  • 0

I’m trying to implement this extenstion of the Karplus-Strong plucked string algorithm, but I don’t understand the notation there used. Maybe it will take years of study, but maybe it won’t – maybe you can tell me.

I think the equations below are in the frequency domain or something. Just starting with the first equation, Hp(z), the pick direction lowpass filter. For one direction you use p = 0, for the other, perhaps 0.9. This boils down to to 1 in the first case, or 0.1 / (1 – 0.9 z-1) in the second.

alt text http://www.dsprelated.com/josimages/pasp/img902.png

Now, I feel like this might mean, in coding terms, something towards:

H_p(float* input, int time) {
  if (downpick) {
    return input[time];
  } else {
    return some_function_of(input[t], input[t-1]);
  }
}

Can someone give me a hint? Or is this futile and I really need all the DSP background to implement this? I was a mathematician once…but this ain’t my domain.

  • 1 1 Answer
  • 1 View
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-13T06:46:04+00:00Added an answer on May 13, 2026 at 6:46 am

    So the z-1 just means a one-unit delay.

    Let’s take Hp = (1-p)/(1-pz-1).

    If we follow the convention of “x” for input and “y” for output, the transfer function H = y/x (=output/input)

    so we get y/x = (1-p)/(1-pz-1)

    or (1-p)x = (1-pz-1)y

    (1-p)x[n] = y[n] – py[n-1]

    or: y[n] = py[n-1] + (1-p)x[n]

    In C code this can be implemented

    y += (1-p)*(x-y);
    

    without any additional state beyond using the output “y” as a state variable itself. Or you can go for the more literal approach:

    y_delayed_1 = y;
    y = p*y_delayed_1 + (1-p)*x;
    

    As far as the other equations go, they’re all typical equations except for that second equation which looks like maybe it’s a way of selecting either HΒ = 1-z-1 OR 1-z-2. (what’s N?)

    The filters are kind of vague and they’ll be tougher for you to deal with unless you can find some prepackaged filters. In general they’re of the form

    H = H0*(1+az-1+bz-2+cz-3…)/(1+rz-1+sz-2+tz-3…)

    and all you do is write down H = y/x, cross multiply to get

    H0 * (1+az-1+bz-2+cz-3…) * x = (1+rz-1+sz-2+tz-3…) * y

    and then isolate “y” by itself, making the output “y” a linear function of various delays of itself and of the input.

    But designing filters (picking the a,b,c,etc.) is tougher than implementing them, for the most part.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
I am trying to understand how to use SyndicationItem to display feed which is
I want to count how many characters a certain string has in PHP, but
For some reason, after submitting a string like this Jack’s Spindle from a text
I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
I know there's a lot of other questions out there that deal with this
Does anyone know how can I replace this 2 symbol below from the string
I'm trying to use string.replace('’','') to replace the dreaded weird single-quote character: ’ (aka
Basically, what I'm trying to create is a page of div tags, each has
link Im having trouble converting the html entites into html characters, (&# 8217;) i

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.