jump() on a paused sound throws error
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 66/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Active
- Tech stack
- javascript
- Domain
- backend
Research direction
Start by locating the jump() implementation and its tests, then trace how paused playback rate affects the end-time calculation. Reproduce the error with the linked p5.js sketch. Done when calling jump() on a paused sound no longer throws and behaves as intended for the playhead.
Written by the indexing model from the issue text.
Description
jump() on a paused sound throws error "RangeError: Value must be within [0, Infinity], got: NaN"
The error may be “Invalid argument to cancelAndHoldAtTime: null”. A paused sound is really playing at rate 0, so the end-time calculation divides by zero and gives null?
Either guard against rate 0 or make jump() just move the playhead while paused.
- Dominant language
- JavaScript
- Stars
- 60
- Forks
- 28
- Avg merge
- 8h 53m
- Merged PRs (30d)
- 2
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from processing/p5.sound.js
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
processing/p5.sound.js#131 · 1 comment ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
processing/p5.sound.js#130 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
processing/p5.sound.js#127 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
processing/p5.sound.js#113 · 1 comment · 1 reaction ·
-
p5.Gain.amp() throws this.node.volume is undefinedPossibly taken @leocb claimed this 8 days ago. Open
Difficulty 3/5 1-2 days Newbie friendliness 25/100
processing/p5.sound.js#128 ·
All issues in processing/p5.sound.js
Similar issues
-
Difficulty 1/5 1-3 hours Newbie friendliness 87/100
OWASP/CheatSheetSeries#2905 ·
Maintainers usually reply within 1 day
-
desktop enhancement P2
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
Maintainers usually reply within 1 day
-
Difficulty 1/5 Under an hour Newbie friendliness 74/100
AllTheMods/ATM10-Aeronautics#159 ·
Maintainers usually reply within 6 days
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
ComposioHQ/composio#5249 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
zilliztech/memsearch#838 ·
Maintainers usually reply within 1 day