[flocking-users] Flocking and musical constants.

Colin Clark colin at colinclark.org
Wed Feb 11 02:33:28 EST 2015


Can you elaborate on what kind of thing you're looking for?

You can use the flock.ugen.midiFreq unit generator to convert MIDI note numbers to frequency values like this:

{
  ugen: "flock.ugen.sinOsc",
  freq: {
    ugen: "flock.ugen.midiFreq",
    source: 60 // Middle C
  }
}

The flock.midiFreq() utility function will also convert from MIDI note strings:

var freq = flock.midiFreq("a5"); // 440 Hz.

I hope this helps,

Colin

> On Feb 11, 2015, at 12:55 AM, derek riemer <Derek.Riemer at Colorado.EDU> wrote:
> 
> Hi!
> Does Flocking have any builtin constants or ugens that generate audio at a specific note?
> Thanks,
> Derek
> -- 
> Derek Riemer
> 
> Department of Computer science Undergrad, proud CILA member, music lover, avid skier, and much more.
> 
> "Not everything that is faced can be changed, but nothing can be changed until it is faced." - James Baldwin
> 
> email me at derek.riemer at colorado.edu <mailto:derek.riemer at colorado.edu> 
> Phone: (303) 906-2194
> 
> _______________________________________________
> users mailing list
> users at lists.flockingjs.org
> http://lists.flockingjs.org/listinfo.cgi/users-flockingjs.org

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.idrc.ocad.ca/pipermail/flocking/attachments/20150211/6a0b0f28/attachment.html>


More information about the flocking mailing list