Skip to content

Add adsr_envelope #2859

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

Closed
wants to merge 7 commits into from
Closed

Add adsr_envelope #2859

wants to merge 7 commits into from

Conversation

mthrok
Copy link
Collaborator

@mthrok mthrok commented Nov 17, 2022

Add adsr_envelope op, which generates ADSR envelope

  • Supports generation of the envelope on GPU
  • Supports optional Hold
  • Supports polynomial decay


Args:
num_frames (int): The number of output frames.
attack (float): The relative *time* it takes to reach the maximum level from the start.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

similarly w/ other params

Suggested change
attack (float): The relative *time* it takes to reach the maximum level from the start.
attack (float, optional): The relative *time* it takes to reach the maximum level from the start. (Default: 0.0)

@facebook-github-bot
Copy link
Contributor

@mthrok has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.

@facebook-github-bot
Copy link
Contributor

@mthrok has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.

@facebook-github-bot
Copy link
Contributor

@mthrok has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.

@github-actions
Copy link

Hey @mthrok.
You merged this PR, but labels were not properly added. Please add a primary and secondary label (See https://github.com/pytorch/audio/blob/main/.github/process_commit.py)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants