LogoLogo
  • Hello!
  • The Device
    • Device basics
    • Plugging in a module
  • APP
    • Downloading the app
    • Before you start
    • Connecting to The Device
    • Setting a module
    • Using the IMU
    • Logging in / account
    • Checking battery power
    • Renaming the Device
    • Updating the firmware
    • Beacon
  • STARTER PROJECTS
    • Interactive Lighting
    • Touch-Free Music Remote
    • Air Quality Monitor
  • Equations
    • Getting started with equations
    • Equation logic
    • Inputs
    • Outputs
      • Keyboard mode
      • Glow Output & Lighting
        • Fade
        • Dot
        • Arc
        • Rainbow
        • Glitter
      • Cloud Output
    • Sequences
    • Casting an equation
    • Editing & deleting equations
    • Removing an equation
  • API
    • Languages
      • Javascript
      • Python CSV
    • Platforms
      • Unity
        • Windows
        • MacOS
      • TouchDesigner
      • Unreal Engine
    • Streaming
  • Modes
    • Beacon
  • Modules
    • Button
    • Color
    • Dial
    • Digital
    • Distance
    • Environment
    • Flex
    • Force
    • Gesture
    • Glow
    • Joystick
    • Light
    • Motion
    • Move
    • Proximity
    • Slider
    • Sound
    • Spin
    • Thermal
    • Tone
  • Algorithms
    • Orientation
Powered by GitBook
On this page
  • Instructions
  • Add some flair
  • Get fancy with it
  1. STARTER PROJECTS

Touch-Free Music Remote

PreviousInteractive LightingNextAir Quality Monitor

Last updated 6 months ago

Have you ever been doing the dishes, jamming to your favorite tunes, but then a "skip" comes on and kills your vibe, but you can't skip it because your hands are wet? Whether you have experienced any variation of this incredibly specific situation, or in general you want to change how you interact with your music, this is the project for you.

Materials Needed
IF Magic Knowledge

Instructions

1

Add Module

2

Build Equation

  1. To do so, first add a "when" statement by tapping the blue plus button and choosing logic. Tap "when this happens."

  1. Next, tap "this happens" in the sentence, choose "gesture" under inputs, and select "left."

  1. To add the keyboard "previous track command," tap "do this" in the sentence, select "Keyboard" under outputs, and choose "previous track."

  1. Repeat the above steps for the other gesture directions and keyboard outputs:

    1. Right - Next Track

    2. Up - Volume Up

    3. Down - Volume Down

3

Cast

Cast your equation onto your IF Magic Device. Make sure to set the gesture module to Port 3 and the button to Port 1 as your keyboard reset.

4

Connect

Open the phone / computer with the music app and go to Bluetooth Settings. Scan for devices and connect to the system called Magic.

5

Play 🎶

Once connected, open your music app and begin playing a song. Swipe over the gesture sensor and control your music.

Add some flair

Once you have the project working, you can add further features until you have the music control of your dreams. Here are some ideas to get you started:

  • Set play / pause to trigger when your door is opened using a distance module or the IMU

  • Adjust the volume of your music based on ambient volume using a sound module (example logic: when sound is greater than [value], send Volume Down keycode).

Get fancy with it

Before starting, turn on your IF Magic Device and all existing equations and modules. your gesture module into Port 3 of the Device / Bare² and to a gesture module in the app. Test out your gesture module by waving your hand back and forth across the module. The port should read "left", "right," "up," and "down" - get a sense for which direction is which and what orientation you want to set the hardware in so that the correct swipe will lead to the correct keycode command.

The next step is to build an that matches the logic shown here:

Add a play / pause keycode that is triggered by a clap using the or by hovering your hand over a

Now that you have your music controller, why not add some light outputs as well? Use a to add a light show to your music (example logic: when distance is less than [value], send Play/Pause keycode, set glow color to "Fade" pattern, with brightness set to sound).

Equations
Keyboard Mode
clear
Plug
set the port
equation
sound module
distance module
glow module
Gesture Module
Button Module
Music Swipe