{"id":15498118,"url":"https://github.com/rodydavis/tonejs_dart","last_synced_at":"2026-04-28T11:33:58.708Z","repository":{"id":49832805,"uuid":"518326511","full_name":"rodydavis/tonejs_dart","owner":"rodydavis","description":"Tone.js api bindings for Dart","archived":false,"fork":false,"pushed_at":"2022-07-27T06:15:45.000Z","size":6193,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-02-01T13:13:56.607Z","etag":null,"topics":["dart","flutter","tonejs","web"],"latest_commit_sha":null,"homepage":"https://rodydavis.github.io/tonejs_dart/","language":"Dart","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rodydavis.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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":"2022-07-27T05:51:28.000Z","updated_at":"2024-04-09T06:24:18.000Z","dependencies_parsed_at":"2022-09-24T18:43:45.277Z","dependency_job_id":null,"html_url":"https://github.com/rodydavis/tonejs_dart","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/rodydavis/tonejs_dart","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rodydavis%2Ftonejs_dart","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rodydavis%2Ftonejs_dart/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rodydavis%2Ftonejs_dart/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rodydavis%2Ftonejs_dart/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rodydavis","download_url":"https://codeload.github.com/rodydavis/tonejs_dart/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rodydavis%2Ftonejs_dart/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32379348,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-28T11:25:28.583Z","status":"ssl_error","status_checked_at":"2026-04-28T11:25:05.435Z","response_time":56,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["dart","flutter","tonejs","web"],"created_at":"2024-10-02T08:41:59.553Z","updated_at":"2026-04-28T11:33:58.689Z","avatar_url":"https://github.com/rodydavis.png","language":"Dart","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Tone.js Dart\n\nTone.js api for Flutter web\n\n## Example\n\n```dart\nimport 'package:flutter/material.dart';\nimport 'package:piano/piano.dart';\nimport 'package:tonejs_dart/tonejs_dart.dart' as Tone;\n\nvoid main() {\n  runApp(const MyApp());\n}\n\nclass MyApp extends StatelessWidget {\n  const MyApp({super.key});\n\n  @override\n  Widget build(BuildContext context) {\n    return MaterialApp(\n      debugShowCheckedModeBanner: false,\n      title: 'Tone.js',\n      theme: ThemeData.dark(),\n      home: const MyHomePage(),\n    );\n  }\n}\n\nclass MyHomePage extends StatefulWidget {\n  const MyHomePage({super.key});\n\n  @override\n  State\u003cMyHomePage\u003e createState() =\u003e _MyHomePageState();\n}\n\nclass _MyHomePageState extends State\u003cMyHomePage\u003e {\n  bool started = false;\n  final synths = \u003cTone.Synth\u003e[\n    Tone.Synth(),\n    Tone.PolySynth(),\n    Tone.FMSynth(),\n    Tone.AMSynth(),\n  ];\n  int idx = 0;\n  late Tone.Synth synth = synths[idx].toDestination();\n\n  @override\n  Widget build(BuildContext context) {\n    return Scaffold(\n      appBar: AppBar(\n        title: const Text('Tone.js'),\n        actions: [\n          // Pop menu button for synths\n          DropdownButton\u003cint\u003e(\n            value: idx,\n            onChanged: (value) {\n              if (value == null) {\n                return;\n              }\n              setState(() {\n                idx = value;\n                synth = synths[idx].toDestination();\n              });\n            },\n            items: const [\n              DropdownMenuItem\u003cint\u003e(\n                value: 0,\n                child: Text('Mono Synth'),\n              ),\n              DropdownMenuItem\u003cint\u003e(\n                value: 1,\n                child: Text('Poly Synth'),\n              ),\n              DropdownMenuItem\u003cint\u003e(\n                value: 2,\n                child: Text('FM Synth'),\n              ),\n              DropdownMenuItem\u003cint\u003e(\n                value: 3,\n                child: Text('AM Synth'),\n              ),\n              DropdownMenuItem\u003cint\u003e(\n                value: 4,\n                child: Text('Noise Synth'),\n              ),\n            ],\n          ),\n        ],\n      ),\n      body: InteractivePiano(\n        highlightedNotes: [NotePosition(note: Note.C, octave: 3)],\n        naturalColor: Colors.white,\n        accidentalColor: Colors.black,\n        keyWidth: 60,\n        noteRange: NoteRange.forClefs([\n          Clef.Treble,\n        ]),\n        onNotePositionTapped: (position) async {\n          if (!started) {\n            await Tone.start();\n            started = true;\n          }\n          final noteName = position.name.replaceAll('♯', '#');\n          synth.triggerAttackRelease(noteName, '8n');\n        },\n      ),\n    );\n  }\n}\n\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frodydavis%2Ftonejs_dart","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frodydavis%2Ftonejs_dart","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frodydavis%2Ftonejs_dart/lists"}