@b2renger that soundfont player is awesome! I'm sorry I've been away for the past week, glad that you and @polyrhythmatic are chatting.
It sounds like you figured out branching, in general it's good to give specific projects their own branch so that when you submit a pull request with one feature, it only has that feature.
the onsetDetect class is not in the library yet (it's not added to app.js) ...I was sorta thinking that the peakdetect serves both purposes. Curious what you think?
Jason Sigal
@therewasaguy
talking with @polyrhythmatic about the PeakDetect class. It currently has no documented methods or properties other than .update()
Should we add .currentValue - can be used to determine if it is over the threshold ?
b2renger
@b2renger
At first I made two seperate classes because onset detection means a significant increase in the energy of a signal : onset was based on energy comparing previous energy to present energy, my peak class was just about checking if the signal amplitude was higher than a treshold (but that is covered by the p5.Amplitude class.
So yeah I think peakdetect is enough.
For .currentValue you mean a function to poll peakdetect and return true or false ? I could be useful for beginners but there's already a callback function, shouldn't we encourage people to use it ? What would be the use case of a .currentValue ?
Karl Hohn
@omnikrll
hi all
+1 to soundfont for sure
Jason Sigal
@therewasaguy
@b2renger I guess it would just be useful to expose the .currentValue of the PeakDetect object, because the ability to access that value can make the process more clear to users.
this is a lot ! not sure what to do with it but it's nice to know it's around :)
b2renger
@b2renger
@rev3rend great text too speech lib ! thanks for making this, it's really cool !
Jigar Gosar
@jigargosar
hey guys
is there a room for p5js.org?
processing/p5.js
Moscarda
@Moscarda
dumb question, but is ProcessingJS the same as p5.js ?
b2renger
@b2renger
@Moscarda not a dumb question at all : when you use p5.js you write in javascript either with text editor or with the dedicated editor whereas when you use processingJS you write java through the processing api and it get translated to js.
the result is close, but there is some small differencies beetween both. If you just want to push a graphic sketch to the web processingJS might a be a good call as you may not need to rewrite a lot of stuff. But if you want to start a web project (with access to the webcam, or if you want to program sound etc.)
p5.js translates the ideas behind processing to the web : you write in js, you have specific libraries written in js etc...
Moscarda
@Moscarda
@b2renger Thanks! I knew that the original Processing was a simplified Java—although many times I've heard it described as more intuitive and natural than a programming language (is that essentially what the term regex means?)—and Isn't the binary application a graphical IDE so beginners can learn by doing sketches visually, and integrate ther languages and art? I suppose you just meant people who can handcode do it that way. Given ProcessingJS' decade-long development, I'd heard a fair amount about that, but yeah I just though p5 was an abbreviation, I'd no idea it translates java to javascript. Does that happen live, or is it compiled beforehand? I have Daniel Shiffman's books and tutorials but haven't gotten very far. I spread myself too thin across too many disciplines and other projects.
Moscarda
@Moscarda
@b2renger@all if anyone is interested in some paid work, I can't afford much but I would like to make a processing sketch that illustrates the potentially infinite divisions the so-called identity goes through when confronted with change, internally as cognitive dissonance, externally as the behavioural masks we wear to be everything for everyone and nothing for no one. One idea is show a brain, cartoon style, propagating like cell division. I have a logotype (text) for whats gonna be my studio, Existential Design, but I don't have a graphic logo. Its hard to capture even a bit of that, but I'm over thinking. Send me a private message if interested.
Varun Ramakrishnan
@IdemoniVezulu
Can I ask any doubts I have about processing here?
Hi, is there a known issue with GetMasterVolume() not updating after masterVolume() is called?
Erik
@eriksigblad_twitter
hey all! we're hosting a fun online hackathon around audio and sound this upcoming weekend (oct 20-21). free to join and create, cash prizes to win 👋 https://hackday.co/
DIVYANSHU RAJ
@endurance21
hii everyone ! is this chat still active to ask question ?
@therewasaguy can we discuss here /
JomoPipi
@JomoPipi
Hi, where can I talk about the web audio api?
DIVYANSHU RAJ
@endurance21
@JomoPipi And i think this one is not active till now! 😶 However you can post the queries on discourse.processing.org good luck!
@therewasaguy is this thread still active?.
JomoPipi
@JomoPipi
Thx :)
Mahesh
@DeveloperChallenge
Hi @everyone, I'm new in p5sound, I have created an application and i was trying to load and play the next audio file. But browser is crashing. Have anyone faced the same issue? please let know the fixes
Austin Lee Slominski
@aceslowman
Hi all! I have a quick question, a number of tests fail inconsistently and it seems to be tied to Chrome's autoplay policy. Is there anything that has been done about that so far that I'm missing? Otherwise, would it be worthwhile to run the tests only after a user input / AudioContext.resume()?
JomoPipi
@JomoPipi
I would say it is worthwhile to test only after user input
Austin Lee Slominski
@aceslowman
Has anyone had issues with mousePressed() in the examples? Receives an error ‘cannot read property ‘_setProperty’ of undefined’, but works fine when swapped with mouseClicked()