I've made a midi step sequencer based around the StepSequencer sound. I'm using it to control a modular synth via a midi-to-cv converter. The sequencer has 16 steps and outputs gate, pitch, velocity, midi CC1 and pitch bend. Here's a screenshot of it:
Here's an example of it playing the Mutable Instruments Braids oscillator:
http://kyma.symbolicsound.com/qa/?qa=blob&qa_blobid=3640430601302550060
(all the tweaking in the sample is done using the VCS in kyma)
I want to have 4 (and possibly more) of these sequencers in a Sound where the only difference between them will be their midi output channel. This seemed like a good case for using a Class. I've tried using the "new class from example" option from the Action menu... but that gets tricky! First kyma prompts me to enter a value for each !EventValue... but there's about 96 of those. If I enter a simple value like "1" for each of those, it doesn't work.
I've tried this with smaller example sequencers. The class making process asks me to replace all !EventValues for ?EventVariables. If I do that then I end up with a whole bunch of parameters like P01, P02, P03 etc etc. Where the original StepSequencer had a single parameter called Pitches which expected an array.
My pitch array in the StepSequencer is created by a script:
pitches: {1 to: ?Steps collect: [:i | (!Pitch_ suffix: i) + (!Octave * 12) + !PitchOffset + 60]}
If I replace this with something like ?pitches, I don't know what to put when Kyma prompts me to enter a value for ?pitches.
What I want is that nicely laid out grid of VCS controls - it takes quite a while to format and place all those controls! Is the only way to get a VCS control to appear, when making a class, is to have a parameter field in the class and then the user of that class enters a !EventValue in the that field?
Ideally what I want is a class with a single parameter "Midi Channel" but when used, you get all the VCS controls. Is that possible? The second best option would be a class which has parameters for gate, pitch, velocity, CC, pitch-bend but each of these would be a single parameter that would take an array and the default value in that parameter would generate the VCS controls in the screenshot. How would I do either of those?
Also the StepSequencer creates a !Stage EventValue. When I try and make a class Kyma insists I change that to ?Stage but then I get this error:
Thanks for any help! Sorry this is a bit of a long rambling question, I hope it makes sense.
Cheers,
Alan