Troubleshooting

How to make an 8x8 Pad to behave like a keyboard but remappe

Started by electrofux on .

Sign in or create an account to join the conversation.

17 posts

Topic starter
I have an 8x8 Pad and i want to use it as a Push Style Keyboard. Now the standard Pad counts from topleft to bottom right but i need it to count from bottom left to topright. So the standard mapping cannot be used, can it?
Eventually i want to make a very low size PushStyle keyboard with nearly all functionality coded in a Reason Remote codec which is done pretty much but it expects a different Note Layout.

I went for scripts with noteout but getting multiple pressed keys and their noteoffs in line blows my mind atm. Isn't there a clever setting of a custom Midi or even a simple script to make this work easily?
Subject: Re: How to make an 8x8 Pad to behave like a keyboard but rem
Yeah
Custom MIDI is often forgotten and under utilised . ..
Make an _Notes array with the MIDI numbers you want, but in top left down order (hope that makes sense)
Now in the Custom MIDI pitch section take the Pads.x array and multiply it by the _Notes array
You can use Pads.x for the velocity ...

Thanks for the idea . ..

MM
Subject: Re: How to make an 8x8 Pad to behave like a keyboard but rem
Hmmmmm not sure...but I think in the pitch section of the custom midi it should be "layout" and not x*layout? Im not in my studio computer so can't really test though. The concept is not a new one though, Mat's keyboard templates feature this technique all be it, slightly more complex to also accomodate velocity settings

(custom midi note ons triggers on x rising with velocity setting, custom midi note offs (zero velocity) triggers on x dropping to zero with 0 velocity)

;)

https://liine.net/en/community/user-library/view/25/
Subject: Re: How to make an 8x8 Pad to behave like a keyboard but rem
I have to test it again tonight. The Note On Pitch was perfect yesterday but whatever triggers i set (i already ticked off all triggers but one), i always got a constant C-1 fot the noteoff (i have monitored it in Midi OX).

It would be really cool if this somehow works considering the amount of complicated coding i have seen in other templates.
Subject: Re: How to make an 8x8 Pad to behave like a keyboard but rem
It works fine here . .?

x*layout or layout makes little real difference - x*layout returns 0 for any keys not pressed thats all
Bit of a carry over of logic, reminder of what is going on etc
Velocity options can be added to this fairly easily
MM??
Subject: Re: How to make an 8x8 Pad to behave like a keyboard but rem
Ok, downloaded the fixed version again, synced through the Editor, loaded up Reason, played some notes. They all stuck because no notesoffs apart form C-1 are sent. Checked in Midi Ox aswell. Downloaded the template again from the Ipad to check if everthing is ok with the template, but it is. Why the hell is it working on your side but not here :/
Subject: Re: How to make an 8x8 Pad to behave like a keyboard but rem
Ha, Softcore was right. changing Pitch from x*layout to layout did the trick. I still havn't really understood why but now it is working.
Sweeet.
Subject: Re: How to make an 8x8 Pad to behave like a keyboard but rem
Hi
There does seems to be some weirdness going on with the array . . . .
I was able to end up with your problem but not sure how or why . . .
Somehow the notes array ends up reporting 0's instead of the correct values hence improper response

The difference between layout and x*layout should not affect the end result ....
Glad you got it going, you can always enter the array straight into pitch field as well
Have sent in a report on the issue ...
MM
Subject: Re: How to make an 8x8 Pad to behave like a keyboard but rem
@macciza

case 1: pitch = x * layout

Consider user tapping at pad x[3].....the pitch x[3] * layout[3] = 1 * layout[3] = layout[3] (intended note on) is send as note on. (all the rest pitches of "x * layout" are not triggered, because the x triggers heave steadily remained 0 - NOTE: NOT because xs are 0, but because they remained so, during the process)

Consider the user letting go of x[3] the pitch x[3] * layout[3] = 0 * layout[3] = 0 (!= layout[3], NOT intended note off) is send as note off. (x[3] previously being 1, now goes to 0 so it triggers)

case 2: pitch = layout

Consider user tapping at pad x[3].....the pitch layout[3] (intended note on) is send as note on. (all the rest pitches of "layout" are not triggered, because the x triggers heave steadily remained 0)

Consider the user letting go of x[3] the pitch layout[3] ( intended note off) is send as note off. (x[3] previously being 1, now goes to 0 so it triggers)

Cancel your report - works as designed!
;)
Subject: Re: How to make an 8x8 Pad to behave like a keyboard but rem
Hi
It worked fine for me with it like that to start... but i follow what you say

There is still some sort of error with arrays which can give failure even using layout array
Report stands its just not what you think it is....

Also had to raise a report from Editor weirdness discovered via the LiveKnobs project
Have also picked up one or two other strange Canvas behaviours . . .

cheers
MM
Subject: Re: How to make an 8x8 Pad to behave like a keyboard but rem
I found i would like to get the output of the Padgrid in a (to be programmed) arpeggiator. I think to be able to do this, i must convert the custom Midi to a common script with noteout(). And there the problems start again, since i can't just translate the values of the custom midi fields (Pitch:layout, (notrigger), Velocity: Pads.x (notrigger), trigger:x (any)) to a normal noteout message. At least that doesnt work.
Any good ideas how to do this in a lean way?
Subject: Re: How to make an 8x8 Pad to behave like a keyboard but rem
Wow, this blows my mind :o . fourth version of the noteon script and something is always going wrong and i haven't even cared for the noteoff.
These arrays are tricky to tackle.
In one version i had the script spitting out the newly pressed key of any number of pressed keys and i thought i made it but when i hit keys simultaneously everything was garbage.

Damnit, got the noteoff right until i found out that when you swipe notes, no pad release is triggered :/

I give up for today :?