Microduino-Module AudioPro

From Microduino Wiki
Revision as of 09:23, 25 July 2016 by Fengfeng (talk) (Created page with "{{Language|Microduino-AudioPro}} {| style="width: 1000px;" |- | 400px|thumb|right|Microduino-AudioPro Microduino AudioPro is a multifunct...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
Language: English  • 中文
Microduino-AudioPro

Microduino AudioPro is a multifunctional audio module, with VS1053 as the decoder, integrating 2.2W stereo amplifying, and supporting 2.5mm stereo earphone interface and MIDI function.


Features

  • Support multiple formats of decoding:MP3/WMA/AAC/WAV/Ogg Vorbis/MIDI.
  • Can real-time imitate as much as 128 kinds of MIDI instruments.
  • Integrate 2.2w stereo amplifier.
  • With 2.5mm stereo earphone interface onboard.
  • Earphone/extroverted automatic switchover function.
  • SPI high-speed communication interface.
  • Small, cheap, stackable and open;
  • Open-source hardware circuit design, and compatible-with-Arduino programming development environment;
  • Unified Microduino interface specification and abundant periphery modules, which can be quickly extended and connected with other modules and sensors which meet the Microduino interface specification, conveniently and flexibly;
  • 2.54-spacing mother line interface is convenient for integration to the pegboard.

Specification

  • Support multiple formats of decoding:MP3/WMA/AAC/WAV/Ogg Vorbis/MIDI
  • Can real-time imitate as much as 128 kinds of MIDI instruments.
    • Universal MIDI and file 0 in SP‐MIDI format can be played, and files in format 1 and 2 must be transformed into format 0 by the users.
    • Number of polyphony is 64 at most, and the number of polyphony that can continue at most is 40.
  • Integrate 2.2w stereo amplifier(LM4863)
    • Can control the enable through the GPIO4 of VS1053.
  • With 2.5mm stereo earphone interface onboard.
  • Earphone/extroverted automatic switchover function.
  • 18-bit oversampling, multi-bit, sigma‐delta type high-precision DAC
    • Oversampling generally refers to higher sampling rate several times than the nominal sampling rate, and it is commonly used to improve the sampling accuracy. It means when restore the digital sound, use sampling rate several times higher than the nominal sampling rate to output, which can make the abrupt of the ladder of the audio flatten out, to lower the digital background noise and reduce the distortion, thereby get high-quality audio surpassing the effect of the original sampling rate outputting.
  • SPI high-speed communication interface
  • Electrical specification
    • VS1053:3.3V,30~60mA
    • LM4863:5V,1A

Introduction of Pins

  • Pin D2 is real-time MIDI interface.
    • Real-time MIDI is not enabled by default. If you want to enable it, just short connect the jumper on the back of the module.
    • After enabling the real-time MIDI, the baud rate of UART should be 31250bps, and SPI interface at this time can’t be used.
Microduino-AudioPro Spec


Names of pins of module AudioPro Microduino pins Functions
SCK D13 SPI bus clock
SI D12 Data inputting pin
SO D11 Data outputting pin
CS A3 SPI chip selecting signal(need be defined in the program)
DCS A2 Data/command mode choose (need be defined in the program)
DERQ 3 Interrupt the output (need be defined in the program)
MIDI 2 MIDI input (not enabled by default)

Documents

Development

  • You can implement the function test through _06_Microduino_AudioPlus_VS1053 library:github
  • The relevant sample programs to download:github
    • Audio_MIDI during them is the sample program that the SPI interface real-time realizes MIDI through loading patches.
    • Audio_ROM during them is the sample program to play the audio files in ROM.
  • The material of MIDI can be seen in the Appendix.
  • Tool for the hexadecimal to audio files:File:DataToHex.zip

Application

FAQ

History

Gallery

Microduino-AudioPro TOP
Microduino-AudioPro BUT

Video

Appendix

MIDI numbers,Note names and frequencies

You can refer to:NUSW

MIDIlist
  • 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 Melody Instruments Group(GM1)

  • Piano
  • 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
  • Color percussion instruments
  • 9 Celesta
  • 10 Glockenspiel
  • 11 Music box
  • 12 Vibraphone
  • 13 Marimba
  • 14 Xylophone
  • 15 Tubular Bells
  • 16 Dulcimer
  • Organ
  • 17 Hammond Organ
  • 18 Percussive Organ
  • 19 Rock Organ
  • 20 Church Organ
  • 21 Reed Organ
  • 22 Accordian
  • 23 Harmonica
  • 24 Tango Accordian
  • Guitar
  • 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
  • Bass
  • 33 Acoustic Bass
  • 34 Electric Bass(finger)
  • 35 Electric Bass (pick)
  • 36 Fretless Bass
  • 37 Slap Bass 1
  • 38 Slap Bass 2
  • 39 Synth Bass 1
  • 40 Synth Bass 2
  • String instruments
  • 41 Violin
  • 42 Viola
  • 43 Cello
  • 44 Contrabass
  • 45 Tremolo Strings
  • 46 Pizzicato Strings
  • 47 Orchestral Harp
  • 48 Timpani
  • Concert/chorus
  • 49 String Ensemble 1
  • 50 String Ensemble 2
  • 51 Synth Strings 1
  • 52 Synth Strings 2
  • 53 Choir Aahs
  • 54 Voice Oohs
  • 55 Synth Voice
  • 56 Orchestra Hit
  • Copper tube
  • 57 Trumpet
  • 58 Trombone
  • 59 Tuba
  • 60 Muted Trumpet
  • 61 French Horn
  • 62 Brass Section
  • 63 Synth Brass 1
  • 64 Synth Brass 2
  • Reed pipes
  • 65 Soprano Sax
  • 66 Alto Sax
  • 67 Tenor Sax
  • 68 Baritone Sax
  • 69 Oboe
  • 70 English Horn
  • 71 Bassoon
  • 72 Clarinet
  • Flutes
  • 73 Piccolo
  • 74 Flute
  • 75 Recorder
  • 76 Pan Flute
  • 77 Bottle Blow
  • 78 Shakuhachi
  • 79 Whistle
  • 80 Ocarina
  • Synthesis of tonic
  • 81 Lead 1 (square)
  • 82 Lead 2 (sawtooth)
  • 83 Lead 3 (caliope lead)
  • 84 Lead 4 (chiff lead)
  • 85 Lead 5 (charang)
  • 86 Lead 6 (voice)
  • 87 Lead 7 (fifths)
  • 88 Lead 8 (bass+lead)
  • LeaclSynth
  • 89 Pad 1 (new age)
  • 90 Pad 2 (warm)
  • 91 Pad 3 (polysynth)
  • 92 Pad 4 (choir)
  • 93 Pad 5 (bowed)
  • 94 Pad 6 (metallic)
  • 95 Pad 7 (halo)
  • 96 Pad 8 (sweep)
  • Synthetic effects
  • 97 FX 1 (rain)
  • 98 FX 2 (soundtrack)
  • 99 FX 3 (crystal)
  • 100 FX 4 (atmosphere)
  • 101 FX 5 (brightness)
  • 102 FX 6 (goblins)
  • 103 FX 7 (echoes)
  • 104 FX 8 (sci-fi)
  • Folk instruments
  • 105 Sitar
  • 106 Banjo
  • 107 Shamisen
  • 108 Koto
  • 109 Kalimba
  • 110 Bagpipe
  • 111 Fiddle
  • 112 Shanai
  • Percussion instruments
  • 113 Tinkle Bell
  • 114 Agogo
  • 115 Steel Drums
  • 116 Woodblock
  • 117 Taiko Drum
  • 118 Melodic Tom
  • 119 Synth Drum
  • 120 Reverse Cymbal
  • Sound Effects
  • 121 Guitar Fret Noise
  • 122 Breath Noise
  • 123 Seashore
  • 124 Bird Tweet
  • 125 Telephone Ring
  • 126 Helicopter
  • 127 Applause
  • 128 Gunshot

MIDI Percussion Instruments Group(GM1+GM2)

  • 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
  • 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
  • 49-Crash Cymbal 1
  • 50-High Tom
  • 51-Ride Cymbal 1
  • 52-Chinese Cymbal
  • 53-Ride Bell
  • 54-Tambourine
  • 55-Splash Cymbal
  • 56-Cowbell
  • 57-Crash Cymbal 2
  • 58-Vibraslap
  • 59-Ride Cymbal 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
  • 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