## Re: [Audacity-nyquist] Get length of sound

 Re: [Audacity-nyquist] Get length of sound From: edgar - 2010-03-18 02:37:26 ```Chris Capel asked: > I'm looking for a way to get the length of a sound without > computing the sound. Is there something to do that? In Nyquist (CMU version) I don't know any other way than to compute the sound. In Audacity the following works: > (Steve already suggested): > > If you mean the length of the sound "s"... > (get-duration 1) Also, in Audacity, the Nyquist variable "len" equals to the number of samples in the Audacity selection. http://www.audacity-forum.de/download/edgar/nyquist/nyquist-doc/devel/audacity-nyquist-en.htm#variables - edgar -- The author of this email does not necessarily endorse the following advertisements, which are the sole responsibility of the advertiser: ```

 [Audacity-nyquist] Get length of sound From: Chris Capel - 2010-03-18 00:27:50 ```I'm looking for a way to get the length of a sound without computing the sound. Is there something to do that? Chris Capel -- "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) ```
 Re: [Audacity-nyquist] Get length of sound From: Roger Dannenberg - 2010-03-18 00:55:50 ```No really. In the Nyquist model, sounds are (usually) the result of computation which is undecideable. Of course, if you know something about the computation, you might be able to compute the length without running the computation. E.g. (osc c4) has a predictable length. -Roger Chris Capel wrote: > I'm looking for a way to get the length of a sound without computing > the sound. Is there something to do that? > > Chris Capel > ```
 Re: [Audacity-nyquist] Get length of sound From: Stevethefiddle - 2010-03-18 02:03:50 ```If you mean the length of the sound "s"... (get-duration 1) -- View this message in context: http://n2.nabble.com/Get-length-of-sound-tp4753880p4754215.html Sent from the audacity-nyquist mailing list archive at Nabble.com. ```
 Re: [Audacity-nyquist] Get length of sound From: edgar - 2010-03-18 02:37:26 ```Chris Capel asked: > I'm looking for a way to get the length of a sound without > computing the sound. Is there something to do that? In Nyquist (CMU version) I don't know any other way than to compute the sound. In Audacity the following works: > (Steve already suggested): > > If you mean the length of the sound "s"... > (get-duration 1) Also, in Audacity, the Nyquist variable "len" equals to the number of samples in the Audacity selection. http://www.audacity-forum.de/download/edgar/nyquist/nyquist-doc/devel/audacity-nyquist-en.htm#variables - edgar -- The author of this email does not necessarily endorse the following advertisements, which are the sole responsibility of the advertiser: ```
 Re: [Audacity-nyquist] Get length of sound From: Chris Capel - 2010-03-18 13:06:35 ```On Wed, Mar 17, 2010 at 21:36, edgar wrote: > Chris Capel asked: > >  > I'm looking for a way to get the length of a sound without >  > computing the sound. Is there something to do that? > > In Nyquist (CMU version) I don't know any other way than to > compute the sound. > > In Audacity the following works: > >  > (Steve already suggested): >  > >  > If you mean the length of the sound "s"... >  > (get-duration 1) > > Also, in Audacity, the Nyquist variable "len" equals to the > number of samples in the Audacity selection. > > http://www.audacity-forum.de/download/edgar/nyquist/nyquist-doc/devel/audacity-nyquist-en.htm#variables > > - edgar Thanks, Steve and Edgar. That link you gave me was exactly what I was searching for before I sent my question. I wonder why it didn't come up more easily in google. It'd be nice if it were more easily accessible from the main audacity web page. Chris Capel -- "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) ```
 Re: [Audacity-nyquist] Get length of sound From: Gale Andrews - 2010-03-18 13:50:37 ```| From Chris Capel | Thu, 18 Mar 2010 08:06:19 -0500 | Subject: [Audacity-nyquist] Get length of sound > On Wed, Mar 17, 2010 at 21:36, edgar wrote: > > Chris Capel asked: > > > >  > I'm looking for a way to get the length of a sound without > >  > computing the sound. Is there something to do that? > > > > In Nyquist (CMU version) I don't know any other way than to > > compute the sound. > > > > In Audacity the following works: > > > >  > (Steve already suggested): > >  > > >  > If you mean the length of the sound "s"... > >  > (get-duration 1) > > > > Also, in Audacity, the Nyquist variable "len" equals to the > > number of samples in the Audacity selection. > > > > http://www.audacity-forum.de/download/edgar/nyquist/nyquist-doc/devel/audacity-nyquist-en.htm#variables > > > > - edgar > > Thanks, Steve and Edgar. That link you gave me was exactly what I was > searching for before I sent my question. I wonder why it didn't come > up more easily in google. It'd be nice if it were more easily > accessible from the main audacity web page. I'm fine with linking to Edgar's documentation on: http://audacity.sourceforge.net/help/nyquist Isn't it correct that for Audacity Beta, the current CMU Manual is valid (apart from the differences between CMU-Nyquist and Audacity-Nyquist)? If so, there are pages in the Audacity Wiki where we should make this Audacity Beta distinction clear too. Gale ```
 [Audacity-nyquist] Audacity Nyquist docs, XLISP, SAL, and Ubuntu From: edgar - 2010-03-18 18:03:26 ```Three things in only one mail: * Nyquist Documentation in the German Audacity forum > Chris Capel wrote: > > That link you gave me was exactly what I was searching for before > I sent my question. I wonder why it didn't come up more easily in > google. It'd be nice if it were more easily accessible from the > main audacity web page. My Nyquist pages are not copyrighted or something, I will have no problems if somebody copies the text to the Audacity wiki or somewhere else, you do not even need to cite me as an author or ask me for permission (in the internet I have no control about it anyway). The reason why I hadn't copied the text to the Audacity Wiki myself is that parts of these pages are in unstable condition because many things had been found by accident or experimentation. For example, if you see text boxes like "Roger Dannenberg wrote" and similar things, then you might read this as "Edgar's original text had been wrong and Roger had told him how it works correctly." Other topics like the Nyquist Workbench are just simply still under development or discussion and probably will change in the future. But you may feel free to copy everything to everywhere you like. * XLISP and SAL [Background information: in Nyquist 3.0, the primary programming language used in Nyquist switched from XLISP to SAL, and now SAL is also the programming language used in the Nyquist 3.x manuals.] What is SAL: http://www.cs.cmu.edu/~rbd/doc/nyquist/part7.html#50 I spring 2009 (approx. one year ago) the Audacity Nyquist library in Audacity_1.3.x had been updated to Nyquist 3.x, so the SAL language now also can be used with Nyquist in Audacity_1.3.x. I'm not sure wether SAL works with Audacity_1.2.x (probably not). > Gale Andrews asked: > > Isn't it correct that for Audacity Beta, the current CMU Manual > is valid? ... If so, there are pages in the Audacity Wiki where > we should make this Audacity Beta distinction clear too. I think the current Nyquist_3.x manual (SAL) can also be used with Audacity_1.3.x but I'm not 100% sure because I still do not use SAL. We need people to test this. I think in the Audacity wiki, notes like "please use copies of the old Nyquist/XLISP manuals for Nyquist in Audacity" should be changed or supplemented by notes that in Audacity_1.3.x now both languages (XLISP and SAL) can be used with Nyquist in Audacity, otherwise we will never find out... * Audacity and Ubuntu/PulseAudio As you probably know from the forums and user lists Audacity currently doesn't work really good (very polite wording) under Ubuntu/PusleAudio But this is a general Ubuntu/PuleseAudio problem and probably not an Audacity bug, many other software has the same problems, too. But working myself at home with Ubuntu/PuleseAudio, at the moment it's nearly impossible for me to test new Audacity versions. That's the main reason why you haven't heard from me very much since last december. In approx. six weeks (end of april 2010) the new Ubuntu_4/10 release will come out. In case the new Ubuntu (hopefully) has a working sound system, I will go on testing Nyquist in Audacity. - edgar -- The author of this email does not necessarily endorse the following advertisements, which are the sole responsibility of the advertiser: ```
 Re: [Audacity-nyquist] Audacity Nyquist docs, XLISP, SAL, and Ubuntu From: Al Dimond - 2010-03-18 18:42:47 ```On Thursday 18 March 2010 12:01:58 edgar wrote: > * Audacity and Ubuntu/PulseAudio > > As you probably know from the forums and user lists Audacity > currently doesn't work really good (very polite wording) under > Ubuntu/PusleAudio But this is a general Ubuntu/PuleseAudio problem > and probably not an Audacity bug, many other software has the same > problems, too. > > But working myself at home with Ubuntu/PuleseAudio, at the moment > it's nearly impossible for me to test new Audacity versions. > That's the main reason why you haven't heard from me very much > since last december. > Audacity has worked fine for me on Ubuntu with Pulse. If you're having problems with it and want to use Audacity without Pulse you can run it with pasuspender. It's not really on-topic for this list, so if you need some help with that you can email me off-list. > In approx. six weeks (end of april 2010) the new Ubuntu_4/10 > release will come out. In case the new Ubuntu (hopefully) has a > working sound system, I will go on testing Nyquist in Audacity. > I don't think there are any plans for Ubuntu to remove Pulse, and nothing is going to change soon regarding Audacity's Pulse support. It's possible that a configuration change will improve things for you, but it unfortunately doesn't seem that likely. - Al > - edgar > ```
 [Audacity-nyquist] Audacity Nyquist "Easy Vocoder" From: edgar - 2010-03-22 12:18:42 ```Hi all on the Audacity Nyquist list, Gale Andrews had written in an email that it is nearly impossible to explain on the Audacity mailing lists how to use the Audacity vocoder. I was wondering anyway all the time why the vocoder, which got stuck in the summer 2005 in a pre-pre-pre-alpha state, is included in the official Audacity releases. This had not been my own idea. So I tried to sit down and write a manual how to use the vocoder but after several hours of "first split this track into that and that" and "re-combine this part of that track to the other part of just another nonsense" I realized that we just simply have to face that in the current state of Audacity, handling multi-track effects in a reasonable way is just simply still far out of sight. There is really NO WAY to work with the vocoder in a way that I can bear in my head. However, after re-thinking the whole vocoder thing (and thanks to a hint from Gale to another vocoder plugin, which also doesn't work in Audacity) I decided to do a complete re-write of the Audacity vocoder, stripping radically out everything what is not provided by the current Audacity versions. So here my suggestion: I have written a new "Easy Vocoder" plugin, that: * has no memory problems * can handle mono and stereo tracks, even multiple selected tracks * is overdrive-protected by an internal limiter * has build-in carrier generators * doesn't need any "split-stereo-track" or "make-stereo-track" nonsense * just click-the-button and listen to the result, nothing else This is probably what most people want form a vocoder. There are also some disadvantages to note: * the "Easy Vocoder" cannot vocode Audacity tracks This means in particular that you cannot vocode your own keyboard playing. For some people this no good news. * the "Easy Vocoder" is rather slow... This is the price you have to pay if "everything goes magically by clicking some buttons". So I suggest that in case the "Easy Vocoder" has not any other, still undiscovered problems, the "Easy Vocoder" shall be distributed with the official Audacity releases, while the old vocoder will still be offered in a public place, for people who are willing to take the pain of "split-stereo-track", "make-stereo-track", "copy this to that" and "that to this" and everything around in circles... Whoever really wants to work that way may write an instruction manual. In case you want to play around with the "Easy Vocoder", you can download the plugin from the german Audacity forum: http://www.audacity-forum.de/download/edgar/plugins/vocoder/easy-vocoder.ny I still haven't tested the "Easy Vocoder" with Audacity_1.2.x, so if you find any problems please write to this list or to: edgar-rft[at]web.de Now have fun with the "Easy Vocoder"... - edgar -- The author of this email does not necessarily endorse the following advertisements, which are the sole responsibility of the advertiser: ```