IBVA4 User Manual

 

5.6: Brain peak MIDI

5.6.0: About Core MIDI

"Apple MIDI Manager" was used in early versions of IBVA. After that another company made "OMS" which was used with other interfaces for MIDI. The new Apple MIDI interface, "Core MIDI" is a much better connection for external devices and inter-application communication. IBVA4 uses this new MIDI communication protocol. It is easy to connect MAX, Garage Band, other applications, and external entities via the Core MIDI virtual MIDI port: IAC (Inter Application Communication).

You can create a different setup (1 to 128) for each IBVA Data channel (1 to 4 and coherence) in the "Brain peak MIDI" window. Each IBVA data channel can translate MIDI in a different way and can send MIDI to a different MIDI port with a different MIDI Out Tempo.

MIDI Hardware Connection

  • To play MIDI sounds via an external MIDI entity, or to send MIDI to an external MIDI entity like a lighting control system, mixing console, etc., you need to install a USB MIDI driver and hardware to connect to the external MIDI device.
  • Then you can setup the "Audio MIDI Setup” in the Application/Utilities folder.
  • If you want to send MIDI to MAX, Garage Band, and other applications via the virtual MIDI port, then there is no need to setup like this.

Virtual MIDI Port

  • If you choose to run the MAX application, then it will create its own virtual MIDI port, even if you are not using MIDI.
  • You need to update and/or reload the MIDI port in order to access this port.
  • IBVA4 creates its own virtual MIDI port called "IBVA" when you setup the Preferences for the "Brain peak MIDI" and/or "Brain rhythm MIDI" windows.
  • If you have not setup the Preferences in the "Brain peak MIDI" and/or "Brain rhythm MIDI" windows, then IBVA4 will not create its own virtual MIDI port.
  • Garage Band does not create its own virtual MIDI port. All MIDI ports automatically connect to Garage Band.
  • Garage Band always monitors the MIDI port connected.
  • To send MIDI from IBVA4 to Garage Band, you must select MIDI Out port "IBVA" in the IBVA4 application. There is no need to setup anything further in Garage Band.

5.7.1: Open Preferences, click "Brain peak MIDI"

The current default "Setup" is for NO 1. For this setup, there is a maximum of 128 different ways of setting all the window information, which will be stored in a "Brain Note" file, when you save.

To change the selected setup, you must type a number in the setup number field, or you can use the setup stepper or the popup menu.

Type the name in to the setup name field, then press the 'Enter' key – this creates the name for this setup and will show it in the "Setup" popup menu.

Turn ON "Play AU DLS Synth".

Turn ON "ON MIDI out".

Then IBVA4 will start playing MIDI sound with Tempo 120 as the default setup. To change the Tempo use the slider, or type a number in the Tempo field, or use the popup menu.

To change a MIDI Instrument, click "Pick Instrument", or you can type a number in the Program Change field, or you can use the stepper or popup menu.

Move the slider for "Peak frequency" in order to test the input peak frequency translation into MIDI Pitch numbers, as the output sound changes.

Translation adjustment is done by typing a number in the MAX, MINI frequency field and Number A, Number B field, or by using the slider to setup a number.

Default play peak mode is "Play note only when peak in the selected frequency range".

Input slider range is 0 to 60 Hz. You can adjust the selected MINI and MAX to play a peak frequency range by selecting the "Set Frequency range", or by typing a  number in the MAX and MINI frequency field, or by using the slider to setup a number.

MIDI play changes only happen when the input slider range is in this MAX and MIN range. Move the slider and see how the translation changes happen.

Select "Play note only when peak in the selected frequency range"

The input slider range is 0 to 60 Hz. You can adjust the selected MINI and MAX to play a peak frequency range, by selecting "Set Frequency range", or type a  number in the MAX and MINI frequency field, or use the slider to setup a number.

Then move the slider "Peak frequency" so you can test how the input peak frequency translates into MIDI Pitch numbers as the out put MIDI sound changes.

Turn ON "Active Brain data Input" to start translating actual brain wave peak data into MIDI Notes.

IBVA4 will start to play MIDI from the brainwave peak frequency and power. If the peak power input is too low, then you must adjust the MAX power number to a lower value.

Select "Play only when pitch changed" will set MIDI output changes to happen only when the brain wave peak frequency changes.

Try a different "Tempo", "Program Change = Instrument", "Set frequency range" to play MIDI sound.

This way there is no need to connect any external device to the Mac.

If you want to play an external device, then select it by opening the "MIDI out port" popup menu.

The Port name depends on the USB MIDI interface setup in the "Audio MIDI Setup".

If you select to "Play AU DLS Synth" and select "MIDI out port", then MIDI will play simultaneously – the internal Mac sound and other MIDI connecting sound.

If you select to "Play AU DLS Synth" from the "MIDI out port" popup menu, and you have not selected the "Play AU DLS Synth" button, then it will only play from the internal Mac sounds.

If you change MIDI connections, such as  running the MAX application, you will need to quit the MAX application, connect or disconnect the external MIDI entity, and then click "Reload MIDI port".

Then it will show the new port name in the "MIDI out port" popup menu.

If using Coherence, you need to select the peak mode to "Use peak in the BS total count at BS CH:" or "Play only when peak BS total count in the selected range".

Because the coherence number changes happen from 0 to 100 %, it is a very different from the peak power changes. You need to use the Brain switch (BS) function.

See 11:, 13:, 14: for this function detail.

Output number will be translated by selecting "MIDI Pitch", "MIDI Velocity", "MIDI Channel", "MIDI Program Change", "MIDI Pitch Bend", "MIDI Control Change V" and "MIDI Control N".

If you you like to set any number to this MIDI message, then change "Number A" and "Number B" to the number you wish to send or use for MIDI message.

* When selecting "Active Brain data Input", in the input peak frequency field, the number and slider will automatically change sometimes, but not every time (?).

MIDI play will remain continuous. To always see the numbers and slider changing you need to set "MIDI out Tempo" to ‘real-time’.

* If you keep playing the same MIDI note for a long time while testing, (when the actual brain waves are playing, it usually doesn't happen in this same way. The prolonged sound happens when testing MIDI internal sound play; the internal Mac sound will stop. MIDI sent to an external device will continue without stopping.

* When you use the internal Mac MIDI sound, only MIDI Channel 1 to 8 work. Each MIDI Channel can be setup for different instruments, So a maximum of 8 different instruments can be played from the internal Mac MIDI sounds.

* In case open this information from recorded Brain Note file, then all number in this window will translated to "Integer".

Preferences Window for Brain Peak MIDI

5.7.2: Other Files for Testing MIDI Communication

testF.sit : (1.8 MB) -> testF (5.5 MB)

Files included:

MIDIkeyTest2: MAX application for test "Brain peak MIDI", virtual MIDI port: IAC (Inter Application Communication)

MIDI Channel LED2 : MAX application for test "Brain rhythm MIDI", virtual MIDI port: IAC.

Sample MAX application MIDIkeyTest2 shows how works this function.

You need to select the name of the same virtual MIDI port as in the "Brain peak MIDI" and "MIDIkeyTEst2".

For example setup for Brain Data Channel 1 select virtual MIDI port "MIDIkeyTEst2 1",

Brain Data Channel 2 select virtual MIDI port "MIDIkeyTEst2 2",

Brain Data Channel 3 select virtual MIDI port "IBVA",

Then send MIDI data to each keyboard.

Within MIDIkeyTest2 application, you can see MIDI note, velocity, channel, and program change number.

Other applications and/or system can use brain wave peak data to do many things, such as control Quick time movies, movie effects, sound effects, 3 D space sound effects, control Laser animations, control lighting, etc.

* Velocity number in this MIDIkeyTest2 is generated by MIDI keyboard object in the MAX. it is always 64.

This number is not the velocity number sent from IBVA4.

MIDI Key Test Window

In case you change MIDI entity connection and/or run an application which creates a virtual MIDI port like MAX, then click "Reload MIDI port". The name for the current connecting port will now be shown.

"Brain peak MIDI" will work with "Brain rhythm MIDI". This means controlling other application and/or system and playing MIDI sounds with brain peak happens simultaneously.

You can play sounds by brain peaks and make sound effects to use brain rhythm.

5.7.3:Sample MIDI test screen.

No need to connect any MIDI hardware to test this way.

Open 3 preference "Brain peak MIDI" window, make size small (click small triangle at Left side of window).

send MIDI to MIDIkeyTest2 from each setup window.

this way it is easy to explain how each preference setup sends MIDI to other applications.

you can move slider in each preference, to see how MIDI data goes to MIDIkeyTest2.

after all preferences are closed, MIDI data will continue to be sent to MIDIkeyTest2.

You can test with only one preference window open or many window open, and can send MIDI to many number of applications and external MIDI device simultaneously.

* Update speed to send MIDI depends on Mac system speed and the amount of IBVA4's windows open.

* Note velocity Number from the MIDIkeyTest2's keyboard is 64, which is created with the MAX keyboard. Velocity number is not  from IBVA4.

Preferences Window as Relates to MIDI Key Test Window