Difference between revisions of "Laser Strings"

From I-CubeX Wiki
Jump to: navigation, search
(Pairing for Configuration)
 
(21 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
<embedvideo service="youtube">https://www.youtube.com/watch?v=b9DfxGltQT4</embedvideo>
 
<embedvideo service="youtube">https://www.youtube.com/watch?v=b9DfxGltQT4</embedvideo>
 +
  
 
==What you need==
 
==What you need==
Line 10: Line 11:
 
*A [http://infusionsystems.com/catalog/product_info.php/products_id/556 SeeLaser-GreenWide] or any laser of your choice
 
*A [http://infusionsystems.com/catalog/product_info.php/products_id/556 SeeLaser-GreenWide] or any laser of your choice
 
*An iPad (or other iOS device) running GarageBand
 
*An iPad (or other iOS device) running GarageBand
 +
  
 
==Hardware Setup==
 
==Hardware Setup==
Line 15: Line 17:
 
First, plug in the ReachCloseD into input 1, The Flash into input 2, and the laser into any other slot:
 
First, plug in the ReachCloseD into input 1, The Flash into input 2, and the laser into any other slot:
  
[[File:usbmd_connect.jpg|300px]]
+
 
 +
[[File:WiDig-100.plug.800x640.jpg|300px]]
  
 
Next, connect the WiDig via a micro-USB cable to a charged USB battery pack, or a USB power supply.
 
Next, connect the WiDig via a micro-USB cable to a charged USB battery pack, or a USB power supply.
 +
  
 
==Pairing for Configuration==
 
==Pairing for Configuration==
  
Follow either the [[#pairing_osx Mac OS]] or [[#pairing_win Windows]] instructions below:
+
Follow the [[WiDig-800_QuickStart|WiDig QuickStart pages for BLE pairing instructions]] for Windows or Mac OS
 +
 
 +
 
 +
==<span id="editor_config"></span>EditorX Configuration==
 +
 
 +
Now its time to set up the sensors to map to MIDI messages. In the example, we emit two parameters:
 +
 
 +
 
 +
===Mapping the ReachCloseD's distance value to pitch bend===
 +
 
 +
Turn on the first sensor input, select the sensor type to digital, and then choose "pitch bend" as the output message type. The configuration should look like the following:
 +
 
 +
 
 +
[[File:editor-80_sensor_reachclosed_bend.png | 500px]]
 +
 
 +
 
 +
 
 +
===Mapping the Flash sensor to note on/off===
 +
 
 +
We start with an analog, continuous input for sensor 2 and map it to a note out message:
 +
 
 +
 
 +
[[File:editor-80_sensor_analog.png | 500px]]
 +
 
 +
 
 +
To trigger the note message, we deselect "continuous" and then add the "peak" and "peak end" options in the processing menu. Map the output to a note on message:
 +
 
 +
 
 +
[[File:editor-80_sensor_processing.png | 500px]]
  
===<span id="pairing_osx"></span>Mac OSX===
 
  
Open Audio MIDI Setup under Applications/Utilities
+
The above configuration will emit a note ON message when the sensor value goes above the threshold, and "peak end" results in a note OFF when it drops below the threshold. However, since we want it to trigger the note when the beam is interrupted, we have to invert the behaviour. To do so, select the "invert" option in the processing menu:
  
[[File:Osx-audio-midi.png ‎]]
 
  
Go to "MIDI Studio":
+
[[File:editor-80_sensor_processing_inv.png | 300px]]
  
[[File:Osx-midi-studio.png ]]
 
  
Double click the Bluetooth icon:
+
We are almost ready! Now we can disconnect the WiDig from the system, and then start using it with iOS!
  
[[File:Osx-bluetooth-midi.png ]]
+
You can disconnect the device using the system bluetooth menu, or simply unplug and replug the device:
  
Select the WiDig device, and press the "connect" button:
 
  
[[File:Osx-bluetooth-connect.png ]]
+
[[File:Osx-bluetooth-disconnect.png |200px]]
  
proceed to the next step
 
  
===<span id="pairing_win"></span>Windows===
 
  
 +
==Connect in GarageBand==
  
==<span id="editor_config"></span>EditorX Configuration==
+
Follow the iOS instructions in [[Widig-800_QuickStart_iOS|WiDig QuickStart]] to pair and connect to the BLE port. Once connected, you should be able to see the MIDI messages being received by the instrument! In the demo we have used the "Smart Guitar" and "Erhu" instruments. But feel free to experiment with other sounds as well!
 +
 
 +
Some useful CC parameters:
 +
 
 +
CC 1 - Modulation
  
Now its time to set up the sensors to map to MIDI messages. In the example, we emit two parameters:
+
CC 7 - Volume
  
1.) The ReachCloseD's distance value is mapped to pitch bend
+
CC 11 - Expression
  
2.) The Flash sensor emits a note on/off pair when the laser light is interrupted
+
Do note that the instruments in GarageBand, unlike a full fledged synthesizer, may not respond to many CC values. The above 3 we have found to work with a number of patches. Other things to try include note on/off messages, and of course pitch bend which works for most instruments.

Latest revision as of 18:05, 25 July 2018


What you need

For this walkthrough, you will need:


Hardware Setup

First, plug in the ReachCloseD into input 1, The Flash into input 2, and the laser into any other slot:


WiDig-100.plug.800x640.jpg

Next, connect the WiDig via a micro-USB cable to a charged USB battery pack, or a USB power supply.


Pairing for Configuration

Follow the WiDig QuickStart pages for BLE pairing instructions for Windows or Mac OS


EditorX Configuration

Now its time to set up the sensors to map to MIDI messages. In the example, we emit two parameters:


Mapping the ReachCloseD's distance value to pitch bend

Turn on the first sensor input, select the sensor type to digital, and then choose "pitch bend" as the output message type. The configuration should look like the following:


Editor-80 sensor reachclosed bend.png


Mapping the Flash sensor to note on/off

We start with an analog, continuous input for sensor 2 and map it to a note out message:


Editor-80 sensor analog.png


To trigger the note message, we deselect "continuous" and then add the "peak" and "peak end" options in the processing menu. Map the output to a note on message:


Editor-80 sensor processing.png


The above configuration will emit a note ON message when the sensor value goes above the threshold, and "peak end" results in a note OFF when it drops below the threshold. However, since we want it to trigger the note when the beam is interrupted, we have to invert the behaviour. To do so, select the "invert" option in the processing menu:


Editor-80 sensor processing inv.png


We are almost ready! Now we can disconnect the WiDig from the system, and then start using it with iOS!

You can disconnect the device using the system bluetooth menu, or simply unplug and replug the device:


Osx-bluetooth-disconnect.png


Connect in GarageBand

Follow the iOS instructions in WiDig QuickStart to pair and connect to the BLE port. Once connected, you should be able to see the MIDI messages being received by the instrument! In the demo we have used the "Smart Guitar" and "Erhu" instruments. But feel free to experiment with other sounds as well!

Some useful CC parameters:

CC 1 - Modulation

CC 7 - Volume

CC 11 - Expression

Do note that the instruments in GarageBand, unlike a full fledged synthesizer, may not respond to many CC values. The above 3 we have found to work with a number of patches. Other things to try include note on/off messages, and of course pitch bend which works for most instruments.