Behringer CMD Series: PL-1 MM-1 DV-1 DC-1

XML preset files and script files (.js) for MIDI and other controllers.

Moderators: garth, User Customization Moderators

Re: Behringer CMD Series: PL-1 MM-1 DV-1 DC-1

Postby mevsme » Thu Apr 20, 2017 2:20 pm

Anyone?
User avatar
mevsme
 
Posts: 59
Joined: Sat Aug 25, 2012 11:29 pm

Re: Behringer CMD Series: PL-1 MM-1 DV-1 DC-1

Postby Be. » Thu Apr 27, 2017 2:30 am

According to the MIDI Crash Course wiki page, MIDI pitch bend messages use the second byte as a least significant byte and the third byte as a most significant byte. So, to use the full value in JS:
Code: Select all
CMDPL.rate = function (channel, control, value, status, group) {
    var fullValue = (value << 7) + control;
    engine.setParameter(group, 'rate', fullValue / 16383);
}
I heard FLAC and I haven't gone back.
Protect your hearing with earplugs!
User avatar
Be.
 
Posts: 1358
Joined: Tue Jan 06, 2015 1:00 am
Location: Chicago, USA

Previous

Return to Controller presets/mappings

Who is online

Users browsing this forum: No registered users and 2 guests

cron