“Microduino-Module AudioPro/zh”的版本间的差异
(→MIDI旋律乐器组(GM1)) |
Zhangfengfeng(讨论 | 贡献) |
||
(未显示1个用户的38个中间版本) | |||
第1行: | 第1行: | ||
− | {{Language|Microduino- | + | {{Language|Microduino-AudioPro}} |
− | {| style="width: | + | {| style="width: 1000px;" |
|- | |- | ||
| | | | ||
− | [[File:Microduino- | + | [[File:Microduino-AudioPro-rect.jpg|400px|thumb|right|Microduino-AudioPro]] |
− | Microduino AudioPro是以VS1053为解码器,集成2.2W立体声功放,并且支持2. | + | Microduino AudioPro是以VS1053为解码器,集成2.2W立体声功放,并且支持2.5mm立体声耳机接口的多功能音频模块,支持MIDI功能 |
第12行: | 第12行: | ||
*集成2.2w立体声功放 | *集成2.2w立体声功放 | ||
*板载2.5mm立体声耳机接口 | *板载2.5mm立体声耳机接口 | ||
+ | *耳机/外放自动切换功能 | ||
*SPI高速通信接口 | *SPI高速通信接口 | ||
*小巧、便宜、堆叠、开放; | *小巧、便宜、堆叠、开放; | ||
第21行: | 第22行: | ||
*多种格式的解码支持:MP3/WMA/AAC/WAV/Ogg Vorbis/MIDI | *多种格式的解码支持:MP3/WMA/AAC/WAV/Ogg Vorbis/MIDI | ||
*可实时模拟多达128种MIDI乐器 | *可实时模拟多达128种MIDI乐器 | ||
− | |||
**通用的MIDI和SP‐MIDI格式0文件是能播放的,而格式1和2文件必须由用户自己转换成0格式的 | **通用的MIDI和SP‐MIDI格式0文件是能播放的,而格式1和2文件必须由用户自己转换成0格式的 | ||
**最多的复音数为64,而最大持续的复音数是40 | **最多的复音数为64,而最大持续的复音数是40 | ||
− | |||
− | |||
− | |||
− | |||
*集成2.2w立体声功放(LM4863) | *集成2.2w立体声功放(LM4863) | ||
+ | **可通过VS1053的GPIO4控制使能 | ||
*板载2.5mm立体声耳机接口 | *板载2.5mm立体声耳机接口 | ||
+ | *耳机/外放自动切换功能 | ||
*18比特超采样率的(oversampling)、多比特的、sigma‐delta型高精度DAC | *18比特超采样率的(oversampling)、多比特的、sigma‐delta型高精度DAC | ||
**超采样率oversampling一般是指超过标称采样率整倍数的更高采样率,常用来提高采样精度。这里是指还原数码声音时,用标称采样率数倍的采样率输出,可以使音频的阶梯陡变趋于平缓,降低数字背景噪音和减小失真,从而获得超过原采样率输出效果的高质量音频 | **超采样率oversampling一般是指超过标称采样率整倍数的更高采样率,常用来提高采样精度。这里是指还原数码声音时,用标称采样率数倍的采样率输出,可以使音频的阶梯陡变趋于平缓,降低数字背景噪音和减小失真,从而获得超过原采样率输出效果的高质量音频 | ||
*SPI高速通信接口 | *SPI高速通信接口 | ||
+ | |||
+ | *电气特性 | ||
+ | **VS1053:3.3V,30~60mA | ||
+ | **LM4863:5V,1A | ||
===引脚说明=== | ===引脚说明=== | ||
+ | *'''D2'''引脚为实时MIDI接口 | ||
+ | **实时MIDI默认不启用,如需启用,将模块背面的跳线短接即可 | ||
+ | **启用实时MIDI以后,UART的波特率应为31250bps,此时SPI接口将不可用 | ||
:[[file:Micrduino-AudioPro-1Big2.jpg|800px|thumb|center|Microduino-AudioPro Spec]] | :[[file:Micrduino-AudioPro-1Big2.jpg|800px|thumb|center|Microduino-AudioPro Spec]] | ||
第58行: | 第63行: | ||
| MIDI || 2 || MIDI输入 (默认不启用) | | MIDI || 2 || MIDI输入 (默认不启用) | ||
|} | |} | ||
− | |||
==文档== | ==文档== | ||
− | *Eagle | + | *Eagle SCH:'''[[File:AudioPro.pdf]]''' |
− | |||
*vs1053模块资料(中):'''[[File:vs1053_cn.pdf]]''' | *vs1053模块资料(中):'''[[File:vs1053_cn.pdf]]''' | ||
*vs1053模块资料(英):'''[[File:vs1053.pdf]]''' | *vs1053模块资料(英):'''[[File:vs1053.pdf]]''' | ||
==开发== | ==开发== | ||
+ | *你可以通过_06_Microduino_AudioPlus_VS1053库进行功能测试:'''[https://github.com/wasdpkj/Microduino-IDE-Support/tree/master/arduino-ide-Support/%5B1.6.x%5D-hardware(library)/hardware/Microduino/avr/libraries/_06_Microduino_AudioPlus_VS1053 github]''' | ||
+ | *相关示例程序下载:'''[https://github.com/wasdpkj/AudioPro_VS1053/ github]''' | ||
+ | **其中'''Audio_MIDI'''是SPI接口通过加载补丁实现实时MIDI的例程 | ||
+ | **其中'''Audio_ROM'''是播放ROM中音频文件的例程 | ||
+ | *MIDI的资料见附录 | ||
+ | *音频文件转16进制工具:'''[[File:DataToHex.zip]]''' | ||
− | |||
− | |||
− | == | + | ==图库== |
− | + | {| border="0" cellpadding="10" width="100%" | |
− | === | + | |- |
− | + | |width="50%" valign="top" align="left"| | |
− | + | [[file:Microduino-AudioPro-T.PNG|thumb|450px|center|Microduino-AudioPro TOP]] | |
− | + | |width="50%" valign="top" align="left"| | |
− | + | [[file:Microduino-AudioPro-B.PNG|thumb|450px|center|Microduino-AudioPro BUT]] | |
+ | |} | ||
− | === | + | ==附录== |
− | + | ===MIDI numbers,Note names and frequencies=== | |
− | + | '''可参考:[http://newt.phys.unsw.edu.au/jw/notes.html NUSW]''' | |
− | + | {| border="0" cellpadding="10" width="100%" | |
− | + | |- | |
− | + | |width="50%" valign="top" align="left"| | |
− | + | [[file:MIDIlist.gif|430px|thumb|left| MIDIlist]] | |
− | |||
− | |||
− | |||
− | |||
− | + | |width="50%" valign="top" align="left"| | |
− | + | *Note names, MIDI numbers and frequencies are related here in tables and via an application that converts them. The musical interval between two notes depends on the ratio of their frequencies. | |
− | |||
− | |||
− | + | *An octave is a ratio of 2:1 and, in equal temperament, an octave comprises 12 equal semitones. Each semitone therefore has a ratio of 21/12 (approximately 1.059). By convention, A4 is often set at 440 Hz. These data were used to calculate the first table below, which gives the frequency of any standard keyboard note or MIDI note number. To convert from any frequency to pitch (i.e. to the nearest note and how far it is out of tune). | |
− | |||
− | |||
− | * | + | *This table is reproduced inverted below, i.e. with high pitch at the top. |
− | + | *To convert from any frequency to pitch (i.e. to the nearest note and how far it is out of tune, go to the frequency to note converter written by Andrew Botros. | |
+ | *How to do the caluation? Suppose thattwo notes have frequencies f1 and f2, and a frequency ratio of f2/f1. An octave is a ratio of 2:1, so the number of octaves between f2 and f1 is | ||
+ | **no = log2(f2/f1). | ||
− | + | *Now to divide the octave into smaller units. In equal temperament, where all semitones have the same frequency ratio of 21/12, conversion between note name and frequency is simple. First, one needs a reference note and frequency. This is usually A4, which is often set at 440 Hz. For a note that lies n semitones higher (or −n semitones lower), the frequency is then | |
+ | **fn = 2n/12*440 Hz. | ||
− | + | *Conversely, one can obtain n, the number of semitones from A4, from | |
+ | **n = 12*log2(fn/440 Hz). | ||
− | + | *Similar equations give no, the number of octaves from A4, and nc, the number of cents from A4: | |
+ | **no = log2(fn/440 Hz) and nc = 1200*log2(fn/440 Hz). | ||
− | + | *In electronic music, pitch is often given by MIDI number: let's call it m for our purposes. m for the note A4 is 69 and increases by one for each equal tempered semitone, so this gives us a simple conversion between frequencies and MIDI numbers (again using 440 Hz as the pitch of A4): | |
− | * | + | **m = 12*log2(fm/440 Hz) + 69 and fm = 2(m−69)/12(440 Hz). |
− | ** | ||
− | * | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | + | *The notation used here is not universal: in German speaking countries, H is used instead of B, and B is used for Bb. (This allowed Bach to write his name in the Art of Fugue.) And of course when different tuning systems are used, different names are applied. | |
− | + | |} | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
===MIDI旋律乐器组(GM1)=== | ===MIDI旋律乐器组(GM1)=== | ||
第144行: | 第127行: | ||
|width="33%" valign="top" align="left"| | |width="33%" valign="top" align="left"| | ||
*钢琴 | *钢琴 | ||
− | * | + | *1 Acoustic Grand Piano 大钢琴(声学钢琴) |
− | * | + | *2 Bright Acoustic Piano 明亮的钢琴 |
− | * | + | *3 Electric Grand Piano 电钢琴 |
− | * | + | *4 Honky-tonk Piano 酒吧钢琴 |
− | * | + | *5 Rhodes Piano 柔和的电钢琴 |
− | * | + | *6 Chorused Piano 加合唱效果的电钢琴 |
− | * | + | *7 Harpsichord 羽管键琴(拨弦古钢琴) |
− | * | + | *8 Clavichord 科拉维科特琴(击弦古钢琴) |
*色彩打击乐器 | *色彩打击乐器 | ||
− | * | + | *9 Celesta 钢片琴 |
− | * | + | *10 Glockenspiel 钟琴 |
− | * | + | *11 Music box 八音盒 |
− | * | + | *12 Vibraphone 颤音琴 |
− | * | + | *13 Marimba 马林巴 |
− | * | + | *14 Xylophone 木琴 |
− | * | + | *15 Tubular Bells 管钟 |
− | * | + | *16 Dulcimer 大扬琴 |
*风琴 | *风琴 | ||
− | * | + | *17 Hammond Organ 击杆风琴 |
− | * | + | *18 Percussive Organ 打击式风琴 |
− | * | + | *19 Rock Organ 摇滚风琴 |
− | * | + | *20 Church Organ 教堂风琴 |
− | * | + | *21 Reed Organ 簧管风琴 |
− | * | + | *22 Accordian 手风琴 |
− | * | + | *23 Harmonica 口琴 |
− | * | + | *24 Tango Accordian 探戈手风琴 |
*吉他 | *吉他 | ||
− | * | + | *25 Acoustic Guitar (nylon) 尼龙弦吉他 |
− | * | + | *26 Acoustic Guitar (steel) 钢弦吉他 |
− | * | + | *27 Electric Guitar (jazz) 爵士电吉他 |
− | * | + | *28 Electric Guitar (clean) 清音电吉他 |
− | * | + | *29 Electric Guitar (muted) 闷音电吉他 |
− | * | + | *30 Overdriven Guitar 加驱动效果的电吉他 |
− | * | + | *31 Distortion Guitar 加失真效果的电吉他 |
− | * | + | *32 Guitar Harmonics 吉他和音 |
*贝司 | *贝司 | ||
− | * | + | *33 Acoustic Bass 大贝司(声学贝司) |
− | * | + | *34 Electric Bass(finger) 电贝司(指弹) |
− | * | + | *35 Electric Bass (pick) 电贝司(拨片) |
− | * | + | *36 Fretless Bass 无品贝司 |
− | * | + | *37 Slap Bass 1 掌击Bass 1 |
− | * | + | *38 Slap Bass 2 掌击Bass 2 |
− | * | + | *39 Synth Bass 1 电子合成Bass 1 |
− | * | + | *40 Synth Bass 2 电子合成Bass 2 |
− | |||
*弦乐 | *弦乐 | ||
− | * | + | *41 Violin 小提琴 |
− | * | + | *42 Viola 中提琴 |
− | * | + | *43 Cello 大提琴 |
− | * | + | *44 Contrabass 低音大提琴 |
− | * | + | *45 Tremolo Strings 弦乐群颤音音色 |
− | * | + | *46 Pizzicato Strings 弦乐群拨弦音色 |
− | * | + | *47 Orchestral Harp 竖琴 |
− | * | + | *48 Timpani 定音鼓 |
+ | |width="33%" valign="top" align="left"| | ||
*合奏/合唱 | *合奏/合唱 | ||
− | * | + | *49 String Ensemble 1 弦乐合奏1 |
− | * | + | *50 String Ensemble 2 弦乐合奏2 |
− | * | + | *51 Synth Strings 1 合成弦乐合奏1 |
− | * | + | *52 Synth Strings 2 合成弦乐合奏2 |
− | * | + | *53 Choir Aahs 人声合唱“啊” |
− | * | + | *54 Voice Oohs 人声“嘟” |
− | * | + | *55 Synth Voice 合成人声 |
− | * | + | *56 Orchestra Hit 管弦乐敲击齐奏 |
*铜管 | *铜管 | ||
− | * | + | *57 Trumpet 小号 |
− | * | + | *58 Trombone 长号 |
− | * | + | *59 Tuba 大号 |
− | * | + | *60 Muted Trumpet 加弱音器小号 |
− | * | + | *61 French Horn 法国号(圆号) |
− | * | + | *62 Brass Section 铜管组(铜管乐器合奏音色) |
− | * | + | *63 Synth Brass 1 合成铜管音色1 |
− | * | + | *64 Synth Brass 2 合成铜管音色2 |
*簧管 | *簧管 | ||
− | * | + | *65 Soprano Sax 高音萨克斯风 |
− | * | + | *66 Alto Sax 次中音萨克斯风 |
− | * | + | *67 Tenor Sax 中音萨克斯风 |
− | * | + | *68 Baritone Sax 低音萨克斯风 |
− | * | + | *69 Oboe 双簧管 |
− | * | + | *70 English Horn 英国管 |
− | * | + | *71 Bassoon 巴松(大管) |
− | * | + | *72 Clarinet 单簧管(黑管) |
*笛 | *笛 | ||
− | * | + | *73 Piccolo 短笛 |
− | * | + | *74 Flute 长笛 |
− | * | + | *75 Recorder 竖笛 |
− | * | + | *76 Pan Flute 排箫 |
− | * | + | *77 Bottle Blow [中文名称暂缺] |
− | * | + | *78 Shakuhachi 日本尺八 |
− | * | + | *79 Whistle 口哨声 |
− | * | + | *80 Ocarina 奥卡雷那 |
*合成主音 | *合成主音 | ||
− | * | + | *81 Lead 1 (square) 合成主音1(方波) |
− | * | + | *82 Lead 2 (sawtooth) 合成主音2(锯齿波) |
− | * | + | *83 Lead 3 (caliope lead) 合成主音3 |
− | * | + | *84 Lead 4 (chiff lead) 合成主音4 |
− | * | + | *85 Lead 5 (charang) 合成主音5 |
− | * | + | *86 Lead 6 (voice) 合成主音6(人声) |
− | * | + | *87 Lead 7 (fifths) 合成主音7(平行五度) |
− | * | + | *88 Lead 8 (bass+lead)合成主音8(贝司加主音) |
− | |||
*合成音色 | *合成音色 | ||
− | * | + | *89 Pad 1 (new age) 合成音色1(新世纪) |
− | * | + | *90 Pad 2 (warm) 合成音色2 (温暖) |
− | * | + | *91 Pad 3 (polysynth) 合成音色3 |
− | * | + | *92 Pad 4 (choir) 合成音色4 (合唱) |
− | * | + | *93 Pad 5 (bowed) 合成音色5 |
− | * | + | *94 Pad 6 (metallic) 合成音色6 (金属声) |
− | * | + | *95 Pad 7 (halo) 合成音色7 (光环) |
− | * | + | *96 Pad 8 (sweep) 合成音色8 |
+ | |width="33%" valign="top" align="left"| | ||
*合成效果 | *合成效果 | ||
− | * | + | *97 FX 1 (rain) 合成效果 1 雨声 |
− | * | + | *98 FX 2 (soundtrack) 合成效果 2 音轨 |
− | * | + | *99 FX 3 (crystal) 合成效果 3 水晶 |
− | * | + | *100 FX 4 (atmosphere) 合成效果 4 大气 |
− | * | + | *101 FX 5 (brightness) 合成效果 5 明亮 |
− | * | + | *102 FX 6 (goblins) 合成效果 6 鬼怪 |
− | * | + | *103 FX 7 (echoes) 合成效果 7 回声 |
− | * | + | *104 FX 8 (sci-fi) 合成效果 8 科幻 |
*民间乐器 | *民间乐器 | ||
− | * | + | *105 Sitar 西塔尔(印度) |
− | * | + | *106 Banjo 班卓琴(美洲) |
− | * | + | *107 Shamisen 三昧线(日本) |
− | * | + | *108 Koto 十三弦筝(日本) |
− | * | + | *109 Kalimba 卡林巴 |
− | * | + | *110 Bagpipe 风笛 |
− | * | + | *111 Fiddle 民族提琴 |
− | * | + | *112 Shanai 山奈 |
*打击乐器 | *打击乐器 | ||
− | * | + | *113 Tinkle Bell 叮当铃 |
− | * | + | *114 Agogo [中文名称暂缺] |
− | * | + | *115 Steel Drums 钢鼓 |
− | * | + | *116 Woodblock 木鱼 |
− | * | + | *117 Taiko Drum 太鼓 |
− | * | + | *118 Melodic Tom 通通鼓 |
− | * | + | *119 Synth Drum 合成鼓 |
− | * | + | *120 Reverse Cymbal 铜钹 |
*Sound Effects 声音效果 | *Sound Effects 声音效果 | ||
− | * | + | *121 Guitar Fret Noise 吉他换把杂音 |
− | * | + | *122 Breath Noise 呼吸声 |
− | * | + | *123 Seashore 海浪声 |
− | * | + | *124 Bird Tweet 鸟鸣 |
− | * | + | *125 Telephone Ring 电话铃 |
− | * | + | *126 Helicopter 直升机 |
− | * | + | *127 Applause 鼓掌声 |
− | * | + | *128 Gunshot 枪声 |
|} | |} | ||
===MIDI打击乐器组(GM1+GM2)=== | ===MIDI打击乐器组(GM1+GM2)=== | ||
− | + | {| border="0" cellpadding="10" width="100%" | |
− | + | |- | |
− | + | |width="33%" valign="top" align="left"| | |
− | + | *27-High Q-电子乐中的按钮声 | |
− | + | *28-Slap-拍打声 | |
− | + | *29-Scratch Push-特效处理推音 | |
− | + | *30-Scratch Pull-特效处理拉(勾)音 | |
− | + | *31-Sticks-鼓棒敲击声 | |
− | + | *32-Square Click-敲方板 | |
− | + | *33-Metronome Click-节拍器击打 | |
− | + | *34-Metronome Bell-节拍器铃声 | |
− | + | *35-Acoustic Bass Drum-原声大鼓(低音大鼓) | |
− | + | *36-Bass Drum 1-大鼓1(低音鼓) | |
− | + | *37-Side Stick-敲鼓边 | |
− | + | *38-Acoustic Snare-原声小鼓(军鼓、小鼓) | |
− | + | *39-Hand Clap-拍手 | |
− | + | *40-Electric Snare-电子小鼓(电子军鼓) | |
− | + | *41-Low Floor Tom-低音落地筒鼓 | |
− | + | *42-Closed Hi-Hat-闭合踩镲(闭合双面镲) | |
− | + | *43-High Floor Tom-高音落地筒鼓 | |
− | + | *44-Pedal Hi-Hat-踩镲(踩镲双面镲) | |
− | + | *45-Low Tom-低音筒鼓 | |
− | + | *46-Open Hi-Hat-开放(双面)镲 | |
− | + | *47-Low-Mid Tom-中低音筒鼓 | |
− | + | *48-Hi-Mid Tom-中高音筒鼓 | |
− | + | ||
− | + | |width="33%" valign="top" align="left"| | |
− | + | *49-Crash Cymbal 1-镲击(吊镲)1 | |
− | + | *50-High Tom-高音筒鼓 | |
− | + | *51-Ride Cymbal 1-高架镲1 | |
− | + | *52-Chinese Cymbal-中国镲 | |
− | + | *53-Ride Bell-悬挂钟玲 | |
− | + | *54-Tambourine-铃鼓、小手鼓 | |
− | + | *55-Splash Cymbal-侧击镲、溅开镲声 | |
− | + | *56-Cowbell-牛铃、颈铃 | |
− | + | *57-Crash Cymbal 2-镲击(吊镲)2 | |
− | + | *58-Vibraslap-颤击 | |
− | + | *59-Ride Cymbal 2-高架镲2 | |
− | + | *60-High Bongo-高音邦加鼓 | |
− | + | *61-Low Bongo-低音邦加鼓 | |
− | + | *62-Mute Hi Conga-闷音高音康加鼓 | |
− | + | *63-Open Hi Conga-开放音高音康加鼓 | |
− | + | *64-Low Conga-低音康加鼓 | |
− | + | *65-High Timbale-高音定音鼓 | |
− | + | *66-Low Timbale-低音定音鼓 | |
− | + | *67-High Agogo-高音撞铃(拉丁打铃) | |
− | + | *68-Low Agogo-低音撞铃(拉丁打铃) | |
− | + | *69-Cabasa-卡巴沙铃(珠铃) | |
− | + | *70-Maracas-砂槌(砂铃) | |
− | + | ||
− | + | |width="33%" valign="top" align="left"| | |
− | + | *71-Short Whistle-短口哨 | |
− | + | *72-Long Whistle-长口哨 | |
− | + | *73-Short Guiro-短音刮板(短锯琴、短梗笛) | |
− | + | *74-Long Guiro-长音刮板(长梗笛) | |
− | + | *75-Claves-音棒 | |
− | + | *76-Hi Wood Block-高音木鱼 | |
− | + | *77-Low Wood Block-低音木鱼 | |
− | + | *78-Mute Cuica-闷音鸟鸣桶(短笛) | |
− | + | *79-Open Cuica-开音鸟鸣桶(短笛) | |
− | + | *80-Mute Triangle-闷音三角铁(三角铃) | |
+ | *81-Open Triangle-开音三角铁 | ||
+ | *82-Shaker-摇筛(振动筛) | ||
+ | *83-Jingle Bell-门铃(信号铃、铃铛) | ||
+ | *84-Bell Tree-铃树(树铃) | ||
+ | *85-Castinets | ||
+ | *86-Mute Surdo-闷音苏多鼓 | ||
+ | *87-Open Surdo-开音苏多鼓 | ||
+ | |} | ||
|} | |} |
2017年4月25日 (二) 06:04的最新版本
Language | English |
---|
Microduino AudioPro是以VS1053为解码器,集成2.2W立体声功放,并且支持2.5mm立体声耳机接口的多功能音频模块,支持MIDI功能
目录特色
规格
引脚说明
文档
开发
图库
附录MIDI numbers,Note names and frequencies可参考:NUSW
MIDI旋律乐器组(GM1)
MIDI打击乐器组(GM1+GM2)
|