Switch, controls octave?

mlovin

2009-01-02 03:39:22

Ok, so I've got a weird bug. I just got this sweet little 5 position switch. It sends signal as a single button with variable velocity. (12, 36, 114, etc). I decided I wanted this to control the octave as a toggle switch.

So I hopped into Bome's and made a ruleset that set a global value ga to a different value for each varied velocity.

B1 01 pp
IF pp == 12 THEN ga=0+1
IF pp == 36 THEN ga=0+2

etc.

However, what I end up getting is a constant repeating note. When I hit the note for the first time. And then, after that, each time I flip the switch it adds another note on top of it! Eventually making Bome's blow up. lol

I know I'm missing something stupid...

help?

mlovin

2009-01-02 03:45:48

errr, I should mention that I have another key set to

91 oo pp

IF ga == 1 THEN oo=oo+12
IF ga == 2 THEN oo=oo+24

etc.

mlovin

2009-01-02 04:41:53

[EDIT:] In an attempt to make all this cleaner....

Translator 1: transpose
Options: stop=false
Incoming: MIDI 81 xx pp
Rules:
xx=xx+ga
if pp==0 then exit rules, skip Outgoing Action
Outgoing: MIDI 81 xx pp

Translator 2: Octave switch
Options: stop=false
Incoming: MIDI B1 64 pp
Rules:
if pp==114 then ga=0
if pp==88 then ga=12
if pp==74 then ga=24
if pp==38 then ga=36
if pp==12 then ga=48
Outgoing: (none)


That's what I'm doing. All the notes and performance comes out fine, but NOTHING transposes.

mlovin

2009-01-02 07:57:30

dangit...yeah that's an 81 not a 91...i changed it back to 91 and now i get the note hold again.

i'll just sit quietly and wait for someone smarter than me to help. heh

mlovin

2009-01-04 21:26:04

No ideas?

Seems like this would be a typical problem for newcomers.

I've put about 15 hours into trying to figure out why the midi seems to be repeating, and for the life of me I can't figure out why it's doing like an infinite loop thing.

I press middle C for a split second, and MT holds the note for waaay to long before finally transmitting the stop signal.

Am I making a totally newb mistake?

mlovin

2009-01-05 02:25:53

I loaded up the log..seems like it's simply taking forever to process the translation fully...why would it be doing that? (I've got a wicked fast machine)

It goes blazing fast with keystroke emulation as the output. but a midi signal as the translation it takes a really long time

mlovin

2009-01-05 16:19:37

looks like my code was pretty close. but my problem was my virtual midi routing.

seems to work now.

florian

2009-01-13 12:13:03

Hi, glad to hear that! Sorry nobody here responded earlier...
We're particularly proud of the fast MIDI processing in MT, so "taking forever" didn't sound right ;)

Regards,
Florian