Domi04151309 /
HomeApp
HomeApp is a small and easy to use smart home app with a simple framework.
73/100 healthLoading repository data…
fluxtah / repository
A small AP written in Kotlin to represent musical notes
A transparent discovery signal based on current public GitHub metadata.
This score does not audit code, security, maintainers, documentation quality, or suitability. Verify the repository and its current documentation before adoption.
This is a small API to represent musical notes written in Kotlin. A musical note is represented as Note. You can construct a note like this
val note = Note(C, 0)
Where the first part C comes from an enum PitchClass where all of the notes in the chromatic scale are represented.
C, Cs, D, Ds, E, F, Fs, G, Gs, A, As, B
Notes ending in s represent # where Cs would mean C#.
The API has an extension function that can turn any correctly formatted string into a Set (can be used as a chord), for instance:-
val chord:Set<Note> = "C0 D#0 E0".chord
With Set<Note> you can find the highest note
val highest = chord.upper()
val lowest = chord.lower()
Sometimes its convenient to know how many notes are between two given notes, like this:-
val numNotesBetween = between(Note(C, 0), Note(C, 1)) // 12 notes
val fifth = Note(PitchClass.C, 0) + 5
Now the fifth Note shall be G0
allprojects {
repositories {
...
maven { url 'https://jitpack.io' }
}
}
dependencies {
implementation 'com.github.fluxtah:music:0.6.0'
}
Copyright 2020 Ian Warwick
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
Selected from shared topics, language and repository description—not editorial ratings.
Domi04151309 /
HomeApp is a small and easy to use smart home app with a simple framework.
73/100 healthSyer10 /
Kotlin Multiplatform AppDirs is a small library which provides a path to the platform dependent special folder/directory.
55/100 health01satria /
Minimal Android launcher v2. Wallpaper first design, paged grid like iOS, built in prayer times, weather, habits, pomodoro & more. Lightweight. No ads. No bloat.
strmprivacy /
Our small contribution to your next API: these are the gRPC/Proto definitions STRM Privacy uses for our internal management APIs. It is a *push-only mirror* of our api-definitions repo we keep in GitLab, but we hope this serves as inspiration and/or a quick way for you to get started with gRPC yourself!
47/100 healthwaqas-334 /
A small shopping list app built using Android Studio and Kotlin, uses MVVM, ROOM and HILT.
31/100 healthA small application for working with the Github API, made as a practical task. GeekBrains, course of study: Popular libraries: RxJava 2, Dagger 2, Moxie.
34/100 health