-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Piezo support for Ring Tone Transfer Language #639
Comments
Sounds exciting! |
Sounds kinda curiously fun! |
I like it! |
Sorry for the delay getting back, working on a job move (to my first node job yay!) I think this should mostly work already, mostly. Let me have a look over the next couple of days and see what changes are needed to get this going but I'm pretty sure we are only limited by the Peizo itself. |
Going to take a stab at this enhancement this weekend. |
PS... I need a hero by Bonny Tyler will be the test tone... ya'll know why 😄 |
That's a seriously emotional montage ❤️ |
Absolutely! |
@lyzadanger @rwaldron @julianduque @Resseguie @BrianGenisio So I think I have a proposal for this to share Saria's Song: Zelda:OoT - The new syntax is basically RTTL+ but plain old RTTL is also supported. It breaks down like so:
So thats basically what I have. Other points to be aware of
I pretty much wanted to throw this up here and get some feedback before I start coding |
I like it! |
I think you should start workin' on it! Curious to see what "quirks mode" ends up looking like. |
@lyzadanger Gonna start on it tonight I think. Quirks mode is really only a flag that will do some standard shifting of values to ensure that older tones work. Not sure how to implement it yet though, I need to be mindful that I can't assume all tones will shift by the same about. Either way though I think we will get close enough to get RTTL tones working and have a nice input method too :D |
Ok all, I've come across something I need some feedback on. I mentioned this in gitter already but I thought I would post here for posterity. The issue has to do with
If I pass a note's frequency to tone, I'm trying to establish if we have a bug here or if there is a hardware reason for doing this modification against the notes. The only thing I can think of is that we don't actually send the tone to the Piezo so I wonder if this has to do with ensuring the pulsing of the pin matches the proposed frequency. Any feedback on this would be great. While I am making my changes I will also look at making some of this knowledge explicit within the script. |
This might look like "RTFM", but I promise that it's not... From https://github.com/rwaldron/johnny-five/wiki/Piezo
I would argue for changing the docs to:
|
@rwaldron No that makes perfect sense, So I had it right almost in that we aren't setting the freq directly rather we are using it to create the duty cycle. I'm not going to lie, I didn't even know we had a wiki section, I had assumed all the docs are in the repo proper, is there a difference between the two or is there a rule from using one over the other? This sorts me out which is great, I will rename some of the bits in code too to make this more apparent and add comments also |
The clarification @rwaldron makes is very helpful 👍 The wiki vs. not-wiki has confused me in the past, too :). |
@rwaldron has admitted in the past that using "docs" for "generated examples" wasn't the best, but we're kinda stuck unless we are willing to break old links. Wiki = Documentation |
@Resseguie Old links from external places, you mean? As in, we don't want to kill extant URLs? I'm very keen on helping with this...while I don't necessarily think the Wiki needs to stop existing, I do think finding docs could be clearer. Sign me up (in another thread, ob'ly) if there's ever a docs project! |
That's putting it nicely... I hate that I called it that.
I completely agree. Here's what we can do:
|
See #741 For current status of the above |
What's the status of this? Does the potential inclusion of Octavian (#809) come into play? |
@scottgonzalez It is more or less ready, some minor bugs, needs more tests but the bulk of the work is finished. #809 shouldn't affect the public API but I would imagine we would want to get Octavian in and tested before calling this done. Is there any specific use cases you are thinking about? |
Nope. I didn't dig into either one, just wanted to make sure that it was taken into account if there was going to be any overlap. |
Hi @Resseguie , Johnny-Five contributors and maintainers are loathe to close issues where someone has a need. We don't want anyone to ever feel that we don't care, but we just haven't gotten to this feature yet. Rather than leave it languishing as an open issue we have created a Requested Features page and added your request for the RTTL (and RTTL+) there. |
Should the piezo library support the Ring Tone Transfer Language (RTTL) as an input format?
Then we could immediately import all kinds of song collections available on the web:
e.g.: http://ez4mobile.com/nokiatone/rtttf.htm
cc @mcdonnelldean @lyzadanger @julianduque @BrianGenisio
The text was updated successfully, but these errors were encountered: