question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

p5.Signal question --> remove it

See original GitHub issue

in the codebase https://github.com/processing/p5.js-sound/blob/e5a58ba1e3efa6f65c60da7a4513178fffa2df32/src/signal.js#L82

shouldn’t it be p5.Signal.prototype.fade = Signal.prototype.linearRampToValueAtTime; otherwise we are adding the fade method to the tone.js Signal API , seems bit confusing to me 😕

Issue Analytics

  • State:open
  • Created 3 years ago
  • Comments:10 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
therewasaguycommented, May 7, 2020

great find @endurance21. I think that p5.SignalAdd, as well as p5.Signal, are undefined properties of p5…yikes! That’s a good thing as we don’t need to check for instances of p5.Signal. If this means some functionality is broken, we should make a note of that and revive it. If it’s beyond the scope of the initial PR (and something that has not been working for a while) we can make that its own issue/PR.

By the way, the screenshots are useful, but I’ll find it easier to review if you can paste a link to the lines that you want to reference so that I can view the full context.

https://github.com/processing/p5.js-sound/blob/master/src/pulse.js#L109-L114

^ In this case, seems like we can replace the internal usage with a Tone Signal

1reaction
therewasaguycommented, May 6, 2020

That seems to be the thought I had in 2014, but we haven’t had requests for it, so I don’t think it’s a feature we should add. Adding features also means more maintenance and makes the library more confusing when people look at the documentation. If anything, I think we should be removing features.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Project 5: Spectral Processing
1. Short Questions · What is the relationship between the amplitude of a signal and its perceived loudness, for any given frequency? Linear...
Read more >
Solved P5) A CT signal has a cut off frequency of 200 Hz. | Chegg.com
Question : P5) A CT signal has a cut off frequency of 200 Hz. This signal is ... What cutoff frequency (in Hz)...
Read more >
p5 Documentation - Read the Docs
p5 is a native Python port of the Processing API by Abhik Pal, Manindra Mohrarna, and con- · tributors. Processing “is a flexible...
Read more >
Getting Started with p5.js - UNCW
Two years ago, Ben and Casey approached me with a question: what would Processing look like if ... Delete the text from the...
Read more >
How to Fix PS5 Won't Turn On or No Signal (Best Tutorial)
Do you want to know how to fix your PS5 won't start or turn on? This is very easy to do. To fix...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found