Forum Replies Created

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • in reply to: Ambisonics and Kyma #1551
    Cristian Vogel
    Participant

    Yes so we did publish the KAT toolkit for ambisonics

     

    Kyma Ambisonic Toolkit

    in reply to: Script to rewrite OSC for Kyma #1030
    Cristian Vogel
    Participant

    I made a little mistake in the code posted above… but seems like the forum won’t let me edit my post. The rewrite block should read:

     

    rewriter:=
    [:inputList |
    | result |
    result := OrderedCollection new.
    inputList do: [:message |
    | stem argCount  |
    stem := (‘osc_’&(message copyFrom: 2 to: message size) copyReplaceAll: #($/) with: #($_)).

    argCount := message occurrencesOf: $f.
    (argCount > 0) ifTrue: [
    (1 to: argCount) do: [:n | |
    arg |
    arg := (stem copyUpTo: $ )&’__’&n.
    result add: (arg asHotValue).
    ]
    ] ifFalse: [    result add: (stem asHotValue).]
    ].
    result
    ].

     

Viewing 2 posts - 1 through 2 (of 2 total)