Fwd: : Re: [Audacity-nyquist] generator with oscillation question
A free multi-track audio editor and recorder
Brought to you by:
aosiniao
From: Steven J. <pl...@gm...> - 2006-05-13 02:52:11
|
Chris, you need to use fmosc (as David suggest) together with pwl or one o= f the other related piece wise functions. Use pwl to create a pitch envelope defined by time-level break point pairs. This envelope is then applied as the modulation source to fmosc. The duration of the envelope determines the duration for fmosc. Something like this (fmosc (hz-to-step 0) (pwl .....)) should do the trick. Also you may find it easier to develop code in the stand alone version of Nyquist as opposed to the version included with Audacity. Once the code works in Nyquist proper it is an easy enough matter to convert it to an Audacity plugin. Hope that helps *Chris Capel <pd...@gm...>* wrote: If I want to generate a sine wave that changes its pitch over time, such that I can specify time frequency pairs with interpolation, how would I do this? As an example, how would I generate a two second sine wave that starts at frequency 500, increases to 1000 by the second mark, and decreases back to 500 by the second mark? Ideally it would be some function (user-defined or not) that can be called like this: (make-my-sine 2.0 ;seconds 0.0 500 ;time Hz 0.5 1000 1.0 500) ;optionally more time Hz pairs I've played around with stuff a lot, but most of what I try ends up freezing audacity, I assume because the sounds I create are of infinite length and never stop evaluating when audacity tries to get the samples. Chris Capel --=20 "What is it like to be a bat? What is it like to bat a bee? What is it like to be a bee being batted? What is it like to be a batted bee?" -- The Mind's I (Hofstadter, Dennet) ------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=3Dlnk&kid=120709&bid&3057&dat=121642<ht= tp://sel.as-us.falkag.net/sel?cmd=3Dlnk&kid%120709&bid&3057&dat%121642> _______________________________________________ Audacity-nyquist mailing list Aud...@li... https://lists.sourceforge.net/lists/listinfo/audacity-nyquist |