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/#28] 리듬뷰 / 단계별 이미지 에셋 설정 및 재생속도 조정 #29

Merged
merged 16 commits into from
Jul 31, 2024

Conversation

Marchbreeze
Copy link
Member

⛳️ Work Description

  • 단계 전환 시점 변경
  • 로딩뷰 로티 추가 및 다운로드 과정에서만 표시
  • 단계별 색상 변경
  • 단계별 로티 재생속도 조정

📸 Screenshot

  • 로티 재생속도
KakaoTalk_Video_2024-07-31-04-46-42.mp4
  • 로딩뷰
KakaoTalk_Video_2024-07-31-04-46-32.mp4

📢 To Reviewers

  • 우하하

Copy link
Member

@chattymin chattymin left a comment

Choose a reason for hiding this comment

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

그새 상남자가 됐네요
이남자... 데바 압수해야될지도?

Comment on lines +98 to +100
1 -> COLOR_PURPLE
2 -> COLOR_SKY
0 -> COLOR_GREEN
Copy link
Member

Choose a reason for hiding this comment

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

왜 순서가 0, 1, 2가 아니라 1,2,0 인거죠? ㅋㅋㅋㅋㅋㅋㅋㅋ

Copy link
Member Author

Choose a reason for hiding this comment

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

리듬이 1~9단계라 ... 나머지 120 이슈

ContextCompat.getDrawable(requireContext(), background)
tvRhythmLevel.apply {
text = getString(R.string.rhythm_tv_level, viewModel.rhythmLevel.value)
setTextColor(colorOf(getResource("${color}_50", COLOR)))
Copy link
Member

Choose a reason for hiding this comment

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

상남자식 데바 사용법 ㄷㄷ

Copy link
Member Author

Choose a reason for hiding this comment

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

하면서도 이게 맞나 했지만 신박하면 됐음 ㅋ

fun setRhythmLevel() {
isSubmitted = true
filename = "stempo_level_" + tempRhythmLevel.value.toString()
bpm = 40 + (tempRhythmLevel.value?.times(10) ?: 10)
Copy link
Member

Choose a reason for hiding this comment

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

위에있는 bpm 만드는 공식이랑 합쳐도 될것가타용~
공식이 다른 이유가 없다면 함수화를 해도 좋을거같습니담

Copy link
Member Author

Choose a reason for hiding this comment

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

#30에서 고쳐서 머지하겟삼

ivRhythmBg.setImageResource(getResource("img_rhythm_bg_$color", DRAWABLE))
lottieRhythmBg.apply {
setAnimation(getResource("stempo_rhythm_$color", RAW))
speed = viewModel.bpm / 120.00000000000F
Copy link
Member

Choose a reason for hiding this comment

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

120.000000000F ㅋㅋㅋㅋㅋㅋㅋㅋ
상수화 허실?

Copy link
Member Author

Choose a reason for hiding this comment

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

ㅋㅋㅋㅋㅋㅋ아 이거 bpm을 로티 속도로 나누니깐 130같은건 정확히 안나눠떨어져서 혹시 2분동안 재생되는 동안에 엇나갈까바 ... 대충 소수점 잔뜩 뒀는데 어칼까

[FEAT/#30] 리듬뷰 / 리듬 측정 결과 저장 API 구현
@Marchbreeze Marchbreeze merged commit 73207e2 into develop Jul 31, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[FEAT] 리듬뷰 / 단계별 이미지 에셋 설정 및 재생속도 조정
2 participants