In finding out the basic use of the Onsets Ugen in supercollider a particular resource that was a great help was that of Nick Collins who has an excellent page dedicated to the use of Ugens for Machine listening. This is an area I have now found myself exploring further after my previous audio reactive project. Below is the code snippet that was of interest to me.
Within the Supercollider documentation the Onsets Ugen is described as "An onset detector for musical audio signals - detects the beginning of notes/drumbeats/etc. Outputs a control-rate trigger signal which is 1 when an onset is detected, and 0 otherwise." Of note is the fact that this is actually control rate which means that it is constantly outputting data rather than only sending single 'bang' values when the threshold is crossed. Another factor to which I had not come across before was the use of an FFT buffer for audio, but in practice this is simple to implement.
Within the Supercollider documentation the Onsets Ugen is described as "An onset detector for musical audio signals - detects the beginning of notes/drumbeats/etc. Outputs a control-rate trigger signal which is 1 when an onset is detected, and 0 otherwise." Of note is the fact that this is actually control rate which means that it is constantly outputting data rather than only sending single 'bang' values when the threshold is crossed. Another factor to which I had not come across before was the use of an FFT buffer for audio, but in practice this is simple to implement.
No comments:
Post a Comment