Kyma Forum
  Kyma Support
  Dice roll using TouchOSC

Post New Topic  Post A Reply
profile | register | preferences | faq | search

next newest topic | next oldest topic
Author Topic:   Dice roll using TouchOSC
douglasdifranco
Member
posted 02 June 2011 14:34         Edit/Delete Message   Reply w/Quote
Is it possible to send a message from TouchOSC to trigger the dice roll? I can do it using Osculator to send an 'R' but I find the OSC mapping on the VCS easier to deal with than using Osculator.

IP: Logged

SSC
Administrator
posted 04 June 2011 09:46         Edit/Delete Message   Reply w/Quote
Is there a way to have TouchOSC send an OSC message of the form:

/preset,i index

This message would let you select a VCS preset. The integer argument is the one-based index into the array of VCS presets. Use 126 to select the previous preset, 127 to select the next preset, 128 to roll the dice, 129 to resend the current settings, 130 to save the current settings as a new preset.

You could send the message from a toggle or a pushbutton.

IP: Logged

douglasdifranco
Member
posted 04 June 2011 13:05         Edit/Delete Message   Reply w/Quote
It's not working for me. I set a button at /1/preset, i index and it's value at 128.

IP: Logged

SSC
Administrator
posted 04 June 2011 15:33         Edit/Delete Message   Reply w/Quote
Try the message

/preset

and value 128

IP: Logged

douglasdifranco
Member
posted 16 November 2012 14:42         Edit/Delete Message   Reply w/Quote
I never did get this to work but I'm trying again this time using Lemur for Ipad. I'm typing /preset into Lemur's address field of a button, but /preset, 128 doesn't change presets. Perhaps I'm leaving something out of the address path?

IP: Logged

SSC
Administrator
posted 16 November 2012 16:55         Edit/Delete Message   Reply w/Quote
It may be that these programs are sending floating point values by default. The Paca(rana) expects an integer argument, so please try to see if the program can send an integer argument.

IP: Logged

douglasdifranco
Member
posted 19 November 2012 15:46         Edit/Delete Message   Reply w/Quote
It seems Lemur needs a script to send the integer value. I'll let you know what I find.

IP: Logged

ChristianSchloesser
Member
posted 21 November 2012 19:08         Edit/Delete Message   Reply w/Quote
Hello,
indeed by default Lemur.app on iPad seams to send floats by default for OSC messages and ints for MIDI messages ...

To Randomize your Preset with Lemur:

1. Create a Pad or Button and remember the name for the OSC variable (default x)
2. While the Pad or Button is still selected click on "Script" at the right bottom of the Lemur Editor.

3. Name the script for example "RandomizePreset"
4. Set Execution Type to "On Expression"
5. Put x (or whatever variable your Pad/Buttons is assigned to into the to field right to the Execution (Note: Now if the Expression is true (x=1) the Script will be executed ...)
6. Type or copy paste:

oscout(0,'/preset',{128});

into the Script field.

That should send the necessary OSC message.

I am a brand new Lemur.app user actually bought my first iPad a few days ago.. so there might be an easier way then a script ...

I hope that helped a bit.

Have a nice day
Chris



IP: Logged

douglasdifranco
Member
posted 22 November 2012 09:31         Edit/Delete Message   Reply w/Quote
Hi Chris,
Thank you so much! It works almost perfect. It's triggering when I press and again when I release the button. I have "message sent when value goes from zero to positive" selected so I would think that only one message would be set per button press. What do you think?
Second question, where can I find information on Lemur scripting language and syntax?
Doug

IP: Logged

ChristianSchloesser
Member
posted 22 November 2012 09:46         Edit/Delete Message   Reply w/Quote
Maybe you could use a PAD-Widget instead of a Button-Widget!

Pads send the message when pressed ... but not on release.
I don t really know yet.. i am just starting with the Lemur.app and Kyma.
I bought my iPad last Friday...so i am a "Noob" ;-)
I have done all my Kyma controls via MIDI or OSC via Supercollider,Processing,Osculator but mostly with the great KymaConnect application.

I will let you know if i found a good source of information.
There are already some good tips about OSC on the SSC website.

Have a nice day
Chris

IP: Logged

douglasdifranco
Member
posted 22 November 2012 13:21         Edit/Delete Message   Reply w/Quote
That's what I've done, use a switch button in Lemur. Have fun with your new iPad! I've got a few too many sound apps but Lemur and Kyma Control are a must if you have Kyma and a iPad.
Doug

IP: Logged

Douglas Kraul
Member
posted 29 November 2012 05:54         Edit/Delete Message   Reply w/Quote
TouchOSC only supports floating point arguments, and the Lemur uses them unless you send from a script. This is unfortunate because critical Kyma OSC commands, like "/preset", require integer arguments.

One of the features we include in KymaConnect is an extension to the Kyma OSC language to include floating alternatives for a few of these commands, including "/preset". This makes it possible to do things like the dice roll from a TouchOSC template, and from the Lemur without resorting to a script. The commands currently supported include /preset, /layout, /volume, and the OSC extensions KymaConnect adds to control Kyma's DSP commands. If you know of other commands where having floating point equivalents would be helpful let us know and we'll investigate if its practical to add them.

Doug

IP: Logged

douglasdifranco
Member
posted 30 November 2012 10:27         Edit/Delete Message   Reply w/Quote
I'm using PacaConnect but so far the only way I could achieve the dice roll is by using Osculator along with Lemur. I can't get volume to work.

[This message has been edited by douglasdifranco (edited 30 November 2012).]

[This message has been edited by douglasdifranco (edited 30 November 2012).]

IP: Logged

Douglas Kraul
Member
posted 02 December 2012 16:02         Edit/Delete Message   Reply w/Quote
quote:
Originally posted by douglasdifranco:
I'm using PacaConnect but so far the only way I could achieve the dice roll is by using Osculator along with Lemur. I can't get volume to work.

[This message has been edited by douglasdifranco (edited 30 November 2012).]

[This message has been edited by douglasdifranco (edited 30 November 2012).]


The Kyma OSC extension were one of the features we added to KymaConnect. Unless you are running on OSX Leopard you might want to contact us about migrating up to KymaConnect. drop me a line at support@delora.com

Doug

IP: Logged

rafe
Member
posted 05 December 2012 13:00         Edit/Delete Message   Reply w/Quote

VcsPresetMenu.jzlib.zip

 
Hello All

Here are the vcs control commands listed by Carla in one menu object for import into the lemur app.

This basic menu object needs to be place higher in your lemur interface as the menu is drop down only. When you select 'Save' unfortunately Kyma does not keep the File name window open option it simply saves the result so you cannot create your own name file.

Question 1) Is there any way to change that?


I tried to avoid the scripting method that Christian adopted because the other extended functionality implemented by Douglas worked so well (Nicely done- thanks) I thought it would be a relatively straight forward to utilize the commands in a menu object. However, the menu object's documentation isn't as detailed in the manual as other objects nor are there very many examples of it in use. I wasn't certain whether it was my lack of understanding of the object or the osc protocol.

What I tried was using many syntax variations of ;

/delora/kyma_connect/kyma_commands/preset/

and scaling the 'selection' parameter to the corresponding values mentioned above but I didn't succeed with that method, however, the menu object will ouput integers. I tested an output with a scale of 0-128 and i can get corresponding values when mapped to a fader in the vcs. Which also seems odd as the other extended functions are hidden from the vcs.

2) What is the correct full syntax for that statement?

Rafe


IP: Logged

Douglas Kraul
Member
posted 07 December 2012 06:12         Edit/Delete Message   Reply w/Quote
quote:
Originally posted by rafe:
What I tried was using many syntax variations of ;

/delora/kyma_connect/kyma_commands/preset/

and scaling the 'selection' parameter to the corresponding values mentioned above but I didn't succeed with that method, however, the menu object will ouput integers. I tested an output with a scale of 0-128 and i can get corresponding values when mapped to a fader in the vcs. Which also seems odd as the other extended functions are hidden from the vcs.

2) What is the correct full syntax for that statement?

[/B]


There are two type of OSC commands that KymaConnect adds. The first ones are the "DSP" control commands. Those are documented in the back of the manual and follow a pattern similar to the above.

The second are the extension to existing Kyma OSC where KymaConnect adds an improvement, like supporting floating point arguments when Kyma accepts only integer. Those commands use the identical OSC address as the originals. So, for example, the send preset command is simply "/preset f" (where 'f' is a floating point number). Also there really is not any scaling per say. The value of the argument is the same as the integer value, its just expressed as a floating point number.

Doug

[This message has been edited by Douglas Kraul (edited 07 December 2012).]

[This message has been edited by Douglas Kraul (edited 07 December 2012).]

IP: Logged

All times are CT (US)

next newest topic | next oldest topic

Administrative Options: Close Topic | Archive/Move | Delete Topic
Post New Topic  Post A Reply

Contact Us | Symbolic Sound Home

This forum is provided solely for the support and edification of the customers of Symbolic Sound Corporation.


Ultimate Bulletin Board 5.45c