{"id":13434265,"url":"https://github.com/fsynthlib/fsynth","last_synced_at":"2025-03-17T14:31:03.805Z","repository":{"id":45203509,"uuid":"136238161","full_name":"fsynthlib/fsynth","owner":"fsynthlib","description":"Music synthesizer, written for fun and to learn stuff","archived":false,"fork":false,"pushed_at":"2021-12-31T14:15:46.000Z","size":2332,"stargazers_count":11,"open_issues_count":18,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-10T18:05:38.805Z","etag":null,"topics":["functional-programming","kotlin","multiplatform","music","synthesizer"],"latest_commit_sha":null,"homepage":"","language":"Kotlin","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/fsynthlib.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-06-05T21:42:43.000Z","updated_at":"2023-05-25T16:55:49.000Z","dependencies_parsed_at":"2022-09-04T05:11:26.051Z","dependency_job_id":null,"html_url":"https://github.com/fsynthlib/fsynth","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fsynthlib%2Ffsynth","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fsynthlib%2Ffsynth/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fsynthlib%2Ffsynth/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fsynthlib%2Ffsynth/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fsynthlib","download_url":"https://codeload.github.com/fsynthlib/fsynth/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244050127,"owners_count":20389642,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["functional-programming","kotlin","multiplatform","music","synthesizer"],"created_at":"2024-07-31T02:01:51.674Z","updated_at":"2025-03-17T14:31:03.799Z","avatar_url":"https://github.com/fsynthlib.png","language":"Kotlin","funding_links":[],"categories":["Kotlin"],"sub_categories":[],"readme":"[![Build Status](https://circleci.com/gh/krzema12/fsynth.svg?style=svg)](https://app.circleci.com/pipelines/github/krzema12/fsynth) [![codecov](https://codecov.io/gh/krzema12/fsynth/branch/master/graph/badge.svg)](https://codecov.io/gh/krzema12/fsynth) [![Awesome Kotlin Badge](https://kotlin.link/awesome-kotlin.svg)](https://github.com/KotlinBy/awesome-kotlin)\n\n\u003cimg src=\"https://raw.githubusercontent.com/krzema12/fsynth/master/web/src/main/resources/Logo.svg\" width=\"200\" height=\"200\" /\u003e\n\n# What is fsynth? \n\nIt's a simple music synthesizer. It focuses on generating the waveforms from scratch, no samples are used. You can listen to it via the Web player, or using the cross-platform Java CLI. Read on to learn more.\n\nSecondly, this project is my playground for learning Kotlin, functional programming (hence the \"f\" in \"fsynth\"), front-end development, Gradle, multiplatform projects, and other. It's also a place where I can focus more on quality than I normally could afford in a professional environment, because here I don't have a pressure to deliver on time. That's why my aim here is also to have as little technical debt as possible, and have as clean code as I can write.\n\nSongs are described with such DSL:\n\n```kotlin\nval simpleDemoSong = song(\n        name = \"Simple demo song\",\n        beatsPerMinute = 120) {\n    track(instrument = organs, volume = 0.3f) {\n        note(1 by 8, D4)\n        note(1 by 16, Csharp4)\n        note(1 by 16, D4)\n        note(1 by 8, E4)\n        note(1 by 8, D4)\n\n        pause(1 by 8)\n        chord(1 by 8, A3, D4, Fsharp4)\n        chord(1 by 4, B3, D4, G4)\n    }\n}\n```\n\n# How to listen\n\n## Web\n\nhttps://fsynthlib.github.io/fsynth/\n\n## Java CLI\n\nThe CLI uses system sound output to play music.\n\nYou can use the CLI from the distribution package:\n\n```\n./gradlew :cli:installDist\ncli/build/install/fsynth/bin/fsynth --song 'Van Halen - Jump (intro)'\n```\n\nor during development, you can call the CLI through Gradle:\n\n```\n./gradlew :cli:run --args=\"--song 'Van Halen - Jump (intro)'\"\n```\n\nTo see a list of available songs, call the CLI without arguments. \n\n# Talk on [Tricity Kotlin User Group](https://www.facebook.com/groups/tricity.kotlin.user.group)\n\n[![[TKUG #1] Piotr Krzemiński, 'Project fsynth: show and tell'](http://img.youtube.com/vi/mQEIn7Eqsio/0.jpg)](http://www.youtube.com/watch?v=mQEIn7Eqsio \"[TKUG #1] Piotr Krzemiński, 'Project fsynth: show and tell'\")\n\n# Build prerequisites\n\nThe below dependencies won't be installed by Gradle:\n\n* JDK + path to it in `JAVA_HOME`\n  (warning: use Oracle's JDK for now, there are some issue with OpenJDK; see #31 for details)\n* Android SDK + path to it in `ANDROID_HOME`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffsynthlib%2Ffsynth","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffsynthlib%2Ffsynth","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffsynthlib%2Ffsynth/lists"}