Skip to content

Commit

Permalink
adjusted defineController()-calls
Browse files Browse the repository at this point in the history
  • Loading branch information
justlep committed May 16, 2017
1 parent f97076a commit 5d48b20
Show file tree
Hide file tree
Showing 12 changed files with 18 additions and 67 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "LePsControllerScripts4Bitwig",
"title": "LeP's controller scripts for Bitwig",
"description": "Bitwig controller script for the Behringer BCF2000, Arturia Beatstep Pro and more",
"version": "2.0.0",
"version": "2.1.0",
"author": {
"name": "Lennart Pegel",
"email": "[email protected]",
Expand Down
2 changes: 1 addition & 1 deletion src/AlesisPerformancePad.control.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

loadAPI(2);

host.defineController('Alesis', 'PerformancePad', '2.0', 'c6cc8a34-a36e-11e5-bf7f-feff819cdc9f', 'Lennart Pegel <[email protected]>');
host.defineController('Alesis', 'PerformancePad', '2.1', 'c6cc8a34-a36e-11e5-bf7f-feff819cdc9f', 'Lennart Pegel');
host.defineMidiPorts(1, 0);

var NOTE_MAPPING = {
Expand Down
7 changes: 1 addition & 6 deletions src/BCF2000.control.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,17 +8,12 @@
loadAPI(2);
load('lep/api.js');

host.defineController('Behringer', 'BCF2000 (LeP)', '2.0', 'd26515a4-571b-11e5-885d-feff819cdc9f', 'Lennart Pegel <[email protected]>');
host.defineController('Behringer', 'BCF2000', '2.1', 'd26515a4-571b-11e5-885d-feff819cdc9f', 'Lennart Pegel');
host.defineMidiPorts(1, 1);
host.addDeviceNameBasedDiscoveryPair(['BCF2000'], ['BCF2000']);
host.addDeviceNameBasedDiscoveryPair(['BCF2000 port 1'], ['BCF2000 port 1']);
host.addDeviceNameBasedDiscoveryPair(['BCF2000 Port 1'], ['BCF2000 Port 1']);

// host.addDeviceNameBasedDiscoveryPair(['BCF2000 port 2'], ['BCF2000 port 2']);
// host.addDeviceNameBasedDiscoveryPair(['BCF2000 Port 2'], ['BCF2000 Port 2']);
// host.addDeviceNameBasedDiscoveryPair(['BCF2000 port 3'], ['BCF2000 port 3']);
// host.addDeviceNameBasedDiscoveryPair(['BCF2000 Port 3'], ['BCF2000 Port 3']);

/**
* Switches the BCF2000 into a given preset number.
* @param presetNumber (Number) 1-based (!)
Expand Down
2 changes: 1 addition & 1 deletion src/BCR2000.control.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
loadAPI(2);
load('lep/api.js');

host.defineController('Behringer', 'BCR2000 (LeP)', '2.0', 'fe5a1578-0fbd-11e6-a148-3e1d05defe78', 'Lennart Pegel <[email protected]>');
host.defineController('Behringer', 'BCR2000', '2.1', 'fe5a1578-0fbd-11e6-a148-3e1d05defe78', 'Lennart Pegel');
host.defineMidiPorts(1, 1);
host.addDeviceNameBasedDiscoveryPair(['BCR2000'], ['BCR2000']);
host.addDeviceNameBasedDiscoveryPair(['BCR2000 port 1'], ['BCR2000 port 1']);
Expand Down
12 changes: 5 additions & 7 deletions src/BeatstepPro-All-Channels.control.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,11 @@
* License: MIT (http://www.opensource.org/licenses/mit-license.php)
*
* What it does:
* - Adds Beatstep's three sequencers as selectable MIDI inputs ("BSP-S1", "BSP-S2" and "BSP-DRUM"),
* using extra short names, so it's more easy to spot which track they are assigned to.
* - Adds Beatstep's three sequencers as selectable MIDI inputs (S1, S2 and DRUM),
* (Names are only sensible if you use Beatstep's default settings where Sequencer1 is using MIDI channel 1,
* Sequencer2 using channel 2 and Drum sequencer on MIDI channel 10)
* - The other MIDI channels are added as selectable MIDI inputs, too: "BSP-3" to "BSP-9" and "BSP-11" to "BSP-16"
* - Since Bitwig 2, the user himself must enable CLOCK for this script,
* so Beatstep can start/stop synchronously with Bitwig if it is switched to "USB" sync mode
* - The other MIDI channels are added as selectable MIDI inputs 3-9 and 11-16
* - If Bitwig 2.1 is the clock master, the Beatstep Pro must be switched to "USB" sync mode.
* - Knobs in control mode are mappable. However, as Beatstep Pro doesn't seem to receive CC messages,
* value changes made manually in the Bitwig GUI won't update the value of the mapped Beatstep encoder :(.
*
Expand All @@ -23,14 +21,14 @@ loadAPI(2);
load('lep/api.js');
load('beatsteppro/BeatstepPro.js');

host.defineController('Arturia Beatstep Pro (All)', 'BSP', '2.0', '6ae51caa-3310-11e5-a151-feff819ffc9f', '[email protected]');
host.defineController('Arturia', 'Beatstep Pro [All]', '2.1', '6ae51caa-3310-11e5-a151-feff819ffc9f', 'Lennart Pegel');
// host.addDeviceNameBasedDiscoveryPair(['Arturia BeatStep Pro'], ['Arturia BeatStep Pro']);
host.defineMidiPorts(1, 1);

function init() {
lep.setLogLevel(lep.LOGLEVEL.WARN);
BeatstepPro.getInstanceForAllChannels();
println('\n-------------\nBeatstepPro ready (all sequencers)');
println('\n-------------\nBeatstepPro ready (all channels)');
}

/** @Override */
Expand Down
9 changes: 3 additions & 6 deletions src/BeatstepPro.control.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,10 @@
* License: MIT (http://www.opensource.org/licenses/mit-license.php)
*
* What it does:
* - Adds Beatstep's three sequencers as selectable MIDI inputs ('BSP-S1', 'BSP-S2' and 'BSP-DRUM'),
* using extra short names, so it's more easy to spot which track they are assigned to.
* - Adds Beatstep's three sequencers as selectable MIDI inputs (S1, S2 and DRUM)
* (Names are only sensible if you use Beatstep's default settings where Sequencer1 is using MIDI channel 1,
* Sequencer2 using channel 2 and Drum sequencer on MIDI channel 10)
* - The other MIDI channels are added as selectable MIDI inputs, too: 'BSP-3' to 'BSP-9' and 'BSP-11' to 'BSP-16'
* - Since Bitwig 2, the user himself must enable CLOCK for this script,
* so Beatstep can start/stop synchronously with Bitwig if it is switched to 'USB' sync mode
* - If Bitwig 2.1 is the clock master, the Beatstep Pro must be switched to "USB" sync mode.
* - Knobs in control mode are mappable. However, as Beatstep Pro doesn't seem to receive CC messages,
* value changes made manually in the Bitwig GUI won't update the value of the mapped Beatstep encoder :(.
*
Expand All @@ -23,7 +20,7 @@ loadAPI(2);
load('lep/api.js');
load('beatsteppro/BeatstepPro.js');

host.defineController('Arturia Beatstep Pro (Mains)', 'BSP', '2.0', '6fff1a34-3310-11e5-a151-feff819cdc9f', '[email protected]');
host.defineController('Arturia', 'Beatstep Pro [Mains]', '2.1', '6fff1a34-3310-11e5-a151-feff819cdc9f', 'Lennart Pegel');
// host.addDeviceNameBasedDiscoveryPair(['Arturia BeatStep Pro'], ['Arturia BeatStep Pro']);
host.defineMidiPorts(1, 1);

Expand Down
2 changes: 1 addition & 1 deletion src/CMD-DC-1.control.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
loadAPI(2);
load('lep/api.js');

host.defineController('Behringer', 'CMD DC-1 (LeP)', '2.0', '047f0d84-8ace-11e5-af63-feff819cdc9f', 'Lennart Pegel <[email protected]>');
host.defineController('Behringer', 'CMD DC-1', '2.1', '047f0d84-8ace-11e5-af63-feff819cdc9f', 'Lennart Pegel');
host.defineMidiPorts(1, 1);
host.addDeviceNameBasedDiscoveryPair(['CMD DC-1'], ['CMD DC-1']);

Expand Down
2 changes: 1 addition & 1 deletion src/CMD-LC-1.control.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
loadAPI(2);
load('lep/api.js');

host.defineController('Behringer', 'CMD LC-1 (LeP)', '2.0', 'b6ad3828-8a3d-11e5-af63-feff819cdc9f', 'Lennart Pegel <[email protected]>');
host.defineController('Behringer', 'CMD LC-1', '2.1', 'b6ad3828-8a3d-11e5-af63-feff819cdc9f', 'Lennart Pegel');
host.defineMidiPorts(1, 1);
host.addDeviceNameBasedDiscoveryPair(['CMD LC-1'], ['CMD LC-1']);

Expand Down
42 changes: 0 additions & 42 deletions src/DrumsOnly.control.js

This file was deleted.

2 changes: 1 addition & 1 deletion src/Roland-A49.control.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

loadAPI(2);

host.defineController('Roland', 'A-49', '2.0', '381d879c-9a0a-11e5-8994-feff819cdc9f', 'Lennart Pegel <[email protected]>');
host.defineController('Roland', 'A-49', '2.0', '381d879c-9a0a-11e5-8994-feff819cdc9f', 'Lennart Pegel');
host.defineMidiPorts(1, 0);
host.addDeviceNameBasedDiscoveryPair(['A-Series Keyboard'], []);

Expand Down
Binary file not shown.
3 changes: 3 additions & 0 deletions stable-version-for-download/history.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@

v2.1.0 (16-May-2017)
- adjusted defineController()-calls, so scripts names are displayed properly

v2.0.0 (24-Mar-2017)
- finished refactorings for final Bitwig 2.0 (demo version)
- Params mode on BCR/BCF2000 now only controls the currently selected remote controls page + follows page-selection from the DAW
Expand Down

0 comments on commit 5d48b20

Please sign in to comment.