GithubHelp home page GithubHelp logo

raydac / zxtap-to-wav Goto Github PK

View Code? Open in Web Editor NEW
47.0 6.0 4.0 30 KB

Converter of .TAP files (a ZX-Spectrum emulator data format) into .WAV sound files

License: Apache License 2.0

Go 100.00%
golang python utility converter zx-spectrum wav tape

zxtap-to-wav's Introduction

License Apache 2.0 PayPal donation YooMoney donation

Easy command line utility to convert .TAP files (a data format for ZX-Spectrum emulator) into sound WAV file. (Also there is similar utility to convert binary files into WAV files for personal computer BK-0010)

How to build?

Just clone the project and use maven mvn package -Ppublish command or load needed prebuit version from the latest release.

Arguments

-a    amplify sound signal
-f int
      frequency of result wav, in Hz (default 22050)
-g int
      time gap between sound blocks, in seconds (default 1)
-i string
      source TAP file
-o string
      target WAV file
-s    add silence before the first file

Example

zxtap2wav -i RENEGADE.tap
zxtap2wav -a -i RENEGADE.tap -o RENEGADE.wav -f 44100 -s

How to?

Make longer silence interval between files in WAV

Just add -g 2 or -g 3 to make delay in 2 or 3 seconds.

Add silence in start of generated WAV file

Use -s and silence will be generated in start of WAV file.

I want 44100 Hz quantized WAV

Use parameter -f 44100

Sound is too silent

Use flag -a and generated sound in WAV will be amplified to maximum.

zxtap-to-wav's People

Contributors

raydac avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

zxtap-to-wav's Issues

File infected with a virus!!

Hi,
An amazing tool for the ZX Spectrum. However, one of the files is infected with a virus!
Check zxtap2wav-windows-386.exe, it's infected with Gen:Variant.Zusy.256843 as reported by my BitDefender.

panic: runtime error: makeslice: len out of range

Using the release 1.0.1 with this tap file, when running:

.\zxtap2wav-windows-amd64.exe -i '.\Underground (19xx)(Skorpyo)(Sp).tap'

I get:

  TAP2WAV converter of .TAP files (a format for ZX-Spectrum emulators) into its .WAV image (PCM, mono).
  Project page : https://github.com/raydac/zxtap-to-wav
        Author : Igor Maznitsa (http://www.igormaznitsa.com)
       Version : 1.0.1

panic: runtime error: makeslice: len out of range

goroutine 1 [running]:
github.com/raydac/zxtap-zxtape.ReadTapeBlock({0x89d688, 0xc00004e028})
        /home/igorm/Projects/Pet/zxtap-to-wav/src/zxtape/TapeBlock.go:124 +0x65
main.ParseTap({0x89d688, 0xc00004e028})
        /home/igorm/Projects/Pet/zxtap-to-wav/src/main.go:56 +0x56
main.loadTapFile({0xc00000e3c0?, 0xc00000e3c0?})
        /home/igorm/Projects/Pet/zxtap-to-wav/src/main.go:79 +0xb8
main.main()
        /home/igorm/Projects/Pet/zxtap-to-wav/src/main.go:177 +0x185

Any idea what I could do to fix this issue?

Pilot tones too long

Hi,

The pilot tone on both header and headerless blocks is about 2-3 times longer than original Spectrum pilot. Is there a reason for that?

It doesn't affect functionality but wastes a hefty amount of tape space when you save 9 games per tape side, each containing about 6 pilots, that's 54 pilots times 2-3 seconds, 108-162 seconds is wasted per tape side just on extra long pilots.

Could it be that TAP files themselves contain such long pilots? If so, please ignore this issue.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.