Trevliga Spel forum
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Note On/Off Translation File

2 posters

Go down

Note On/Off Translation File Empty Note On/Off Translation File

Post by Yowh Sat Mar 05, 2022 3:06 am

Hi, I am using the Midi: Note On/Off and I want to toggle the picture every time I pressed the key using the Push button State. Is it possible?

If possible how can I edit it in the translation file? Thank you!


P.S I am using it in a different program and it messes up if I used the toggle state. Just wondering if that's possible because I read in the website/doc that it might be possible but can't understand the process.

Yowh

Posts : 10
Join date : 2022-03-05

Back to top Go down

Note On/Off Translation File Empty Re: Note On/Off Translation File

Post by Admin Sat Mar 05, 2022 10:10 am

Hi,

In what way are things messed up if you use the toggle button?
Do you get any feedback from the other program when you press a button?

With a translation file, you can get a situation where you toggle between sending two different notes, and each note can have its own image. Or you can configure it always to send the same note but show different images depending on incoming note commands.

I don't know if any of those solutions would solve your problem.
Admin
Admin
Admin

Posts : 1235
Join date : 2020-03-26

https://trevligaspel.forumotion.eu

Yowh likes this post

Back to top Go down

Note On/Off Translation File Empty Re: Note On/Off Translation File

Post by Yowh Sat Mar 05, 2022 9:03 pm

"Or you can configure it always to send the same note but show different images depending on incoming note commands."

Yeah so how can I do this, what are the commands I can use. Thank You!

Yowh

Posts : 10
Join date : 2022-03-05

Back to top Go down

Note On/Off Translation File Empty Re: Note On/Off Translation File

Post by Admin Sat Mar 05, 2022 11:20 pm

Try this:

Save the content as an .XML file and reference that file as a translation file.

As it stands, the button will always send note 10 and will display "firstimage" when value 0 is received and "secondimage" when value 127 is received. You can, of course, change to whatever values are relevant in your setup. And you must of course set valid paths to the images.

Code:
<?xml version="1.0" encoding="utf-8" ?>
<MidiSteps version="1.1">
  <Default send="no" receive="yes" display="" image="" displayonsend="no" useclosestvalueonreceive="no"/>
  <StepValues>
   <Step value="0" image="firstimage"/>
   <Step value="10" send="yes" receive="no"/>
   <Step value="127" image="secondimage"/>
  </StepValues>
</MidiSteps>
Admin
Admin
Admin

Posts : 1235
Join date : 2020-03-26

https://trevligaspel.forumotion.eu

Yowh likes this post

Back to top Go down

Note On/Off Translation File Empty Re: Note On/Off Translation File

Post by Yowh Sun Mar 06, 2022 3:08 am

EDIT: Okay I get the process now but to make it straightforward can I possibly make a MIDI note On/Off Pushbutton state into a toggle switch using the translation file? To be honest that's the thing I want why did I make it more complicated my bad hehe

For example: I'm using this MIDI in voicemeeter and the MIDI Mapping for it only accepts note-on. If I use the toggle, the voicemeeter MIDI will only trigger if the toggle switch is note on. So what I'm trying to figure out If I can make the MIDI note on/off trigger to the first image for the first press and trigger the second picture on the second press. I hope you can help me. Thank You!

Yowh

Posts : 10
Join date : 2022-03-05

Back to top Go down

Note On/Off Translation File Empty Re: Note On/Off Translation File

Post by Admin Sun Mar 06, 2022 10:40 am

It is not possible to have a configuration where the button sends the same note every time and toggles between two different images.

You can toggle between two different notes and have different images, but I guess that this doesn't help you.  Sad  

Code:
<?xml version="1.0" encoding="utf-8" ?>
<MidiSteps version="1.1">
  <Default send="yes" receive="yes" display="" image="" displayonsend="yes" useclosestvalueonreceive="no"/>
  <StepValues>
   <Step value="126" image="firstimage"/>
   <Step value="127" image="secondimage"/>
  </StepValues>
</MidiSteps>
Admin
Admin
Admin

Posts : 1235
Join date : 2020-03-26

https://trevligaspel.forumotion.eu

Back to top Go down

Note On/Off Translation File Empty Re: Note On/Off Translation File

Post by Yowh Sun Mar 06, 2022 9:51 pm

Yeah, It's all good I'm still lovin' the plugin. Thank you for the help!

Yowh

Posts : 10
Join date : 2022-03-05

Back to top Go down

Note On/Off Translation File Empty Re: Note On/Off Translation File

Post by Sponsored content


Sponsored content


Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum