- Wed Jan 10, 2018 12:10 am
#197818
Hey guys.
I'm having some issues trying to understand how the formatting is supposed to be to change volume or use the fade commands on the WAV Trigger over serial. The biggest issue is I haven't wrapped my head around how the commands for 2 byte messages are structured. I've read up on little-endian, but I don't understand it. I also don't understand how to take a 2 byte message as an signed integer and "translate" that to -70 to +10db gain. I'm using a PLC to do this and I can get some functions to work, but I can't get the ramp time to be what I want, it's currently nearly instant. My serial commands are;
0xf0m 0xaa [SOM]
0x0c [Message length, 12 bytes)
0x0a {Message code]
0x01, 0x00 [Track 01]
0x01, 0x00 [Volume. I don't think this should work, but it does]
0xe8, 0x03 [Fade in mS. I used what was in the example. It works, but it's nearly instant. In decimal the numbers are 232 and 3, I'm not sure how that correlates to "real world time"? What would I use if I wanted 3000mS ?]
0x01 [Stop Flag to stop file playing at end of fade]
0x55 [EOM]
I could also use some help understanding how to play tracks >255. The issue is the same as above, I don't understand how it works with the 2 byte message.
Any help would be greatly appreciated!
I'm having some issues trying to understand how the formatting is supposed to be to change volume or use the fade commands on the WAV Trigger over serial. The biggest issue is I haven't wrapped my head around how the commands for 2 byte messages are structured. I've read up on little-endian, but I don't understand it. I also don't understand how to take a 2 byte message as an signed integer and "translate" that to -70 to +10db gain. I'm using a PLC to do this and I can get some functions to work, but I can't get the ramp time to be what I want, it's currently nearly instant. My serial commands are;
0xf0m 0xaa [SOM]
0x0c [Message length, 12 bytes)
0x0a {Message code]
0x01, 0x00 [Track 01]
0x01, 0x00 [Volume. I don't think this should work, but it does]
0xe8, 0x03 [Fade in mS. I used what was in the example. It works, but it's nearly instant. In decimal the numbers are 232 and 3, I'm not sure how that correlates to "real world time"? What would I use if I wanted 3000mS ?]
0x01 [Stop Flag to stop file playing at end of fade]
0x55 [EOM]
I could also use some help understanding how to play tracks >255. The issue is the same as above, I don't understand how it works with the 2 byte message.
Any help would be greatly appreciated!