{"id":16688173,"url":"https://github.com/jstrait/nanosynth","last_synced_at":"2025-03-21T18:33:30.123Z","repository":{"id":17755891,"uuid":"20609472","full_name":"jstrait/nanosynth","owner":"jstrait","description":"A miniature Ruby tone generator","archived":false,"fork":false,"pushed_at":"2019-12-30T05:16:19.000Z","size":17,"stargazers_count":41,"open_issues_count":0,"forks_count":15,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-03-18T03:51:34.118Z","etag":null,"topics":["audio","ruby","sound","synth","tone","tutorial"],"latest_commit_sha":null,"homepage":"https://www.joelstrait.com/nanosynth/","language":"Ruby","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/jstrait.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":"2014-06-08T04:43:32.000Z","updated_at":"2025-03-07T14:38:58.000Z","dependencies_parsed_at":"2022-08-30T07:01:13.771Z","dependency_job_id":null,"html_url":"https://github.com/jstrait/nanosynth","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/jstrait%2Fnanosynth","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jstrait%2Fnanosynth/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jstrait%2Fnanosynth/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jstrait%2Fnanosynth/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jstrait","download_url":"https://codeload.github.com/jstrait/nanosynth/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244849632,"owners_count":20520751,"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":["audio","ruby","sound","synth","tone","tutorial"],"created_at":"2024-10-12T15:27:07.821Z","updated_at":"2025-03-21T18:33:29.767Z","avatar_url":"https://github.com/jstrait.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# NanoSynth\n\nA miniature tone generator written in Ruby, intended to show how to create a minimal Ruby program that generates sound.\n\nFor a detailed description of how it works, check out this blog post: \u003chttps://www.joelstrait.com/nanosynth/\u003e\n\n# Installation\n\n* Download `nanosynth.rb`\n* Install the [WaveFile gem](http://wavefilegem.com): `gem install wavefile --version 1.1.1`\n\n# Example Usage\n\nNanoSynth expects 3 arguments: the waveform, frequency, and amplitude. It will then generate 1 second of sound and write it to a file called `mysound.wav` in the current directory.\n\n    ruby nanosynth.rb \u003cwaveform\u003e \u003cfrequency\u003e \u003camplitude\u003e\n\nFor example:\n\n    ruby nanosynth.rb square 440.0 0.2\n\nThe command above will generate a square wave of 440Hz, at 20% full volume, and write it to `mysound.wav` in the current directory.\n\nThe waveform can be one of `sine`, `square`, `saw`, `triangle`, or `noise`.\n\nThe amplitude should be between 0.0 (silence) and 1.0 (full volume). Amplitudes above 1.0 will result in clipping distortion.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjstrait%2Fnanosynth","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjstrait%2Fnanosynth","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjstrait%2Fnanosynth/lists"}