Sending OSC to other apps
djay Pro can send what's happening in your mix to other apps over OSC (Open Sound Control), such as the BPM, the beat, the section that's playing and the position of the faders. Developers and DIYers can use it to build visuals or lighting that react to your DJing.
Connecting djay Pro to an app that supports OSC doesn't make anything happen by itself: you choose in the receiving app which messages to use and what they should do.
djay Pro only sends OSC messages. It can't be controlled over OSC. OSC works the same way on Mac and Windows.
Turning on OSC
- To open the Advanced settings, click the menu button (≡) at the top left of the main toolbar, then click Advanced under Settings.
- Turn on Enable OSC.
- Enter the IP address and Port of the app that receives the messages, for example 127.0.0.1 and 10000 for an app on the same computer.
Status shows whether djay Pro is sending, where to, and how many messages a second. Click Stop to stop sending. If OSC is on when you quit djay Pro, it starts again the next time you open it. Find out more in Advanced settings.
What djay Pro sends
djay Pro sends its messages over UDP. It sends everything it can, and you can't choose which messages it sends, so filter them in the receiving app.
- Values that rarely change, such as playback, the loop or stem levels, are sent only when they change.
- The playback position and level meters are sent continuously, 60 times a second.
- Every address starts with
/djay. Decks areturntable1toturntable4, and the mixer ismixer. The tables below use deck 1 as the example.
Mixer
| Address | What it contains |
|---|---|
/djay/mixer/crossfader | Position of the crossfader: 0 = left, 0.5 = middle, 1 = right |
/djay/mixer/turntable1/lineFader | Position of the line fader (0 to 1) |
/djay/mixer/turntable1/externalLineFader | Position of the line fader on a USB external mixer that sends its fader positions to djay Pro over MIDI (0 to 1) |
/djay/mixer/turntable1/eq/low, /mid, /high | Position of the EQ knobs (-1 to 1) |
/djay/mixer/turntable1/filter/position | Position of the filter knob (-1 to 1) |
/djay/mixer/turntable1/filter/type | The effect chosen for the filter knob |
/djay/mixer/turntable1/meter | Level meter, in dB, before the fader and any output limiter, including the headroom setting. It goes down to -300, red starts at 0, and it can go up to about 24 |
Song
| Address | What it contains |
|---|---|
/djay/turntable1/song/loaded | Whether a song is loaded on the deck (1 or 0) |
/djay/turntable1/song/duration | Length of the song, in seconds |
/djay/turntable1/song/title, /artist, /album, /genre | Song details, as ASCII text. Special characters are sent as \123 escape sequences |
/djay/turntable1/song/key | Key of the song: 0 = C major, 1 = A minor, 2 = D♭ major, 3 = B♭ minor, 4 = D major… |
/djay/turntable1/song/bpm | The song's base BPM, the single value shown in the library. For songs with a changing tempo, it's the best overall value |
Playback
| Address | What it contains |
|---|---|
/djay/turntable1/playback/playing | Whether the deck is playing (1 or 0) |
/djay/turntable1/playback/bpm | Current BPM, including tempo changes you make and changes within the song |
/djay/turntable1/playback/key | Current key, including pitch changes. Same numbers as song/key |
/djay/turntable1/playback/time | Current position in the song, in seconds |
/djay/turntable1/playback/bar | Current bar, counting from 1, matching the bar numbers on the waveform |
/djay/turntable1/playback/beat | Current beat in the bar (1 to 4) |
/djay/turntable1/playback/phase | Position in the current beat (0.0 to 1.0) |
/djay/turntable1/playback/barPhase | Position in the current bar (0.0 to 4.0) |
/djay/turntable1/playback/segment/type | Type of the section that's playing, such as Verse |
/djay/turntable1/playback/segment/upcomingType | Type of the next section, such as Chorus |
Loop
| Address | What it contains |
|---|---|
/djay/turntable1/loop/active | Whether a loop is playing (1 or 0) |
/djay/turntable1/loop/beats | Length of the loop, in beats. When no loop is playing, it's the length chosen for the next loop |
/djay/turntable1/loop/inTime, /outTime | Start and end of the loop, in seconds |
Effects
Each deck has three effect slots: /djay/turntable1/fx/1, /2 and /3. Depending on the effect, its parameter is either a continuous value or a number of beats, as in djay Pro: a reverb has a slider, while a delay shows a number of beats.
| Address | What it contains |
|---|---|
/djay/turntable1/fx/1/type | Name of the effect |
/djay/turntable1/fx/1/active | Whether the effect is on |
/djay/turntable1/fx/1/dryWet | Dry/wet mix (0.0 to 1.0) |
/djay/turntable1/fx/1/parameterIsStepped | Whether the parameter is in beats (1 or 0) |
/djay/turntable1/fx/1/parameterSteppedValue | The parameter in beats, if parameterIsStepped is 1 |
/djay/turntable1/fx/1/parameterContinuousValue | The parameter as a value from 0.0 to 1.0, if parameterIsStepped is 0 |
Neural Mix™
Each deck has four stems: /djay/turntable1/neuralmix/drums, /bass, /harmonic and /vocals. The table uses the drums as the example.
| Address | What it contains |
|---|---|
/djay/turntable1/neuralmix/drums/audibleVolume | How loud the stem actually is, taking into account mute, solo, its level, the EQ and every other control that affects it, such as the stem crossfaders and Crossfader FX (0.0 to 2.0) |
/djay/turntable1/neuralmix/drums/level | Position of the stem's volume slider (0 to 1) |
/djay/turntable1/neuralmix/drums/mute | Whether the stem is muted (1 or 0). Solo doesn't change it |
/djay/turntable1/neuralmix/drums/solo | Whether the stem is soloed (1 or 0) |
/djay/turntable1/neuralmix/eq/low, /mid, /high | Position of the Neural Mix EQ knobs (0.0 to 2.0) |