Giter Site home page Giter Site logo

eriknyquist / ptttl Goto Github PK

View Code? Open in Web Editor NEW
13.0 2.0 2.0 221 KB

Polyphonic Tone Transfer Language: superset of NOKIA's RTTTL, supports polyphony & vibrato

Home Page: https://ptttl.readthedocs.io

License: Apache License 2.0

Python 22.39% C 75.72% Makefile 1.89%
rtttl tones music polyphony python ringtones nokia python3 rttl embedded-c music-generation music-notation musical-notes

ptttl's Issues

Monophonic ringtone conversion

I got to feeling nostalgic the other day, so I tried bringing an old monophonic Nokia ringtone to my smartphone.
I found your RTTTL converter quite helpful, but the synthesized beeps just don't sound authentic enough to my ears.
I did some more research and came across Ed Ball's monophonic ringtone synthesizer that sounds more like my old Nokia phone (Live Demo: http://outputchannel.com/monophonic-ringtone-synthesizer , Source Code: https://github.com/edwardball/monophonic-ringtone-synthesizer).
Would it be possible to somehow combine these two projects to get the original Nokia sound out of a *.rtttl / *.mid file?

Error while running sample script

Hi,
I wanted to run the sample. But I get the following error:
Traceback (most recent call last): File "ptttl/ptttl_audio_encoder.py", line 87, in <module> ptttl_to_mp3(ptttl_data, sys.argv[2], 0.5, tones.SINE_WAVE) File "ptttl/ptttl_audio_encoder.py", line 71, in ptttl_to_mp3 ptttl_to_wav(ptttl_data, wavfile, amplitude, wavetype) File "ptttl/ptttl_audio_encoder.py", line 67, in ptttl_to_wav samples = _generate_wav_file(data, amplitude, wavetype, wav_filename) File "ptttl/ptttl_audio_encoder.py", line 57, in _generate_wav_file Mixer(SAMPLE_RATE, amplitude).mix(filename, samples) TypeError: mix() takes 1 positional argument but 3 were given

Then I tried to fix it by myself. I had the idea to replace this line:
Mixer(SAMPLE_RATE, amplitude).mix(filename, samples)
by
Mixer(SAMPLE_RATE, amplitude).write_wav(filename, samples)

But it also doesn't work. Any idea how to fix it? It tested the code on Windows 10 and Linux.
Thanks!

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.