GithubHelp home page GithubHelp logo

ben10-chirp's Introduction

Ben10 Omnitrix Omni-Link chirp generator

The Omnitrix

Ben10 Omnitrix is an interactive toy which reacts to some sounds embedded inside the soundtrack of the comic series.

usage

generator

> python3 generator.py --help
Usage: generator.py [options] (code)+

generate waveforms corresponding to the given codes which trigger
actions on a ben10 omnitrix toy device.

code is a string of base 4 digit (0,1,2,3) of any length forming a 
code to generate. you can specify multiple codes, they will be either
played in sequence or saved individually as wave files. you can also
use a asterisk (*) as a wildcard for any digit of the code, the
generator will then generate multiple codes going through all posible
values for this digit.

Options:
  -h, --help            show this help message and exit
  -e, --export          export the generated waveforms as .wav file named
                        after each code into the current folder.
  -p, --play            play the generated waveforms on the default system
                        soundcard. each code is played one after the other,
                        with a pause inbetween each. the pause time is
                        controlled with the -t option. play is the default
                        action if none of play or export are specified.
  -t PAUSE, --pause=PAUSE
                        duration in seconds of the pause interval between each
                        waveform when playing. (default: 1 s)
  -s SAMPLERATE, --samplerate=SAMPLERATE
                        sample rate used for waveform generation.(default:
                        48000 hz)

extractor

the extractor.py script will extracts the code from a given wave file.

> python3 extractor.py "058 Wildmutt SE 15kHz.wav.wav"

generate-random

the generate-random.py script generates a random code starting with 2 and ending with 1023. this convention stems from the fact that every known code to date conform to this format.

ben10-chirp's People

Contributors

dummy-decoy avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

ben10-chirp's Issues

Unable to paste number strings

Whenever I try to paste a string of numbers, it automatically generates a file for the first number, and then says:

" 'number' is not recognized as an internal or external command, operable program or batch file."

for each subsequent number in the string.

Error when typing long command

If I try to type a command that is very long, I get this error:

C:\Users\myname\Downloads\Omnitrix Sounds\ben10-chirp-master>> python3 generator.py 1023312032310321322310201302312012020310202310202313021323023013012323301221032013102201203203220132301230213102021322030201302030203021302010303103230201031001230120230210301320301030303021021303030303300330210211020120201020120302001203231310302301300301023
Traceback (most recent call last):
File "C:\Users\myname\Downloads\Omnitrix Sounds\ben10-chirp-master\generator.py", line 40, in
main()
File "C:\Users\myname\Downloads\Omnitrix Sounds\ben10-chirp-master\generator.py", line 34, in main
output = wave.open(code+'.wav', 'wb')
File "C:\Users\myname\AppData\Local\Programs\Python\Python39\lib\wave.py", line 511, in open
return Wave_write(f)
File "C:\Users\myname\AppData\Local\Programs\Python\Python39\lib\wave.py", line 304, in init
f = builtins.open(f, 'wb')
OSError: [Errno 22] Invalid argument: '1023312032310321322310201302312012020310202310202313021323023013012323301221032013102201203203220132301230213102021322030201302030203021302010303103230201031001230120230210301320301030303021021303030303300330210211020120201020120302001203231310302301300301023.wav'
Exception ignored in: <function Wave_write.del at 0x000002153F2998B0>
Traceback (most recent call last):
File "C:\Users\myname\AppData\Local\Programs\Python\Python39\lib\wave.py", line 326, in del
self.close()
File "C:\Users\myname\AppData\Local\Programs\Python\Python39\lib\wave.py", line 443, in close
if self._file:
AttributeError: 'Wave_write' object has no attribute '_file'

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.