zx_tape_to_wav 2.0.9 copy "zx_tape_to_wav: ^2.0.9" to clipboard
zx_tape_to_wav: ^2.0.9 copied to clipboard

outdated

Easy Flutter library to convert .TAP/.TZX files (a data format for ZX-Spectrum emulator) into sound WAV file.

zx_tape_to_wav License Apache 2.0 publish pub package #

Easy Flutter library to convert .TAP/.TZX files (a data format for ZX-Spectrum emulator) into sound WAV file.

Usage #

A simple usage example:

import 'dart:io';

import 'package:zx_tape_to_wav/zx_tape_to_wav.dart';

void main() async {
  var sourceFilePath = 'assets/roms/RENEGADE.tzx';
  var outputFileName = 'assets/out/RENEGADE.wav';
  await new File(sourceFilePath)
      .readAsBytes()
      .then((input) => ZxTape.create(input)
      .then((tape) => tape.toWavBytes(
      frequency: 11025,
      amplifySignal: true,
      progress: (percents) {
        print(percents);
      }))
      .then((output) => new File(outputFileName).writeAsBytes(output)));
}

Contribute #

Contributions are welcome. Just open an Issue or submit a PR.

Contact #

You can reach me via my email.

Thanks #

Many thanks especially to Igor Maznitsa for his library as a source for ideas.

0
likes
0
pub points
25%
popularity

Publisher

unverified uploader

Easy Flutter library to convert .TAP/.TZX files (a data format for ZX-Spectrum emulator) into sound WAV file.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter

More

Packages that depend on zx_tape_to_wav