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

Measure Activity for Sugarizer #709

Closed
abhishektanwar opened this issue Mar 17, 2020 · 9 comments
Closed

Measure Activity for Sugarizer #709

abhishektanwar opened this issue Mar 17, 2020 · 9 comments

Comments

@abhishektanwar
Copy link
Contributor

Developed the Measure activity of sugar for Sugarizer

@sarthak-g
Copy link
Contributor

sarthak-g commented Feb 1, 2021

@llaske , I'm working on this activity and soon to issue a PR. I'm using p5.js but in p5.js we can take no. of samples for frequency in power of 2 between 32 and 32768. Due to this, for zoom in and zoom out functionality, we have to use freq/div to be in multiplication of 2.
So, is it acceptable if we use 24 Hz/div and then on next increase it becomes 48(= 24*2) Hz/div ?

@llaske
Copy link
Owner

llaske commented Feb 1, 2021

@sarthak-g is a good idea to work on this activity. I'm precisely thinking to add the activity in the GSoC idea list.
Plus the current proposed implementation in #708 is not complete.
But in my mind, the major issue is not regarding frequency but regarding Android/iOS compatibility.
All activities must work on all Sugarizer platforms so the big question is how to capture sound into Cordova because it can't be captured directly by the web container. I'm thinking to use the Cordova Audio Input plugin but we should demonstrate that it could work and it could mean that usage of p5.js will be difficult.

@sarthak-g
Copy link
Contributor

sarthak-g commented Feb 3, 2021

@llaske , how can I test activity on android and ios i.e. what to setup and how to setup?

@llaske
Copy link
Owner

llaske commented Feb 3, 2021

@sarthak-g the easiest way to test on Android is to use Sugarizer APK builder

@sarthak-g
Copy link
Contributor

sarthak-g commented Feb 24, 2021

@llaske , I've tested Cordova Audio input plugin in android device and ios simulator. It's working great as standalone. I don't think we have to use p5.js as AnalyserNode in Javascript give both time domain and freq domain data.
Your views?

@llaske
Copy link
Owner

llaske commented Feb 24, 2021

@sarthak-g Good news!
I'm agree with you.
I guess @abhishektanwar used it because he retrieved an existing sample p5.js sample that match a part of Measure activity. But we don't need p5.js: simple is better.

@sarthak-g
Copy link
Contributor

sarthak-g commented Mar 10, 2021

@llaske , how do you test DC settings of measure activity. When I'm running measure activity (in sugar) on laptop, it doesn't show dc settings as displayed in below image:
measureActivityImage

In my laptop it is showing like below:
measureActivityImg

@llaske
Copy link
Owner

llaske commented Mar 13, 2021

Hmmm. Don't know. May be it's reserved to the XO laptop. I suggest you to ask the question on the sugar-devel mailing list.

@llaske
Copy link
Owner

llaske commented Dec 11, 2021

Fixed by #957

@llaske llaske closed this as completed Dec 11, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants