# morse2piezo

> converts morse code notation to a piezo song

Latest version **1.0.0** (published 2018-07-17) · MIT license · 0 weekly downloads

## Install

```sh
npm install morse2piezo
pnpm add morse2piezo
yarn add morse2piezo
bun add morse2piezo
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2018-07-17 |
| First published | 2018-07-17 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 2.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 9 |
| Author | Suz Hinton |
| Maintainers | noopkat |

## Links

- npm: https://www.npmjs.com/package/morse2piezo
- Repository: https://github.com/noopkat/morse2piezo
- Homepage: https://github.com/noopkat/morse2piezo#readme
- Issues: https://github.com/noopkat/morse2piezo/issues
- npm.io page: https://npm.io/package/morse2piezo

## Recent versions

- 1.0.0 (latest) — 2018-07-17

## README

# morse2piezo
converts morse code notation to a piezo song for use with [Johnny Five's `Piezo` class](http://johnny-five.io/examples/piezo/).

## Usage

I recommend you use the [morse package](https://www.npmjs.com/package/morse) to convert your text into morse code notation first.

```javascript
const morse2piezo = require('morse2piezo');
const morse = require('morse');
const five = require('johnny-five');

const sequence = morse.encode('hello world');
// first argument is the note / tone, second is the morse sequence.
const song = morse2piezo('B1', sequence);

five.Board().on('ready', () => {
  const piezo = new five.Piezo(9);
  piezo.play({song, tempo: 500});
});
```

---
_Source: https://npm.io/package/morse2piezo · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
