diff --git a/README.md b/README.md index 9262c46..880ece9 100644 --- a/README.md +++ b/README.md @@ -60,10 +60,10 @@ The following diagram is an example representation of a good basic circuit that Note that the actual circuit will vary depending on your controller: - For ESP8266 boards, the software PWM output pins available are any in the range `GPIO0` - `GPIO16` -- For ESP32 boards, the [LEDC PWM channel](https://docs.espressif.com/projects/esp-idf/en/latest/esp32/api-reference/peripherals/ledc.html) can acts as output [*(diagram)*](https://docs.espressif.com/projects/esp-idf/en/latest/esp32/_images/ledc-api-settings.jpg) and you can normally use any pin in the range `GPIO0` - `GPIO33` +- For ESP32 boards, the [LEDC PWM channel](https://docs.espressif.com/projects/esp-idf/en/latest/esp32/api-reference/peripherals/ledc.html) can acts as output and you can normally use any pin in the range `GPIO0` - `GPIO33` ## Code -If your microcontroller is compatible with ESPHome then you can fortunately make use of the existing RTTTL component to easily play the RTTTL strings composed on the web application directly on the ESP device, see the [RTTTL Component](https://esphome.io/components/buzzer.html#rtttl-component) documentation for more information, the source for the underlying RTTTL library can be found [here](https://esphome.io/api/rtttl_8h). +If your microcontroller is compatible with ESPHome then you can fortunately make use of the existing RTTTL component to easily play the RTTTL strings composed on the web application directly on the ESP device, see the [RTTTL Component](https://esphome.io/components/rtttl.html) documentation for more information, the source for the underlying RTTTL library can be found [here](https://esphome.io/api/rtttl_8h). ```yaml # Buzzer (ESP32 controller) diff --git a/routes/index.tsx b/routes/index.tsx index 57cd921..f6aa9f9 100644 --- a/routes/index.tsx +++ b/routes/index.tsx @@ -60,7 +60,7 @@ export default function Home() { -
+
{/* Controls Row */}
@@ -77,7 +77,7 @@ export default function Home() { {/* RTTTL Output Text Area */} -
-
-
- -
- - - - -
+
+
+ +
+ + + +
+
+ {/* Dropdown Example RTTTL Selector */} + + +
{/* Playback */}
-
-
- Playback Spacebar -
-
- {/* Play Button */} - - - {/* Stop Button */} - - +
+ Playback Spacebar +
+
+ {/* Play Button */} + + + {/* Stop Button */} + + - {/* Load From Text Area Button */} - - + {/* Load From Text Area Button */} + + - {/* Volume Button */} - -
+ {/* Volume Button */} +
diff --git a/routes/rtttl_specification.tsx b/routes/rtttl_specification.tsx index 4c242dd..d15e4e1 100644 --- a/routes/rtttl_specification.tsx +++ b/routes/rtttl_specification.tsx @@ -105,8 +105,7 @@ export default async function RTTTLSpecification() {

The name of the ringtone, this is normally not used by the player but is useful for identifying the ringtone. According to the official specification, the name must not exceed 11 characters in length though this is arbritary and many implementation of RTTTL are generally capable of - handling names with much greater lengths. Whilst no character restrictions are specified, it is recommended to use only alphanumeric characters and - spaces, with the semicolon : character. + handling names with much greater lengths. Whilst no character restrictions are specified, it is recommended to use only alphanumeric characters.

@@ -143,10 +142,8 @@ export default async function RTTTLSpecification() {

The duration{" "} - of the note which is measured relative to other notes using a system of whole notes. - - It is not measured in time (seconds or minutes) - . + of the note which is measured relative to other notes using a system of whole notes —{" "} + It is not measured in time (seconds or minutes).

@@ -386,8 +383,8 @@ export default async function RTTTLSpecification() {
References
-
-
    +
    +
    1. Web Archive: binet.lv/personal/nokia/note_syntax_1-1.txt diff --git a/routes/specs/rtttl_1.0.0.txt b/routes/specs/rtttl_1.0.0.txt index eda4f8c..eca940a 100644 --- a/routes/specs/rtttl_1.0.0.txt +++ b/routes/specs/rtttl_1.0.0.txt @@ -1,12 +1,6 @@ ; ; Ringing Tones text transfer language (RTTTL) ; -; Version 1.1 / 13-Aug-1999 -; - Updated by The TDD for strict conformity -; with Nokia Smart Messaging 2.0 Specification -; -; http://www.binet.lv/personal/nokia/note_syntax_1-1.txt -; ; Version 1.0 / 29-July-1998 ; - First version by John Mostelo ; @@ -16,16 +10,14 @@ := [] + - := + ; maximum name length 11 characters + := + ; maximum name length 10 characters := ":" := | | - | - | - + := "d=" @@ -33,29 +25,19 @@ := "b=" - := "v=" - - := "s="