|
Kyma Forum
![]() Tips & Techniques
![]() distribution pattern to trigger samples
|
| next newest topic | next oldest topic |
| Author | Topic: distribution pattern to trigger samples |
|
gigi Member |
Hello, my loudspeakers are in a quadraphonic system. I got 24 samples (different duration) and would equally "spread" them through the 4 loudspeakers. I currently would like to trigger them with just one button per set/channel. Each button should then trigger each sample by chance. I also would like to trigger another sample - from the same set - without interrupting the previous one (however, any suggestion about any other distribution pattern to spread samples, indexes, numbers or whatever, will surely be welcomed…..). In my processes I use an amplitude follower as a feature-extractor/control signal. In the future I would like to rescale it to obtain the six numbers/indexes (or more) I need to recall the samples. I can be wrong, but I’m not sure whether the amp-follower can reach 0 and 1 values, or not. Anyway, I can’t figure how to rescale such a span out. Best regards IP: Logged |
|
pete Member |
Hi Gigi Not sure I fully Understand what you are looking for but I'll give you some pointers as to what I think you need and you can tell me where I've got it wrong. I think you want random samples to play when you press a trigger button but if you press it a second time you want a new random sample to play but leave the first sample playing un-effected. To ensure that no samples get cut off you need to know what is the maximum number you expect to be playing at any one time (the polyphony). This could be 5 or 500 but the principle is the same. Lets assume the number is 5. If the number gets much bigger it may need another approach using replicators. The module you need is "multi disk player" so get 5 copies of them and put them into a mixer. For the file names field make sure your samples are in the same folder and using the formula that is in the default module get it pointing to one of the files in that folder. Now you want them to trigger one at a time sequentially and cyclicly, so in the first modules trigger field type (!Trig countTriggersMod: 5) eq: 0 in the second type then Because you want random files to play then type the following in all five Index fields. 24 because that is the number of files you have in your folder. This will give you a mono version with just one file triggered for each press. I'm not quite sure what you expect to come out of the four speakers. Once we know that, we can go onto the next stage. Hope this makes sense Pete. IP: Logged |
|
SSC Administrator |
Hi Gigi and Pete, Would it be possible to use a MIDI keyboard (or Kyma Control's keyboard tab) as your "buttons" for triggering? If so then perhaps you could start this way: * Put a MIDIVoice into each input of an Output4 (one to each speaker) As Pete pointed out, it would be necessary to know how many samples could be playing simultaneously at any given time. Use this as the Polyphony of the MIDIVoice. Then you could trigger each channel with a different key of the keyboard. For example, using: !KeyDown gateWhen: (!KeyNumber eq: 69) Would this work for what you have in mind? IP: Logged |
|
gigi Member |
Hi Pete and SSC, thanks for your answers. @Pete Next stage: spatialize the files moving them around the 4 speaker space. IP: Logged |
|
pete Member |
Hi Gigi If for example your amplitude was ranging from 0 to 0.25, just multiply it by 4 and it will range from 0 to 1. I'm guessing you have pasted the amp follower into a hot parameter field so you can manipulate it with cappy talk. If not, and you need to keep it at sample rate control for some reason, you could put it in a gain module and set the level to 4. That said you probably don't want all the quiet stuff coming out of speaker 1 and all the loud stuff coming out of speaker 4 as that would sound quite un-balanced. May be you would rather it didn't just go round your head once as the level rises, but would prefer it to spiral around your head say 10 times from quiet to loud. This should balance out the speakers and give more sense of motion (if that's what you are looking for). To do this you would multiply your amp follower by 40 in stead of 4, and then use modulo division to form the wrap around like this. ( [AmpFollower] L *40 ) mod: 1.0 This will ramp from 0 to 1 and switch back to 0 then ramp up again ten times if the input level was gradually increasing. This is assuming that the angle control is in the range 0 to 1 to cover all 4 speakers but normally it is in the range -1 to +1, in which case you could use the following formula to put it in the correct range. ( ( ( [AmpFollower] L *40 ) mod: 1.0 )*2 )-1 Also you may need extra smoothing on the Amp follower signal as the tiny changes in input level will have a large changes in speaker amplitude. So you may need this, (with a hot control to adjust the smoothing). ( ( ( ( [AmpFollower] L *40 ) smooth: !Smooth s ) mod: 1.0 )*2 )-1 Note that the smoothing has to be done before the mod: or it would quickly flick back around all 4 speakers in the wrong direction at every wrap around junction, making clicks. That said, if you are using kyma fields to deal with the angle you may find that it already does the wrap around for you automatically, if you just put bigger numbers in there. So the mod; wouldn't be needed, but at least you can see what's happening if you do the mod: your self. Is this, may be, what you are looking for? Pete IP: Logged |
All times are CT (US) | next newest topic | next oldest topic |
![]() |
|
This forum is provided solely for the support and edification of the customers of Symbolic Sound Corporation.