# Open Sound Control block for GRC?

**URL:** <https://www.ruby-forum.com/t/open-sound-control-block-for-grc/210582>\
**Category:** GNU Radio\
**Created:** [August 11, 2011, 2:45pm UTC](https://www.ruby-forum.com/t/open-sound-control-block-for-grc/210582 "2011-08-11T14:45:49Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![luislavena](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/0ea827/32.png) [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Post date:** [August 11, 2011, 2:45pm UTC](https://www.ruby-forum.com/t/open-sound-control-block-for-grc/210582/1 "2011-08-11T14:45:49Z")

</div>

Hello all,  
I’m in the process of putting together an SSB/CW receiver using GNU  
Radio + a USRP1,  
and just came across the GNU Radio Companion, which is a truly wonderful  
thing

One thing that seems to be missing from the Companion is the ability to  
easily interface  
with other software or to control it from another networked machine /  
device,  
so the Open Sound Control (OSC) protocol seems like a no-brainer

OSC uses UDP packets formatted like URL strings (e.g. /filter/width 500)  
to communicate  
between software locally or over a network:  
[http://opensoundcontrol.org/spec-1\_0](http://opensoundcontrol.org/spec-1_0)

It sports some handy features such as pattern-matching & time tags, and  
has been implemented in a number of  
programming languages and development environments as well as numerous  
commercial software applications,  
(including Python, Ruby, PHP, Java, Processing, OpenFrameworks, Cinder,  
SuperCollider, PD, Max/MSP, Reaktor)  
on most platforms you can think of:  
[http://opensoundcontrol.org/implementations](http://opensoundcontrol.org/implementations)

Given that OSC has been implemented in Python already, starting from  
Simple OSC:

> **[Backyard -- ixi-software.net : experimental music software](http://www.ixi-audio.net/content/body_backyard_python.html)**
>
> ixi software is a network of experimentalists in computer music and computer music software. We are concerned with producing prototypes or applications where we concentrate on new modes of interactivity. These applications can be downloaded in our...

or pyOSC:  
[https://trac.v2.nl/wiki/pyOSC](https://trac.v2.nl/wiki/pyOSC)

should make this a straightforward enough process, but not having  
written a GRC block before,  
I’m wondering if anyone might have pointers on where to begin, or might  
be interested in a quick port.

Warm regards,  
Mark

–  
[mark.cetilia.org](http://mark.cetilia.org) | [mem1.com](http://mem1.com) | [reduxproject.com](http://reduxproject.com)

---

<div class="post-metadata">

**Author:** ![djmook](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/d6d6ee/32.png) [@djmook](https://www.ruby-forum.com/u/djmook)\
**Post date:** [August 11, 2011, 4:23pm UTC](https://www.ruby-forum.com/t/open-sound-control-block-for-grc/210582/2 "2011-08-11T16:23:12Z")

</div>

> should make this a straightforward enough process, but not having written a GRC  
> block before,  
> I’m wondering if anyone might have pointers on where to begin, or might be  
> interested in a quick port.

FYI  
[http://gnuradio.org/redmine/projects/gnuradio/wiki/GNURadioCompanion#Adding-Custom-Blocks](http://gnuradio.org/redmine/projects/gnuradio/wiki/GNURadioCompanion#Adding-Custom-Blocks)
