GitXplorerGitXplorer
c

elm-piano

public
6 stars
5 forks
2 issues

Commits

List of commits on branch master.
Verified
0a28c9ebc1db3c9d4828c4dbaece9042e7345602

Change license file

ccript0nauta committed 7 years ago
Unverified
9cf97ed9f35f0de280e858740d0ac21889c45134

Use elm-css to write styles

ccript0nauta committed 7 years ago
Unverified
1349941ead69935b89cb2fb5d91d57564edb714c

Add basic example that doesn't use ports

ccript0nauta committed 7 years ago
Unverified
db11293c4caaf0e5fa1598e2fb1189e151f885c7

Fix typo in isNatural documentation

ccript0nauta committed 7 years ago
Unverified
75378bd6cff72cbb64e4a9de2082661f324ae78c

Create .gitattributes

ccript0nauta committed 8 years ago
Unverified
3952c5c512438bd3deca571dffcfa3d0cecbadc7

Merge pull request #1 from CallumJHays/master

ccript0nauta committed 8 years ago

README

The README file for this repository.

elm-piano

image

Description

This package exports a simple, optionally interactive piano component for the Elm programming language. You can use it to create music aplications or similar.

The package itself does not handle any sound or other side effect, so the component's only function is only to render an object that looks like a piano and select which key to appear to be pressed. Also it has an experimental, not fully functional interactive mode so the keys the user clicks are markerd as pressed.

If you want to see examples of how to use it to generate sound you should check the example programs that use a MIDI.js port lo do it.

Documentation and examples

The documentation of this package is available on http://package.elm-lang.org/packages/sh4r3m4n/elm-piano/.

Example 1: Show the notes of a MIDI file

Example 2: Interactive keyboard with sound. Has some UI issues.

Credits

The HTML and CSS of the piano is based on michaelmp/js-piano