Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

implemented delay #3

Merged
merged 1 commit into from
Jul 31, 2024
Merged

implemented delay #3

merged 1 commit into from
Jul 31, 2024

Conversation

tomoyanonymous
Copy link
Owner

Implemented delay.

In this implementation, user need to specify maximum delay size as a first argument, and the argument need to be a number literal to evaluate at compilation time.
In the future spec, some constant folding using multi-stage computation will be introduced.
For example, delay with feedback can be written like this.

fn fbdelay(input,time,fb,mix){
    input*mix + (1.0-mix) * delay(40001.0,(input+self*fb),time)
}

@tomoyanonymous tomoyanonymous merged commit fd6a316 into dev Jul 31, 2024
@yutannihilation yutannihilation mentioned this pull request Aug 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant