mirror of
https://github.com/legop3/MultiRoombaRover.git
synced 2026-09-15 17:12:59 -04:00
lowe note one octave
This commit is contained in:
@@ -4,7 +4,7 @@
|
|||||||
const HELP_HORN_FREQUENCY_HZ = 2000;
|
const HELP_HORN_FREQUENCY_HZ = 2000;
|
||||||
const HELP_HORN_DURATION_MS = 250;
|
const HELP_HORN_DURATION_MS = 250;
|
||||||
const HELP_HORN_INTERVAL_MS = 5 * 1000;
|
const HELP_HORN_INTERVAL_MS = 5 * 1000;
|
||||||
const HELP_ROOMBA_NOTE = 95;
|
const HELP_ROOMBA_NOTE = 83;
|
||||||
const HELP_ROOMBA_NOTE_DURATION = 16;
|
const HELP_ROOMBA_NOTE_DURATION = 16;
|
||||||
|
|
||||||
function createHelpHornNotifier({
|
function createHelpHornNotifier({
|
||||||
@@ -67,8 +67,8 @@ function createHelpHornNotifier({
|
|||||||
|
|
||||||
try {
|
try {
|
||||||
// Roomba 600-series songs use MIDI notes and 1/64-second durations.
|
// Roomba 600-series songs use MIDI notes and 1/64-second durations.
|
||||||
// Note 95 is approximately 1975.5 Hz, the closest supported pitch to the
|
// Note 83 is approximately 987.8 Hz: one octave below the closest MIDI
|
||||||
// external 2000 Hz horn, and duration 16 matches its 250 ms pulse.
|
// pitch to the external 2000 Hz horn. Duration 16 matches its 250 ms pulse.
|
||||||
issueCommand(id, {
|
issueCommand(id, {
|
||||||
type: 'song',
|
type: 'song',
|
||||||
song: {
|
song: {
|
||||||
|
|||||||
Reference in New Issue
Block a user