# The Pentaphone
...is an in-browser music performance tool built on React.js and the Web Audio API. Rewritten from scratch to use modern js/react/web-audio-api in March, 2022.
Check out the [home page](http://billgathen.github.io/pentaphone) for a playable example!
## What is the Pentaphone?
Most online synth examples are too complicated: they try to give you **everything**, but you can make a bunch of music using only a subset of the 12 available notes. The Pentaphone limits itself to just those heavy-hitters.
The notes of the **major pentatonic** (the 1st, 2nd, 3rd, 5th and 6th notes of a scale) always sound good with their associated chords. The Pentaphone puts those 5 notes in your right hand (labeled 1 through 5 on the on-screen keyboard).
The "Big Three" chords in diatonic harmony are the ones based on the 1st (I), 4th (IV) and 5th (V) notes of the key. Those three chords are in your left hand (labeled I, IV, and V).
If you can touch-type, you'll feel right at home with the Pentaphone. Just put your fingers on home row and start playing!
Feeling more adventurous? Try relative minor chords: only one row up (labeled vi, ii, iii).
Hold down the key for any chord with your left hand (try I to start), then play any notes in the right hand (try 3 2 1 2 3 3 3): it always works! You'll feel like an instant musical genius. Explore, try different combinations, even multiple notes in the right hand.
## But I don't know how to play music!
Try a few of these ideas on for size:
Try holding down a I with your left hand and playing some notes with your right hand, then switch to a IV (with some more notes), then a V (more notes), then back to a I. It should sound very familiar.
Personally, I like minor chords even better (they have more drama), so try this: vi, iii, ii, vi.
You don't have to change chords a lot: the longer you play on one chord, the more neat combinations you find that sound good with it.
Your ear is your friend: if it sounds good, it is good. You can't break anything, so just have fun with it!
## Song Examples
You might be asking "Can I play actual music, with such a limited set of choices?" Click the "Song Examples" button for a few American folksongs that can be played with just the major pentatonic.
## What else can it do?
### Tone
The Pentaphone has separate tone controls for the left and right hands, allowing more variety in the sound. Tone is selected using the select boxes at the top right and left of the on-screen keyboard. Use your mouse to select the sound you like.
**Sine** Sine wave is the default sound, very round and mellow.
**Triangle** Triangle is slightly-edgier than sine wave, with a bit of hollowness.
**Sawtooth** Sawtooth is a much brighter, buzzier, more aggressive sound.
**Square** Square is bright and buzzy like sawtooth, but with a bit of hollowness.
### Mixing and matching
For a mellow, gentle sound, leaving both left and right on **sine** is perfect.
To make your melodies cut through the chords a bit more, leave the left side on **sine** and switch to **triangle** for the right side.
For a more aggressive rock tone, try **sawtooth** on both right and left.
For a more synthetic, artificial "80's Pop" sound, **triangle** on the left and **square** on the right is an interesting option.
For an "8-bit" or "vintage videogame" sound, **square** on both right and left is the way to go.
没有合适的资源?快使用搜索试试~ 我知道了~
基于浏览器的音乐演奏工具_JavaScript_代码_下载
共35个文件
js:15个
json:3个
css:3个
1.该资源内容由用户上传,如若侵权请联系客服进行举报
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
版权申诉
0 下载量 114 浏览量
2022-06-16
10:50:30
上传
评论
收藏 586KB ZIP 举报
温馨提示
基于 React.js 和 Web Audio API 构建的浏览器内音乐表演工具 五线谱是什么? 大多数在线合成器示例都过于复杂:它们试图为您提供一切,但您可以仅使用 12 个可用音符中的一个子集来制作一堆音乐。Pentaphone 仅限于那些重量级人物。 大调五声音阶(音阶的第 1、第 2、第 3、第 5 和第 6 音)的音符与其相关的和弦总是听起来不错。Pentaphone 将这 5 个音符放在您的右手中(在屏幕键盘上标记为 1 到 5)。 全音阶和声中的“三巨头”和弦是基于调的第一(I)、第四(IV)和第五(V)音符的和弦。这三个和弦在你的左手(标记为 I、IV 和 V)。 如果您可以触摸式打字,那么使用 Pentaphone 会让您有宾至如归的感觉。只需将您的手指放在本垒上即可开始演奏! 感觉更冒险?尝试相对小和弦:仅向上一排(标记为 vi、ii、iii)。 用左手按住任何和弦的键(尝试 I 开始),然后用右手弹奏任何音符(尝试 3 2 1 2 3 3 3):它总是有效的!你会觉得自己是一个即时的音乐天才。探索,尝试不同的组合,甚至右手中的多个音符。
资源推荐
资源详情
资源评论
收起资源包目录
pentaphone-master.zip (35个子文件)
pentaphone-master
.gitignore 22B
README.md 3KB
public
robots.txt 67B
index.html 515B
favicon.ico 1KB
LICENSE 1KB
package.json 897B
src
index.css 327B
Keyboard.js 2KB
SoundControl.js 472B
soundConfigs.js 542B
AdvancedInstructions.js 2KB
keyboardLayouts.js 1KB
SongExamples.js 5KB
App.css 2KB
KeyboardKey.js 2KB
ControlRow.js 490B
index.js 219B
App.js 3KB
BasicInstructions.js 3KB
commandLayouts.js 2KB
KeyboardRow.js 743B
SoundManager.js 2KB
build
robots.txt 67B
static
css
main.97670761.css.map 4KB
main.97670761.css 2KB
js
main.54f10bc1.js.map 358KB
main.54f10bc1.js 147KB
main.54f10bc1.js.LICENSE.txt 1KB
asset-manifest.json 454B
index.html 602B
favicon.ico 1KB
yarn.lock 395KB
create-react-app-README.md 3KB
package-lock.json 1.07MB
共 35 条
- 1
资源评论
快撑死的鱼
- 粉丝: 1w+
- 资源: 9154
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功