Kyma Forum
  Kyma Sound Exchange
  Trigger Code

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

next newest topic | next oldest topic
Author Topic:   Trigger Code
garth paine
Member
posted 22 April 2006 08:23         Edit/Delete Message   Reply w/Quote

BellQuartet.zip

 
Hi Kymerites

In the attached sound file, there is a soundToGlobalController used to create a trigger for the buffer recordings. You will see I am using the

Keynumber eq X * Keydown

to check for the pitch and only trigger on the note-on

However it seems that all 4 of the triggers are evaluated at the same time, so that only one of the triggers can be on at a time and the last incoming one remains on.

What I would like to do is to set the note for each trigger differently, so I can use sensors to trigger each buffer recording, and to be able to have more than one trigger active at any one time.

Suggestions for code would be great - thanks Garth

IP: Logged

SSC
Administrator
posted 23 April 2006 15:25         Edit/Delete Message   Reply w/Quote
Try adding a MIDIVoice between each StereoMix4 and the ForcedProcessorAssignments. Set the LowPitch and HighPitch fields of each MIDIVoice to only include the note you want to use as a trigger. (You should be able to remove the conditional part of the expression from the SoundToGlobalController since the MIDIVoice will restrict the range of allowable triggers.)

IP: Logged

garth paine
Member
posted 23 April 2006 15:49         Edit/Delete Message   Reply w/Quote
Thanks for that, I'll give it a try.

BTW the forceprocessorassignment objects are there as if i do not have them the entire sound tries to run on one processor, and of course clips - can you check that at your end for me - seemed like strage processor allocation during compilation.

Cheers, Garth

IP: Logged

SSC
Administrator
posted 24 April 2006 10:13         Edit/Delete Message   Reply w/Quote
If you get rid of the TimeOffset Sounds in your Sound structure, Kyma should be able to schedule your Sound properly without the ForcedProcessorAssignments (the TimeOffsets are probably in your structure for historical reasons -- in the past, the Sound compiler needed them to properly schedule the Sound).

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