arduino midiハック - morecat labmorecatlab.akiba.coocan.jp/lab/wp-content/uploads/2013/...table...

Download Arduino MIDIハック - morecat labmorecatlab.akiba.coocan.jp/lab/wp-content/uploads/2013/...Table of Contents 1. MIDIとは • MIDI信号と意味 • シリアルMIDIとUSB-MIDI

If you can't read please download the document

Post on 14-Jul-2018

257 views

Category:

Documents

3 download

Embed Size (px)

TRANSCRIPT

  • Arduino MIDI ArduinoMIDI

    Nov, 16, 2013

    @morecat_lab!Yoshitaka Kuwata!

  • Table of Contents 1. MIDI

    MIDI MIDIUSB-MIDI iPadMIDI MIDI

    Monaka 2. ArduinoMIDI

    MIDI USB-MIDI (Teensy, Uno w/ MocoLUFA, Leonardo) 3. MocoLUFA

    MocoLUFAUSB-MIDI MocoLUFA 4.

    2

  • MIDI (Musical Instrument Digital Interface) 1981

    MIDIMIDI Manufacturers Association (MMA)

    (General MIDI) MIDI(SMF)

    MIDI

    3

  • MIDI

    4

    1. MIDI (MIDI) 31.25Kbps 5mA 5PIN DIN 5PIN DINMIDI

    2. MIDI 38.4Kbps RS-232C+-12V D9PIN

    3. USB-MIDI USB Universal Serial Bus Device Class Definition for MIDI Devices

    http://www.usb.org/developers/devclass_docs/midi10.pdf

  • 5mA 5PIN DIN

    MIDI http://playground.arduino.cc/Main/MIDILibrary

    Arduino MIDI

    5

    Sparkfun MIDI Breakout Board Sparkfun MIDI Shield MIDI-OUT

  • MIDI http://playground.arduino.cc/Main/MIDILibrary

    Running Status

    Arduino MIDI

    6

    MIDI.sendNoteOn (note, velocity, channel) MIDI.sendNoteOff (note, velocity, channel) MIDI.sendPolyPressure (note, pressure, channel) MIDI.sendControlChange (control, value, channel) MIDI.sendProgramChange (program, channel) MIDI.sendAfterTouch (pressure, channel) MIDI.sendPitchBend (value, channel) MIDI.sendSysEx (length, array)

    MIDI.setHandleNoteOff (OnNoteOff) MIDI.setHandleNoteOn (OnNoteOn) MIDI.setHandleVelocityChange (OnVelocityChange) MIDI.setHandleControlChange (OnControlChange) MIDI.setHandleProgramChange (OnProgramChange) MIDI.setHandleAfterTouch (OnAfterTouch) MIDI.setHandlePitchChange (OnPitchChange)

  • USBMIDI

    USB-MIDI (1)

    7

  • USB-MIDI (2)

    8

    MIDIUSB 32bit = 4byte 1

    MIDI

    2MIDI Running Status SysEx3byte

  • USB-Serial USB-MIDI DFUICSP (dualMocoLUFA) USB-Serial Bridge ICSP2

    MocoLUFA

    9

    ATMega328P

    ATMega32u2 USB-Serial

  • MocoLUFA

    10

    USB

    ATMega8U2 ATMega16U2

    ATMega328

    TX/RX

    USB-MIDI MIDI

    Arduino UNO

    I/O PO

    RT

    Moco End User Program (MIDI)

    Serial Boot Loader AVR

    Bootloader USB-CDC

    Arduino CDC Bridge

    USB-MIDIUSB-

  • MocoLUFA

    11

    USB

    ATMega8U2 ATMega16U2

    ATMega328

    TX/RX

    USB-MIDI MIDI

    Arduino UNO

    I/O PO

    RT

    Moco End User Program (MIDI)

    Serial Boot Loader

    Arduino CDC Bridge AVR

    Bootloader USB-CDC

    USB-Arduino IDE ISP

  • MocoLUFA

    12

    USB

    ATMega8U2 ATMega16U2

    ATMega328

    TX/RX

    USB-MIDI MIDI

    Arduino UNO

    I/O PO

    RT

    Moco End User Program (MIDI)

    Serial Boot Loader AVR

    Bootloader USB-CDC

    Arduino CDC Bridge

    USB-MIDIDTM ISP

  • MocoLUFA

    13

    DJMIDI DJ Shield 2 for arduino http://www.dm9records.com/index.php/release/dj-shield2/

    11212

    Arduino

  • MocoLUFA

    14

    http://www.airharp.com/ AutoharpMIDI AirHarp

    The AirHarp is a type of digital autoharp that allows musicians of diverse skill levels to play music of advanced harmonic complexity simply by pressing four pushbuttons and "strumming" invisible harp

    strings in the air. Developed by musician-turned-engineer Peter DeSimone, the AirHarp is pocket-portable and suitable both as an

    introductory instrument and an accompaniment tool for singers and songwriters. It allows direct access to fourteen chords within a given

    key (including the seven diatonic chords), and can automatically transpose to any key with the push of a button

  • MocoLUFA

    15

    OPLL FM-Shield FMOPLL(YM2413)

    ArduinoUSB-MIDI

  • ArduinoMIDI

    MIDI

    MocoLUFA Arduino UnoUSB-MIDI

    Arduino Leonardo

    16

    http://morecatlab.akiba.coocan.jp/