Jump to content

pitch bend origin value


Alkex
 Share

Recommended Posts

Hi there,

I'm working on the software of a midified vintage toy piano I covered with knobs and joysticks.

I ripped the joysticks out of my old playstation controller which have a nice soft grip feel.

44292.jpg

The downside is that I have some noise around the center position which is resulting in randomly detuned (pitch bended) performance.

I would like to implement a software "regulator" to stabalise the output of the pitch bend when centered.

I don't have a commercial midi keyboard so don't know the exact value of ZERO bend (origin)

I would appreciate if anyone could tell me this...

Thanks

Alex

Link to comment
Share on other sites

  • 1 month later...

This little code will "magnetise" values between 52 and 78 to 64 (center position)

GOOD LUCK!

;;!!!!!!!!!!!!!!!!!!!!  PITCH BEND COMPRESSOR !!!!!!!!!!!!!!!!!!!!

MOVLW 78

CPFSLT DATATOSEND

GOTO NOTPITCHBEND

MOVLW 52

CPFSGT DATATOSEND

GOTO NOTPITCHBEND

MOVLW 64

MOVFF WREG,DATATOSEND

NOTPITCHBEND

;;!!!!!!!!!!!!!!!!!!!!  PITCH BEND COMPRESSOR !!!!!!!!!!!!!!!!!!!!

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...