Welcome Guest, you are in: Login

EventIDE Wiki

RSSRSS

Navigation




Search the wiki


PoweredBy

Page History: MIDI Input Element

Compare Page Revisions



« Older Revision - Back to Page History - Newer Revision »


Page Revision: 2012/10/07 16:46


Element Icon MIDI Input
Info
Category: Behavior Control AddIn: Base Elements
Creator: OkazoLab Team Scope: Parent Event
Owns Snippets: Trigger Usage: Snippets

The element is capable of reading the input of various MIDI devices connected to a PC. MIDI is a commonly-accepted protocol for communication with digital musical instruments, like a MIDI piano keyboard. The MIDI Input element can record a instrumental music played in real-time as a sequence of notes.


Description

On onset of the parent event the MIDI input element starts to reads real-time input of a MIDI Device and record all received notes. The each note recorded information includes the MIDI channel number, note name, playback start time, duration, octave number, note's sound frequency and button press velocity (or volume). The element can also detect presses of the control buttons, e.g. program change. The recorded notes and events can be easily accessed in code and logged. The element is designed for experiments, where participants' input is produced by playing a music with MIDI compatible instruments.

Snapshots

 Note names and sound frequencies

Note names and
sound frequencies


Practical Use

Technique 1

  1. Add new MIDI input element into the events where you plan to record a melody played by a participant
  2. Step 2

Technique 2

  1. Step 1
  2. Step 2

 // Check the trial outcome. Result and RT just other user variables
// insert code snippet here..

Element actions aligned with different epochs of the parent event

EpocheActions
Initialized
Rendered
Activating
Activated
Running
Deactivated
Deinitialized

Notes

Insert Notes here..

Properties

Generic Properties

NameDescriptionAttributesValue TypeProxy Reflex
Category Name
MIDI DeviceFill it System.Int32
Buffer SizeFill ittSystem.Int32
Buffer SizeFill ittSystem.Int32



+=== Properties inherited from clElement === Inherited properties of clElement
NameDescriptionConstraintsValue TypeUpon Change
Control
Is EnabledIf set to false the element is completely omitted when the experiment is run.Boolean
TitleTitle of the element.String

ScrewTurn Wiki version 5.2.0.8. Some of the icons created by FamFamFam.