{"id":13768821,"url":"https://github.com/okaybenji/submono","last_synced_at":"2025-04-09T18:12:56.104Z","repository":{"id":57373988,"uuid":"43452663","full_name":"okaybenji/submono","owner":"okaybenji","description":"a Web Audio subtractive, monophonic synthesizer ","archived":false,"fork":false,"pushed_at":"2018-04-13T17:24:22.000Z","size":23,"stargazers_count":12,"open_issues_count":2,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-23T20:12:09.248Z","etag":null,"topics":["javascript","synth","synthesizer","webaudio"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/okaybenji.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":"2015-09-30T18:58:09.000Z","updated_at":"2024-08-10T22:03:15.000Z","dependencies_parsed_at":"2022-09-17T16:00:33.883Z","dependency_job_id":null,"html_url":"https://github.com/okaybenji/submono","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/okaybenji%2Fsubmono","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/okaybenji%2Fsubmono/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/okaybenji%2Fsubmono/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/okaybenji%2Fsubmono/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/okaybenji","download_url":"https://codeload.github.com/okaybenji/submono/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247805389,"owners_count":20999163,"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":["javascript","synth","synthesizer","webaudio"],"created_at":"2024-08-03T16:01:26.324Z","updated_at":"2025-04-09T18:12:56.089Z","avatar_url":"https://github.com/okaybenji.png","language":"JavaScript","funding_links":[],"categories":["MIDI instruments"],"sub_categories":["Synths"],"readme":"# submono\nA Web Audio subtractive, monophonic synthesizer. Looking for polyphony? Check out [subpoly](https://github.com/okaybenji/subpoly/)!\n\n### Create a synth.\n```\nvar audioCtx = new AudioContext();\nvar synth = new Monosynth(audioCtx);\n```\n\n### Play a note.\n`synth.start();`\n\n### Stop playing.\n`synth.stop();`\n\n### Use methods to access pitch and waveform...\n```\nsynth.pitch(440);              // in hertz\nconsole.log(synth.waveform()); // 'sawtooth' (or sine, triangle, square)\n```\n\n### ...get or set any other properties directly.\n```\nsynth.maxGain = 0.5; // out of 1\nsynth.attack = 1.0;  // in seconds\n```\n\n### Configure any or all the properties on initialization.\n```\nvar config = {\n  waveform: 'sawtooth', // or sine, triangle, square\n  pitch: 440,           // in hertz\n  maxGain: 0.5,         // out of 1\n  attack: 0.1,          // in seconds\n  decay: 0.0,           // in seconds\n  sustain: 1.0,         // out of 1\n  release: 0.8,         // in seconds\n  cutoff: {\n    maxFrequency: 7500, // in hertz\n    attack: 0.1,        // in seconds\n    decay: 2.5,         // in seconds\n    sustain: 0.2        // 0-5; maxFrequency multiplied by this\n  }\n};\n\nvar synth = new Monosynth(audioCtx, config);\n```\n\n### Demo\n[Tiles: a musical, multiplayer web toy](http://okaybenji.github.io/tiles-client/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fokaybenji%2Fsubmono","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fokaybenji%2Fsubmono","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fokaybenji%2Fsubmono/lists"}