Old 12-07-2009, 01:36 AM   #1
frog_jr
Human being with feelings
 
frog_jr's Avatar
 
Join Date: Sep 2007
Location: Here at the Western World
Posts: 1,253
Default All notes to one note?

Hi, what is the simplest JS way to change all incoming midi notes from my MIDI drum device to the same note?

Thx for your attn

Frog
frog_jr is offline   Reply With Quote
Old 12-07-2009, 09:45 AM   #2
whatsup
Human being with feelings
 
whatsup's Avatar
 
Join Date: Aug 2008
Posts: 1,144
Default

Code:
desc: all notes to one note
slider1:69<0,127,1>select note

@slider
slider1 &= $x7F;

@block
while
(
  midirecv(msgpos,msg1,msg23) ?
  (
    msg = msg1 & $x00F0;
    (msg == $x80) || (msg == $x90) ? msg23 = (msg23 & $xFF00) + slider1;
    midisend(msgpos,msg1,msg23);
  );
);
__________________
you can contack me on
whatsup@inn.co.il
whatsup is offline   Reply With Quote
Old 12-07-2009, 11:24 AM   #3
frog_jr
Human being with feelings
 
frog_jr's Avatar
 
Join Date: Sep 2007
Location: Here at the Western World
Posts: 1,253
Default

Wow, thanks! I'll give this a try this evening!
frog_jr is offline   Reply With Quote
Old 12-08-2009, 12:35 AM   #4
frog_jr
Human being with feelings
 
frog_jr's Avatar
 
Join Date: Sep 2007
Location: Here at the Western World
Posts: 1,253
Default

All appears to be working!

Not much else to add ATM. Just wanted to test it real quick and report. I'm not really REAPing this evening.

Thanks!

Last edited by frog_jr; 12-08-2009 at 12:42 AM. Reason: ir dumdum
frog_jr is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 11:27 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.