Reply To: [DRIVER] Simple OSC Protocol

Home Forums V-Control Show Case [DRIVER] Simple OSC Protocol Reply To: [DRIVER] Simple OSC Protocol


Thanks Sebastian,
updated the driver database for the next release with your driver.

And your guess from a previous post is correct, there is a Memory Block in the script context. Here is the source:

//converts a string representing a float value (“1.2302”) to a four byte float string

Dim mb As MemoryBlock = New MemoryBlock(4)
dim s,stmp as string
dim FloatVal as Single

FloatVal = CDbl(fString)
mb.SingleValue(0) = FloatVal
// automatic conversion between memoryblock and strings!! =)
s = mb
stmp = mid(s,4,1)+mid(s,3,1)+mid(s,2,1)+mid(s,1,1)
return stmp

  • This reply was modified 6 years, 2 months ago by Dierk Walter.