예제 #1
0
        public void addBlob(OSCblob oBlob)
        {
            this.typeTag.Add("b");
            byte[] temp = new byte[4];

            foreach (byte[] b in oBlob.blob)
            {
                temp = append(temp, b);
            }
            byte[] temp2 = new byte[4];
            temp2 = toByte(temp.Length + (align(temp.Length) % 4));
            temp  = append(temp2, temp);
            this.value.Add(temp);
        }
예제 #2
0
        public void addBlob(OSCblob oBlob)
        {
            this.typeTag.Add("b");
            byte[] temp = new byte[4];

            foreach (byte[] b in oBlob.blob)
            {
                temp = append(temp, b);
            }
            byte[] temp2 = new byte[4];
            temp2 = toByte(temp.Length + (align(temp.Length) % 4));
            temp = append(temp2, temp);
            this.value.Add(temp);
        }
예제 #3
0
        private void button3_Click(object sender, EventArgs e)
        {
            ip = TBIp.Text;
            port = int.Parse(TBPort.Text);
            oscm = new OSC(ip, port);

            OSCmsg omess = new OSCmsg("/test send blob");
            OSCblob oscb = new OSCblob();
            oscb.addBlob(258);
            oscb.addBlob(2.3f);
            oscb.addBlob("yahoo!");
            omess.addBlob(oscb);
            oscm.sendOSCmsg(omess);
        }