0.5.0 • Published 10 months ago

@s0/node-tcnet v0.5.0

Weekly downloads
-
License
MIT
Repository
github
Last release
10 months ago

node-tcnet

Note: This repo is a fork of this upstream repo: https://github.com/chdxD1/node-tcnet

This library tries implements the TCNet procotol of Showkontrol / Event Imagineering Group / Pioneer DJ described here: https://www.tc-supply.com/tcnet

It requires either Showkontrol / Beatkontrol (https://www.tc-supply.com/home) to be running on a Mac or PRO DJ LINK Bridge on Windows / Mac (https://www.pioneerdj.com/en/product/software/pro-dj-link-bridge/software/)

Features

  • Connecting to a TCNet network
  • Listening to status events
  • Requesting song metadata of layers seperately
  • Requesting song metrics of layers
  • Receiving Timestamp information
  • Time Sync (similar to NTP/PTP) / BPM capabilities of TCNet
  • Other request packets like Beat Grid, Wave Form
  • Control capabilities (like stopping layers) from TCNet

This has only been tested against the Bridge software with NO DJMs or CDJs attached. Bascially this is an implementation solely on the protocol documentation. Testing on real equipment is needed.

Example

import { TCNetConfiguration, PioneerDJTCClient, LayerIndex } from "@s0/node-tcnet"

async function main() {
    // Init new TCNet configuration
    const config = new TCNetConfiguration();

    // Linux
    config.broadcastInterface = "eth0";
    // Windows
    config.broadcastInterface = "Ethernet";
    
    // Init new client for Pioneer DJ TCNet
    const client = new TCNetClient(config);
    
    // Wait for connect
    await client.connect();

    // Wait for data packets
    client.on("data", (packet: TCNetDataPacket) => {
        console.log("data", packet);
    });

    client.on("broadcast", (packet: TCNetPacket) => {
        if (packet instanceof TCNetOptInPacket) {
            // Don't log these packets
            return;
        }
        console.log("broadcast", packet);
    });
}

main();

Comparable work

  • Directly implementing ProDJLink: Implements the native protocol of Pioneer DJ players/mixers by emulating a CDJ in the network. This has the downside of trying to reverse-engineer an unknown protocol from Pioneer, with no documentation. However these libraries have some better support for other devices like the XDJ-XZ. Using TCNet has the benefit of a clear seperation between the productive Pro DJ Link network and a documented protocol.
    1. prolink-connect (JS) by @EvanPurkhiser https://github.com/EvanPurkhiser/prolink-connect
    2. dysentery (Java) by @Deep-Symmetry https://github.com/Deep-Symmetry/dysentery

Disclaimer

This work has not been sponsored or endorsed by Pioneer DJ or Event Imagineering Group. All product and company names are trademarks™ or registered® trademarks of their respective holders. Use of them does not imply any affiliation with or endorsement by them.

0.5.0

10 months ago

0.4.0

10 months ago

0.3.1

12 months ago

0.3.0

12 months ago

0.2.0

12 months ago