Monthly Archives: September 2012

Playing a Random Set of Samples in Kontakt

For a project I am working on at the moment I am using Native Instruments Kontakt’s scripting language (KSP) to trigger random samples from a range within the sampler using the script I posted in a previous post. (Here)
This was all working well but when the sample size was getting to small the script was getting locked in a while loop trying to find notes that it had not used before which was very inefficient.
The solution I came up with was to use an array to store all the notes which gets shuffled randomly whenever it reaches the sample limit.
Below is an example of the script I created.

on init
  
  message("Loaded...")
  
declare $temp := 0
declare $random_temp := 0
declare $counter := 0
declare $lower_limit := 0
declare $upper_limit := 10  
declare $play_head := 0

declare %array_one[10]

  
  
  while($counter < num_elements(%array_one))
      
      %array_one[$counter] := $counter
      
  inc($counter)
      end while
  
  
  {shuffle array 1}
  
  $counter := 0
  
while($counter < num_elements(%array_one))
    
    $random_temp := random(0, num_elements(%array_one) - 1)
    
    $temp := %array_one[$counter]
    %array_one[$counter] := %array_one[$random_temp]
    %array_one[$random_temp] := $temp
    
    
    inc($counter)
    end while
 
       
  
end on

function shuffleArray
   
    $counter := 0
    
  while($counter < num_elements(%array_one))
    
    $random_temp := random(0, num_elements(%array_one) - 1)
    
    $temp := %array_one[$counter]
    %array_one[$counter] := %array_one[$random_temp]
    %array_one[$random_temp] := $temp
    
    
    inc($counter)
    end while  
    
    
    
end function



on note
    
if ($play_head < 10) 
message("Playing....")    
play_note(%array_one[$play_head],100,0,-0)
inc($play_head)

else 
message("Shuffle....") 
call shuffleArray
$play_head := 0
play_note(%array_one[$play_head],100,0,-0)
inc($play_head)

end if    
    
    
end on

The Constant and The Flux at TIFF

I’ve been working on the sound for some great projects recently with a write/director/artist friend of mine Callum Cooper. One of these projects The Constant and the Flux is currently showing at the Toronto film TIFF Bell Lightbox from September 6 to 16. On display as well is the camera rig that Callum used to create the amazing visual effect.
The majority of the camera audio was unusable so I had to create all the atmospheres and incidental sound effects. I also created a Kontakt instrument which would pick a random effect from a pool of 20 and play them at a random pitch so that I could just play in the midi notes on the transitions and have the instrument not sound like it was looping samples

If you’re in the Toronto area go check it out.
http://tiff.net/filmsandschedules/tiff/2012/theconstantandtheflux

Radio Commercial Production From A Bit Back

I’ve been pretty busy with my final semester at Monash Uni, doing assignments and trying to keep up with the workload while also finishing an update to the Aussie Lingo iOS app, working my day job, learning Spanish and trying to have a life. I think I may be my own worst enemy when it comes to spare time..
I’ve finally managed to get around to doing a bit of archiving of old jobs and have rediscovered some radio commercials I have worked on over the last couple of years while working at Risk Sound that were memorable.

1. RAA-WAIVE-Radio.mp3     

RAA – Waive Radio. I created all the sound fx and music using Native Instruments Kontakt. It’s great working on radio where there is a bit of scope for sound design and you’re not restrained by having to work to pictures.

2. Intraflora-Radio.mp3     

Interflora Radio – This was done quite a few years back but I can remember it being quite a fun process.

3. CGU-Plumber-Radio.mp3     

CGU Radio – This was one of a bunch of CGU ads the I worked on over a period of a couple of months.

4. All-Seasons-Gutter-Guards-Radio.mp3     

All Seasons Gutter Guards Radio – This was one of a campaign of three commercials in which I learned a lot of new words…

I’ve also launched a new show reel page with a video and audio show reel which you can access from the top page.