Bifrost a bridge for hundekraftORIGINAL OP–1 · HUNDEKRAFT 3.3.2 · BIFROST 0.4.0
BIFROST / MANUAL

Your keyboard, straight in.

Bifrost lets you plug a USB MIDI keyboard or controller straight into the OP-1, with no computer in between, and play it. The OP-1 powers the keyboard from its battery and plays its notes as it plays MIDI from a computer.

Contents
  1. What you need
  2. Get started
  3. Playing
  4. Knobs: your controller as the OP-1's encoders
    1. Learning your knobs
    2. Page 1 and page 2
    3. Speed and acceleration
  5. Tempo: the OP-1 leads
  6. Plugging and unplugging
  7. Turning it off
  8. Messages
  9. Limits
  10. Where it comes from
  11. Appendix: using Bifrost with your devices
    1. AKAI MPK mini Plus

What you need

  1. An original OP-1 running Hundekraft 3.3.2, with Bifrost installed.
  2. A mini-USB OTG adapter or OTG cable: a mini-USB plug on one end, a full-size USB socket on the other.
  3. A class-compliant USB MIDI keyboard or controller: one that works on a computer without installing a driver. Most do.

Get started

  1. Install bifrost.knl from the Hundekraft workshop's Your plugins page. Building it is described in the Bifrost README. The OP-1 restarts.
  2. Unplug the computer's USB cable from the OP-1.
  3. Plug the OTG adapter into the OP-1 and the keyboard's USB cable into the adapter. The order doesn't matter.
  4. Within about 5 seconds the keyboard lights up and a pop-up shows its name, such as MPK mini 3 connected.
  5. Play.

Playing

The OP-1 treats the keyboard exactly as it treats MIDI from a computer, so everything the OP-1 and Hundekraft do with MIDI works: velocity, chords, the sequencers, recording to tape, and Hundekraft's MIDI features. Teenage Engineering's guide covers how the OP-1 handles MIDI: the OP-1 guide.

Bifrost works whatever sound or mode you are in. Pick sounds on the OP-1 as usual and play them from the keyboard.

Knobs: your controller as the OP-1's encoders

If your controller has knobs, Bifrost can make them turn the OP-1's four encoders. Eight knobs work best: the first four turn blue, green, white and orange on page 1, and the next four turn the same encoders on page 2. A controller with four knobs gets page 1 only.

The knobs turn the encoders, they don't set values. So nothing jumps when you change sounds: a knob always moves a value from wherever it is, as the OP-1's own encoder does. That works on every screen: the engine, the envelope, the effects, the LFOs and the mixer.

Learning your knobs

Bifrost doesn't know your controller's knobs until you show it, once:

  1. Plug the controller in, so ... connected shows.
  2. Hold Shift and press help, then T3. Hold Shift and turn blue to the BIFROST page.
  3. Set LEARN KNOBS on. A pop-up asks for the top row's left knob.
  4. Turn each knob a little, one at a time, in this order: the top row left to right, then the bottom row left to right. After each, a pop-up names the next one.
  5. After the eighth, 8 knobs learned shows and LEARN KNOBS goes off by itself. With fewer knobs, set it off yourself after the last one.

Bifrost remembers the knobs across restarts. It also works out by itself whether each knob sends a position or a change, so either setting on the controller works. If yours offers a "relative" mode for its knobs, use it: a knob that sends positions has ends of its own, and once it reaches one it stops sending, so the OP-1 value can only go as far as that knob could. A relative knob has no ends. Change the mode before learning, and learn again after changing it.

Page 1 and page 2

On a plugin engine's main page, pushing an encoder switches it to its page 2. Your controller's knobs can't be pushed, so Bifrost pushes for you: turn a bottom-row knob and its encoder switches to page 2 first, then turns. Turn a top-row knob and it switches back. You see the page change on the OP-1, as if you had pushed the encoder.

To turn the knob map off and let your controller's knobs send plain MIDI, set KNOB MAP off on the BIFROST page.

Speed and acceleration

Two rows on the BIFROST page change how far a knob turns the OP-1:

  1. KNOB SPEED: 1X turns the OP-1's encoder one click for each step the knob sends; 2X to 4X go further for the same turn.
  2. KNOB ACCEL: on, a quick turn goes further than a slow one, up to four times, as the OP-1's own encoders do. Off, every step is the same size whatever the speed.

Both start at the plainest setting: 1X and acceleration off.

Tempo: the OP-1 leads

Bifrost sends the OP-1's tempo to the plugged-in device as MIDI clock, so an arpeggiator or sequencer on the device can play in time with the OP-1. The OP-1 always leads: change its tempo, or let it follow a MIDI clock of its own, and the device follows.

  1. The clock runs all the time a device is connected, whether the tape plays or not. Bifrost sends a start when the device connects.
  2. The clock only sets the device's tempo. Its arpeggiator still plays only when you switch it on and hold or latch notes.
  3. Set the device to follow an external MIDI clock; each device does that its own way. For the AKAI MPK mini Plus, see the appendix.
  4. To stop sending, set SEND TEMPO off on the BIFROST page. Bifrost then sends a stop.

Plugging and unplugging

  1. Unplug the keyboard from the adapter at any time. A pop-up says it was unplugged. Plug it (or another one) back in and it connects again within a second or two.
  2. Take the adapter out of the OP-1 and the USB port goes back to normal within a few seconds: plug the computer in and the workshop, disk mode and Mirror work as usual.
  3. Disk mode (Shift + COM, then T3) needs the computer, so starting it ends Bifrost's host mode.

Turning it off

  1. Hold Shift and press help, then press T3. The settings page opens.
  2. Hold Shift and turn blue until the page titled BIFROST shows.
  3. Set USB KEYBOARD off.

Off, Bifrost does nothing at all and the USB port behaves exactly as on a stock OP-1. Turn it back on the same way.

Messages

Pop-upMeans
MPK mini 3 connectedA MIDI device is plugged in and playing. The name is the one the device gives itself; usb device when it gives none.
MPK mini 3 unpluggedIt was unplugged. Plug it back in when you like.
...: not a midi deviceA flash drive, a mouse or anything else that isn't USB MIDI. Bifrost leaves it alone; unplug it.
...: usb setup failedThe device didn't answer as expected. Unplug it and plug it in again.
bifrost: no 5v on the usb portThe OP-1 couldn't power the port. Bifrost tries again after 30 seconds.

Limits

  1. Notes go one way, from the keyboard to the OP-1. The only thing Bifrost sends back is the OP-1's tempo.
  2. The knob map is for knobs. Faders, pads and buttons send their MIDI as usual.
  3. One device at a time, plugged in directly. USB hubs aren't supported.
  4. While the adapter is in, the OP-1 powers the port from its battery and doesn't charge. Take the adapter out when you're done.
  5. Only USB MIDI devices: no flash drives, mice or audio.

Where it comes from

The OP-1's hardware can be a USB host, but its stock firmware never uses that. How the OP-1 switches its port into host mode and powers it was worked out from the stock firmware and from how Opus, LizardMan's OP-1 firmware mod, does it on the same hardware. Bifrost's code is its own.

Appendix: using Bifrost with your devices

Notes for particular controllers: what to set on the device so it works well with Bifrost.

AKAI MPK mini Plus

Plays and connects with no changes. For the knob map, set its eight knobs to Relative first: they are endless, but in Absolute mode they keep their own position from 0 to 127 and stop sending at either end (Akai's MPK mini Plus User Guide, pages 12 and 21).

  1. On a computer, open Akai's MPK mini Plus Program Editor and connect the MPK mini Plus with its USB cable.
  2. Under each of the eight knobs, click the field just below the knob and choose Relative. Leave the CC numbers as they are; Bifrost learns whatever they are.
  3. Send the program to the MPK mini Plus with the editor, and save it on the keyboard: hold Shift and press Home / Save, then pick a program slot.
  4. Plug the MPK mini Plus into the OP-1 through the OTG cable and learn the knobs again.

The keyboard's own Edit menu (hold Shift and press Prog Select, then turn the encoder next to the display) also lists each knob's Absolute / Relative setting, though the guide doesn't say how to pick which knob it edits.

The arpeggiator and the OP-1's tempo. The MPK mini Plus's arpeggiator runs on its own clock unless told to follow MIDI clock. To have it follow a tempo sent to it, set its clock to External: hold Arp and press the C#5 key (labelled Sync), or hold Shift and press Arp and set Clock in that menu. With an external clock its Tap Tempo button does nothing, and its arpeggiator follows the tempo Bifrost sends from the OP-1 (Tempo). Set it back to Internal to use its own tempo again.

The guide describes the knob next to the display as the keyboard's own menu control. Bifrost only maps the eight knobs you learn, so it moves nothing on the OP-1 either way.