8000 GitHub - Zekony/ElectroPiano: Small app that can play simple sounds. I created this app because i wanted to create something similar to electric piano.
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Small app that can play simple sounds. I created this app because i wanted to create something similar to electric piano.

Notifications You must be signed in to change notification settings

Zekony/ElectroPiano

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ElectroPiano

Small app that can play simple sounds. I created this app because i wanted to create something similar to electric piano.

Technologies used in this project

  • Language: Kotlin
  • UI: Jetpack Compose
  • Threads
  • Koin
  • android.media

Content

In my app, users can click on different buttons and change amplification to control the sound buttons create.

How it works

I have a list of many different freqencies, each button uses its own. Then a thread is started for each button, which lives as long as button is pressed. Inside this thread i use AudioTrack from android.media to create sound. On the screen there is a custom circular slider to change amplification of a sound which is used in a thread as a parameter. In the button modifier code pointerInput and awaitEachGesture funtions are used to recognize gestures and understand when sound should stop.

About

Small app that can play simple sounds. I created this app because i wanted to create something similar to electric piano.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

0