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

feat: Add wave generator preview #1959

Merged
merged 1 commit into from
Aug 29, 2019

Conversation

neel1998
Copy link
Member

@neel1998 neel1998 commented Aug 26, 2019

Fixes #1938

Changes: wave generator preview working fine

Screenshot/s for the changes:

Analog Mode
20190828_200338

Digital Mode
20190828_200419

Checklist: [Please tick following check boxes with [x] if the respective task is completed]

  • I have used resources from strings.xml, dimens.xml and colors.xml without hard-coding them
  • No modifications done at the end of resource files strings.xml, dimens.xml or colors.xml
  • I have reformatted code in every file included in this PR [CTRL+ALT+L]
  • My code does not contain any extra lines or extra spaces
  • I have requested reviews from other members

APK for testing:
wave_gen_preview.zip

@CloudyPadmal @mariobehling I have added the preview feature to the wave generator UI. It is really looking good. Please review. I have made a getSamplePoints() function which I will use again to produce sound for different waves for the issue #1937

@neel1998 neel1998 added the In Progress Developer is working on the problem label Aug 26, 2019
@neel1998 neel1998 self-assigned this Aug 26, 2019
@neel1998 neel1998 added Status: Review Required Requested reviews from peers and maintainers and removed In Progress Developer is working on the problem labels Aug 28, 2019
@neel1998
Copy link
Member Author

fixing codacy in a minute...

@CloudyPadmal
Copy link
Collaborator

Nice. For phase, would be better if we can show a reference waveform and with respect to that the changes.

@neel1998
Copy link
Member Author

Oh okay. I can do that.. i will keep the reference wave with zero phase and grey color. Sounds right?

@CloudyPadmal
Copy link
Collaborator

Yes. And for vertical axis labels, make them 0V at the bottom and 5V at top

@neel1998
Copy link
Member Author

Yes. And for vertical axis labels, make them 0V at the bottom and 5V at top

I was thinking of removing the y axis labels. Since we can change the amplitude in oscilloscope. These labels might confuse the users

@neel1998
Copy link
Member Author

neel1998 commented Aug 28, 2019

@CloudyPadmal I have added reference wave as you suggested... Have updated GIFs and apk.

Copy link
Collaborator

@CloudyPadmal CloudyPadmal left a comment

Choose a reason for hiding this comment

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

Nice 👍

@neel1998
Copy link
Member Author

@mariobehling please review and merge this. I need a function implemented in this PR to add sound feature in wave generator. Thanks

@CloudyPadmal CloudyPadmal merged commit 303dff8 into fossasia:development Aug 29, 2019
@CloudyPadmal CloudyPadmal added Enhancement Improvement to an existing feature and removed Status: Review Required Requested reviews from peers and maintainers labels Aug 29, 2019
makoteq pushed a commit to makoteq/pslab-android that referenced this pull request Jan 16, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement Improvement to an existing feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Wave Generator: Add visualization of wave
2 participants