Bc2000 (for the BCF2000 & BCR2000) group photo

Yahoo Groups archive

Bc2000 (for the BCF2000 & BCR2000)

Index last updated: 2026-04-28 23:16 UTC

Message

BCR2000/BCF2000 and Ruby

2011-04-14 by c00lryguy

Lately, I've been playing around with controlling my BCR2000 from within Ruby.
Two new Ruby libraries that add wrappers or ALSA and WinMM have allowed me to do this and since this is the biggest bc2000 community I figured I would show you guys.

Now, the simplest example would be:

bcr2000 = BControl::BCR2000.new

# We have to set this manually, no auto-detect here.. yet
bcr2000.id = 1
bcr2000.output_device { |d| d.name == "BCR2000" }

# Now the juicy stuff
bcr2000.open
bcr2000.select_preset(5)
bcr2000.close


The example is for Windows, but if you wan to use in Linux then replace the line require 'midi-winmm' with require 'alsa-rawmidi'

When paired with MIDI Yoke or some other virtual MIDI device, you can script MIDI actions for your DAW.
For example, you could write a script that detects a specific note was played within your DAW and have it change presets for you.

Any significant updates will be posted here.

Attachments

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.