Page 1 of 1

Code for mapping string values

PostPosted: 15 Feb 2013, 14:12
by kugmo
can anyone show me a code segment for the following out params?

Out fam(Player)[0x?].TrackElapsedTime (String)
Out fam(Player)[0x?].TrackRemainingTime (String)

I'm coding out params for a denon sc2900. i got track artist and title down, but need to output other items in the VFD.

my problem is what value to place in (String). Thanks!

Re: Code for mapping string values

PostPosted: 15 Feb 2013, 14:26
by BennyB
I quoted this, from my post from the MIDI Output topic. I hope i't useful:

DzsoniB wrote:Here is a new tip that I put here for mapping MIDI text for DENON controller to display track and artist:
This will not be in the Utility in the meantime, so use it this way!

sylMV wrote:
sylMV wrote:Only for a few devices such as Denon decks.
There's unfortunately no standard way of sending text over MIDI...


meaning, there's some code in Cross to send text using the Denon format :)

However, if you can handle them using Max, here are the kind of lines needed in the mappings file:

Code: Select all
<mapping>
  <control alias="fam(Player)[0x1].TrackArtist" value="miditext"/>
  <miditext kind="DENONS3700_1" channel="0x1"/>
</mapping>


There are 4 kinds available:
- "DENONS3700_1" (1st line of the Denon S3700/S3900)
- "DENONS3700_2" (2nd line of the Denon S3700/S3900)
- "DENONHC4500_1" (1st line of the Denon HC4500)
- "DENONHC4500_2" (2nd line of the Denon HC4500)
You can find the MIDI messages sent in the Denon docs.

Hope this helps a bit ;)

Re: Code for mapping string values

PostPosted: 15 Feb 2013, 22:18
by kugmo
yup, that part's done. my problem's the upper side of the denon vfd. mixvibes doc states sending a sting value. i have the MIDI command and trigger vales. denon docs ask for a logic. so, my problem is what string to send from the mv xml map

Re: Code for mapping string values

PostPosted: 18 Feb 2013, 11:23
by sylMV
For the Denon specific stuff, only the ones quoted are working.
The other displays that aren't logic aren't.

Re: Code for mapping string values

PostPosted: 18 Feb 2013, 16:29
by kugmo
sylMV wrote:For the Denon specific stuff, only the ones quoted are working.
The other displays that aren't logic aren't.


yeah, that's my big headache now. seems like the denon docs want us to pass values dynamically. question is, how do we pass a (string), and what (string)s are passed, dynamically, through the XML

back to the drawing board :)
this probably is the hardest part of it all, sending dynamic output to the DN-SC2900 VFD :eek: thank god i used a clipper on my head the week before...no hair to pull out hahaha

Re: Code for mapping string values

PostPosted: 18 Feb 2013, 16:34
by sylMV
I meant, that's not implemented in Cross.
We only added support for basic text display.
Other display stuff could have followed but it's been drastically down-prioritized.

Re: Code for mapping string values

PostPosted: 18 Feb 2013, 16:45
by kugmo
sylMV wrote:I meant, that's not implemented in Cross.
We only added support for basic text display.
Other display stuff could have followed but it's been drastically down-prioritized.


yup, fully understood. i've raised a couple of suggestions in the appropriate Cross area as well, and hopefully it'll get a few light bulbs lit up soon :)

denon's current VFD implementation, in my opinion, is just nonstandard-awful...