Welcome to %s forums

BrainModular Users Forum

Login Register

Trying to parse a data stream to trigger samplers

I need help on a Patch
Post Reply
Marlow77
Member
Posts: 15
Contact:

Unread post by Marlow77 » 17 Feb 2015, 14:43

Helo,

I am using a touch script to send OSC messages and the OSClister provides the following output data streams:
rjf/p-01 --> this is a timer of sorts indicating a continuous stream of data
rjf/p-02 --> this tells the number of touches, 0 being one touch, through 9 and alternates through the touches dependent on change
rjf/p-03 --> this is zero unless a touch is registered at all, if any are detected it is 1
rjf/p-04 --> this is the pitch in HZ of the frequency touched and alternates dependent on p-02 above
rjf/p-05 --> this gives a modulation signal, vol, etc., with a default of .5

So the touch script is created by the great programmer that created GEO and CANTOR on iOS. He has it posted for download and it works great with CHUCK. I have struggled to try and get it to work with REAKTOR. I have been successful to at least see the messages in USINE through the OSClister.

What I need is a way to trigger up to 10 samplers based on the current data stream data. For instance, with two touches, p-02 may show a 0 or a 1 (alternating) along with a p-04 that alternates at the same time. I was thinking about linking a whole bunch of pass if changed and variable modules to create a cascade of sorts to sort the data with the hopes of freezing when alternating elsewhere until p-03 indicates no touches are present, but I can't seem to wrap my mind around how to do it.

The touch script I am using is based on the developer's discussion here:
http://rrr00bb.blogspot.de/2012/04/idea ... tocol.html

And the solution to run it and test it is here:
https://github.com/rfielding/CSharpAttempt

Thanks for any assistance!

Marlow

User avatar
nay-seven
Site Admin
Posts: 5684
Location: rennes France
Contact:

Unread post by nay-seven » 24 Feb 2015, 10:01

Can't help with this kind of script, but OSC has been improved a lot in V2 and you can use OSC learn now, so maybe it can help

Post Reply

Who is online

Users browsing this forum: No registered users and 16 guests