-
Notifications
You must be signed in to change notification settings - Fork 1
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
그새 상남자가 됐네요
이남자... 데바 압수해야될지도?
1 -> COLOR_PURPLE | ||
2 -> COLOR_SKY | ||
0 -> COLOR_GREEN |
There was a problem hiding this comment.
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 인거죠? ㅋㅋㅋㅋㅋㅋㅋㅋ
There was a problem hiding this comment.
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))) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
상남자식 데바 사용법 ㄷㄷ
There was a problem hiding this comment.
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) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
위에있는 bpm 만드는 공식이랑 합쳐도 될것가타용~
공식이 다른 이유가 없다면 함수화를 해도 좋을거같습니담
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
120.000000000F ㅋㅋㅋㅋㅋㅋㅋㅋ
상수화 허실?
There was a problem hiding this comment.
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 구현
⛳️ Work Description
📸 Screenshot
KakaoTalk_Video_2024-07-31-04-46-42.mp4
KakaoTalk_Video_2024-07-31-04-46-32.mp4
📢 To Reviewers