chipweinberger / dart_melty_soundfont

A port of Melty Synth by Nobuaki Tanaka (C#) to Dart
Other
35 stars 8 forks source link

Import as Package #1

Closed abegehr closed 2 years ago

abegehr commented 2 years ago

Thank you for building and publishing this package! I'm unable to import any resources from the package after install in in pubspec.yaml. The example references a non-package import: https://pub.dev/packages/dart_melty_soundfont#example I'm looking for a package import like referenced here: https://dart.dev/guides/libraries/create-library-packages#importing-library-files

chipweinberger commented 2 years ago

Ya i was wondering if the files needed to be ina “lib” and not a “src” folder. Maybe that’s it.

Try changing the folder name and let me know if that works. First time publishing a package.

On Mon, Feb 28, 2022 at 5:32 AM Anton Begehr @.***> wrote:

Thank you for building and publishing this package! I'm unable to import any resources from the package after install in in pubspec.yaml. The example references a non-package import: https://pub.dev/packages/dart_melty_soundfont#example I'm looking for a package import like referenced here: https://dart.dev/guides/libraries/create-library-packages#importing-library-files

— Reply to this email directly, view it on GitHub https://github.com/chipweinberger/DartMeltySoundFont/issues/1, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAOHB7UDXUY6ZM6SUWWKOT3U5N2O3ANCNFSM5PRDIFBA . You are receiving this because you are subscribed to this thread.Message ID: @.***>

chipweinberger commented 2 years ago

pushed a change. pretty sure thats the issue. lmk.

chipweinberger commented 2 years ago

My example needs to have its import statements updated as well.

import 'package:dart_melty_soundfont/synthesizer.dart';
import 'package:dart_melty_soundfont/synthesizer_settings.dart';
import 'package:dart_melty_soundfont/audio_renderer_ex.dart';
import 'package:dart_melty_soundfont/array_int16.dart';
chipweinberger commented 2 years ago

should be all fixed now. lmk.

abegehr commented 2 years ago

Awesome, thanks @chipweinberger. Importing works now 👍