Re: [Cs-dev] sensekey
Date | 2006-12-08 21:10 |
From | "Art Hunkins" |
Subject | Re: [Cs-dev] sensekey |
Attachments | None None |
What would also be helpful are normative -b and -B
settings for realtime work on various systems. (By normative, I mean what will
work out of the box in most situations.)
For example, is -b1024 -B4096, the old Istvan
standard for Windows, still the recommended norm (for a relatively up-to-date
system)?
Art Hunkins
|
Date | 2006-12-11 01:44 |
From | "Dr. Richard Boulanger" |
Subject | Re: [Cs-dev] sensekey |
Attachments | None None |
Exactly, I agree. Some suggested settings - sr, kr, -b -B for various applications would be helpful - especially to the beginner. -dB On Dec 8, 2006, at 4:10 PM, Art Hunkins wrote:
|
Date | 2006-12-11 08:15 |
From | jpff |
Subject | Re: [Cs-dev] sensekey |
regarding values for sr and kr, the code has defaults that were determined after a net-discussion. Current values are sr = 44100 kr = 4410 We have not discussed suitable defaults for -b and -B as far as i can remember ==John ffitch ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Csound-devel mailing list Csound-devel@lists.sourceforge.net |
Date | 2006-12-11 13:51 |
From | "Dr. Richard Boulanger" |
Subject | Re: [Cs-dev] sensekey |
Hi John, Hope you are well. Complimentary defaults for this sr and kr would be good to decide. -Rick On Dec 11, 2006, at 3:15 AM, jpff wrote: > regarding values for sr and kr, the code has defaults that were > determined after a net-discussion. Current values are > sr = 44100 > kr = 4410 > > We have not discussed suitable defaults for -b and -B as far as i > can remember > ==John ffitch > > ---------------------------------------------------------------------- > --- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to > share your > opinions on IT & business topics through brief surveys - and earn cash > http://www.techsay.com/default.php? > page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > Csound-devel mailing list > Csound-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/csound-devel ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Csound-devel mailing list Csound-devel@lists.sourceforge.net |
Date | 2006-12-12 06:06 |
From | Jonathan Murphy |
Subject | Re: [Cs-dev] sensekey |
The other defaults, according to the manual (CommandFlags.html) are: Linux: -b 256 -B 1024 Mac: -b 1024 -B 4096 Win: -b 4096 -B 16384 It's occurred to me that this presents a conundrum. For full duplex operation, -b needs to be an integer multiple of ksmps. If the default ksmps is 10, then none of the other defaults are appropriate. However, in terms of 16-bit audio, the defaults for -b and -B are appropriate, and make much more sense than if they were geared towards a ksmps of 10. What I mean is this: sr = 44100 ksmps = 10 The user wants full duplex operation, so they set -b 100, -B 400. With my onboard soundcard, which uses the old but extremely common AC97 codec, I can't use this buffer size. JACK uses the alsa api to query the card as to actual capabilities, and won't run with a buffer size indivisible by 16. This seems to me to be a simple, efficient usage of available resources. I suspect that what the codec really does, once the sample-rate and time source are set, is just to count samples, but that it counts them in bytes, or words, for the sake of efficiency. If I use the alsa plugin, it lets me get away with -B 400, but I'm pretty sure that what's really going on is that it's secretly changing the buffer size to 512, rather than failing over 400. This would imply, further, that csound is not going to be getting the expected sample-frame size from the adc, and that this is going to cause problems, because the real size is no longer going to be an integer multiple of ksmps. Does this make sense? If so, if anyone else can find the time to run some tests (preferably using JACK, as it's the most reliable) it would be really helpful in terms of being able to present accurate information. If it turns out that this is in fact the case, then perhaps sr = 48000 kr = 8 might be a better default? Thanks in advance, and I hope that I'm wrong. Jonathan. jpff |
Date | 2006-12-12 09:32 |
From | Victor Lazzarini |
Subject | Re: [Cs-dev] sensekey |
I'm not so sure this is the case everywhere. It is not on OSX as far as I can remember and with win MME. In fact the only time I saw this being an issue is with Windows ASIO. >For full duplex operation, -b needs to be an integer multiple of >ksmps. Victor Lazzarini Music Technology Laboratory Music Department National University of Ireland, Maynooth ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Csound-devel mailing list Csound-devel@lists.sourceforge.net |
Date | 2006-12-12 09:38 |
From | David Akbari |
Subject | Re: [Cs-dev] sensekey |
...or with the Jack driver. -David On Dec 12, 2006, at 3:32 AM, Victor Lazzarini wrote: > I'm not so sure this is the case everywhere. It is not on OSX as far > as I can remember and with win MME. In fact the only time I saw this > being an issue is with Windows ASIO. > >> For full duplex operation, -b needs to be an integer multiple of >> ksmps. ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Csound-devel mailing list Csound-devel@lists.sourceforge.net |
Date | 2006-12-12 10:06 |
From | Jonathan Murphy |
Subject | Re: [Cs-dev] sensekey |
Thanks for the responses. I hope that you're both correct, however I get error messages like this: *** rtjack: period size (-b) must be an integer multiple of ksmps Jonathan. David Akbari |
Date | 2006-12-12 10:10 |
From | Victor Lazzarini |
Subject | Re: [Cs-dev] sensekey |
yes. In any case, there is no harm in making all defaults to power-of-two, I think. I suggest ksmps=32 -b1024 -B2048 for all platforms. Victor At 09:38 12/12/2006, you wrote: >...or with the Jack driver. > > >-David > >On Dec 12, 2006, at 3:32 AM, Victor Lazzarini wrote: > > > I'm not so sure this is the case everywhere. It is not on OSX as far > > as I can remember and with win MME. In fact the only time I saw this > > being an issue is with Windows ASIO. > > > >> For full duplex operation, -b needs to be an integer multiple of > >> ksmps. > > >------------------------------------------------------------------------- >Take Surveys. Earn Cash. Influence the Future of IT >Join SourceForge.net's Techsay panel and you'll get the chance to share your >opinions on IT & business topics through brief surveys - and earn cash >http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV >_______________________________________________ >Csound-devel mailing list >Csound-devel@lists.sourceforge.net >https://lists.sourceforge.net/lists/listinfo/csound-devel Victor Lazzarini Music Technology Laboratory Music Department National University of Ireland, Maynooth ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Csound-devel mailing list Csound-devel@lists.sourceforge.net |
Date | 2006-12-12 10:14 |
From | Jonathan Murphy |
Subject | Re: [Cs-dev] sensekey |
Right, but the problem is that 44100 is not divisible by 32, or any ^2 higher than 4. Jonathan. Victor Lazzarini |
Date | 2006-12-12 10:33 |
From | David Akbari |
Subject | Re: [Cs-dev] sensekey |
Sorry if I was unclear. I re-read my response and it seems like I'm agreeing with the "is not the case everywhere" comment. Actually I was trying to point out that the Jack driver requires integer multiples of ksmps. Sorry for the confusion. I meant to respond to >>>> For full duplex operation, -b needs to be an integer multiple of >>>> ksmps. -David On Dec 12, 2006, at 4:06 AM, Jonathan Murphy wrote: > > Thanks for the responses. I hope that you're both correct, however I > get error messages like this: > > *** rtjack: period size (-b) must be an integer multiple of ksmps > > Jonathan. > > David Akbari |
Date | 2006-12-12 11:28 |
From | Jonathan Murphy |
Subject | Re: [Cs-dev] sensekey |
Hi David, Thanks for the clarification. I was beginning to question my sanity. If you get a chance, could you try to run JACK using your onboard soundcard with a setting of -p100? Thanks, Jonathan. David Akbari |
Date | 2006-12-12 11:32 |
From | jpff |
Subject | Re: [Cs-dev] sensekey |
But 32 is not a devisor of 44100 ==John ffitch ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Csound-devel mailing list Csound-devel@lists.sourceforge.net |
Date | 2006-12-12 11:49 |
From | David Akbari |
Subject | Re: [Cs-dev] sensekey |
Hi Jonathan, Of course. Here's the output: flag defaults: csound -s -otest -b1024 -B4096 -m135 Csound Command ERROR: unknown flag -p and the .csd file I was using [1]. Note that when simply omitting the `-p` flag, everything works as expected. Is this a new flag recently added to CVS? What does it do? [1] |
Date | 2006-12-12 11:58 |
From | Jonathan Murphy |
Subject | Re: [Cs-dev] sensekey |
Thanks, but what I meant was to run JACK, not Csound! One of the arguments to jackd is -p N, where N is the period size in sample frames. Just open up qjackctl (assuming that you use it), and manually enter 100 as the value for Frames/Period, then try to start JACK. Csound can work with these numbers, what I'm trying to establish is whether a bog standard, 16-bit soundcard can do likewise. Thanks again, Jonathan. David Akbari |
Date | 2006-12-12 12:03 |
From | Victor Lazzarini |
Subject | Re: [Cs-dev] sensekey |
How important is that ksmps divides 44100? I did not think that was the matter. At 11:32 12/12/2006, you wrote: >But 32 is not a devisor of 44100 >==John ffitch > >------------------------------------------------------------------------- >Take Surveys. Earn Cash. Influence the Future of IT >Join SourceForge.net's Techsay panel and you'll get the chance to share your >opinions on IT & business topics through brief surveys - and earn cash >http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV >_______________________________________________ >Csound-devel mailing list >Csound-devel@lists.sourceforge.net >https://lists.sourceforge.net/lists/listinfo/csound-devel Victor Lazzarini Music Technology Laboratory Music Department National University of Ireland, Maynooth ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Csound-devel mailing list Csound-devel@lists.sourceforge.net |
Date | 2006-12-12 12:33 |
From | Jonathan Murphy |
Subject | Re: [Cs-dev] sensekey |
Crucial. Victor Lazzarini |
Date | 2006-12-12 12:49 |
From | "Steven Yi" |
Subject | Re: [Cs-dev] sensekey |
Attachments | None |
Date | 2006-12-12 12:54 |
From | Jonathan Murphy |
Subject | Re: [Cs-dev] sensekey |
According to the manual ksmps must equal sr/kr. If sr = 44100 and the AC97 codec can't handle values that are not multiples of 8, then in terms of this codec (which is used, for example, by the OLPC project), the Csound defaults won't work for rt audio in. Jonathan. "Steven Yi" |
Date | 2006-12-12 13:03 |
From | Victor Lazzarini |
Subject | Re: [Cs-dev] sensekey |
yep, but kr can be anything, afaik. At 12:54 12/12/2006, you wrote: >According to the manual ksmps must equal sr/kr. If sr = 44100 and the >AC97 codec can't handle values that are not multiples of 8, then in >terms of this codec (which is used, for example, by the OLPC project), >the Csound defaults won't work for rt audio in. > >Jonathan. > >"Steven Yi" |
Date | 2006-12-12 13:06 |
From | Jonathan Murphy |
Subject | Re: [Cs-dev] sensekey |
Shouldn't it be an integer? If sr = 44100 and ksmps = 32 then kr = 1378.125. Victor Lazzarini |
Date | 2006-12-12 13:48 |
From | Richard Dobson |
Subject | Re: [Cs-dev] sensekey |
Hitherto, at least, it has never mattered if kr was an integer or not. Indeed I recall making experiemnts to verifyt that very question years ago. One can use kr and ksmps in the orchestra for whatever purposes, and of course all vars in Csound are represented as floats anyway. From my memory, the only issue was to ensure that Csound's initial validation of sr/kr=ksmps worked, i.e. was not flummoxed by numerical trancation/rounding issues. I cannot say if Csound5 requires kr to be an integer, not being in the loop with respect to the sources these days, but it would surprise me, and I would be led to question it. Richard Dobson Jonathan Murphy wrote: > Shouldn't it be an integer? If sr = 44100 and ksmps = 32 then kr = 1378.125. > > Victor Lazzarini |
Date | 2006-12-12 13:48 |
From | Victor Lazzarini |
Subject | Re: [Cs-dev] sensekey |
No kr can be anything. In fact you don't need to set it, you can leave csound to work it for itself (that's what I have been doing lately). ksmps needs to be integral. At 13:06 12/12/2006, you wrote: >Shouldn't it be an integer? If sr = 44100 and ksmps = 32 then kr = 1378.125. > >Victor Lazzarini |
Date | 2006-12-12 13:55 |
From | David Akbari |
Subject | Re: [Cs-dev] sensekey |
I believe that only certain audio driver plugins require ksmps to be an integer multiple of ksmps. As far as I can see, only the Jack driver (all platforms it is supported on) requires this. At least ALSA, CoreAudio, PortAudio, and MME do not have any such requirement. -David On Dec 12, 2006, at 7:48 AM, Richard Dobson wrote: > Hitherto, at least, it has never mattered if kr was an integer or not. > Indeed I recall making experiemnts to verifyt that very question years > ago. One can use kr and ksmps in the orchestra for whatever purposes, > and of course all vars in Csound are represented as floats anyway. From > my memory, the only issue was to ensure that Csound's initial > validation > of sr/kr=ksmps worked, i.e. was not flummoxed by numerical > trancation/rounding issues. > > I cannot say if Csound5 requires kr to be an integer, not being in the > loop with respect to the sources these days, but it would surprise me, > and I would be led to question it. > > Richard Dobson > > > Jonathan Murphy wrote: >> Shouldn't it be an integer? If sr = 44100 and ksmps = 32 then kr = >> 1378.125. >> >> Victor Lazzarini |
Date | 2006-12-12 13:58 |
From | Victor Lazzarini |
Subject | Re: [Cs-dev] sensekey |
yes, that sometimes used to catch me, but I then started not setting kr, letting csound do it. Csound5 has not changed the fact that kr can be non-integral. At 13:48 12/12/2006, you wrote: >my memory, the only issue was to ensure that Csound's initial validation >of sr/kr=ksmps worked, i.e. was not flummoxed by numerical >trancation/rounding issues. Victor Lazzarini Music Technology Laboratory Music Department National University of Ireland, Maynooth ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Csound-devel mailing list Csound-devel@lists.sourceforge.net |
Date | 2006-12-12 14:13 |
From | Jonathan Murphy |
Subject | Re: [Cs-dev] sensekey |
Thanks Folks, This is great to know. As a relatively new csounder, I have never needed to set kr, and really was just concerned regarding the accuracy of documentation. If kr can be non integral then the only things that need to be done are to update the man page regarding kr, it currently reads: "should evaluate to an integer" And to either change, or omit and change to ksmps = 8 (or 16, or 32 or whatever) the default setting for kr. These are the reasons why I was worried that there was a serious problem with the default settings, but I'm glad to learn that I was wrong. Jonathan. Victor Lazzarini |
Date | 2006-12-12 15:40 |
From | Andres Cabrera |
Subject | Re: [Cs-dev] sensekey |
fixed. Andres Jonathan Murphy wrote: > Thanks Folks, > > This is great to know. As a relatively new csounder, I have never > needed to set kr, and really was just concerned regarding the accuracy > of documentation. If kr can be non integral then the only things that > need to be done are to update the man page regarding kr, it currently > reads: > > "should evaluate to an integer" > > And to either change, or omit and change to ksmps = 8 (or 16, or 32 or > whatever) the default setting for kr. > > These are the reasons why I was worried that there was a serious > problem with the default settings, but I'm glad to learn that I was > wrong. > > Jonathan. > > Victor Lazzarini |
Date | 2006-12-13 08:33 |
From | Jonathan Murphy |
Subject | Re: [Cs-dev] sensekey |
Thanks Andres, Do you mean you fixed the man page and changed the default kr/smps or just the man page? I've also noticed that the man page for sr says the same thing: "should evaluate to an integer". Should this read, "should evaluate to an integer", "must evaluate to an integer" or "can be anything however values supported by your soundcard will generally be most useful"? If Andres has not already made this (or similar) change, could the following lines in csoundCore.h (LL 93-95): #define DFLT_SR FL(44100.0) #define DFLT_KR FL(4410.0) #define DFLT_KSMPS 10 please be changed to read: #define DFLT_SR FL(44100.0) #define DFLT_KR FL(2756.25) #define DFLT_KSMPS 16 Thanks, Jonathan. Andres Cabrera |
Date | 2006-12-13 13:21 |
From | Andres Cabrera |
Subject | Re: [Cs-dev] sensekey |
Hi Jonathan, I fixed just the manual. I've just added something for sr. Thanks, Andres Jonathan Murphy wrote: > Thanks Andres, > > Do you mean you fixed the man page and changed the default kr/smps or > just the man page? I've also noticed that the man page for sr says the > same thing: "should evaluate to an integer". Should this read, "should > evaluate to an integer", "must evaluate to an integer" or "can be > anything however values supported by your soundcard will generally be > most useful"? > > If Andres has not already made this (or similar) change, could the > following lines in csoundCore.h (LL 93-95): > > #define DFLT_SR FL(44100.0) > #define DFLT_KR FL(4410.0) > #define DFLT_KSMPS 10 > > please be changed to read: > > #define DFLT_SR FL(44100.0) > #define DFLT_KR FL(2756.25) > #define DFLT_KSMPS 16 > > Thanks, > Jonathan. > > Andres Cabrera |
Date | 2006-12-13 16:29 |
From | Anthony Kozar |
Subject | Re: [Cs-dev] sensekey |
The only "problem" that I see with this being the default (and it is more of an aesthetic thing for me) is that with kr being non-integral, Csound will not output sound files, I think, that are exactly N seconds long where N is any integer. (Correct me if I am mistaken, but Csound always writes a sound file that is an even multiple of ksmps samples long??) Furthermore -- and this is perhaps more disturbing to me -- many note events that start exactly at even second times will start at the closest ksmps*N boundary instead. Maybe this does not matter to anyone else and maybe it should not matter for the Csound defaults either ... In most of my music, the second is the primary unit of time -- I can of course just set kr & ksmps manually (and I normally do). *shrug* Anthony Jonathan Murphy wrote on 12/13/06 3:33 AM: > please be changed to read: > > #define DFLT_SR FL(44100.0) > #define DFLT_KR FL(2756.25) > #define DFLT_KSMPS 16 ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Csound-devel mailing list Csound-devel@lists.sourceforge.net |
Date | 2006-12-13 23:49 |
From | Jonathan Murphy |
Subject | Re: [Cs-dev] sensekey |
Anthony Kozar |
Date | 2006-12-14 04:11 |
From | Anthony Kozar |
Subject | Re: [Cs-dev] sensekey |
I don't mean to be difficult, but I would personally rather have sr = 44100 and ksmps = 16 than this. (And I like the current defaults the most). The issue here for me is that the Macintosh world has a long history of built-in sound hardware with drivers that support ONLY 44100, 22050, and 11025 sampling rates. I don't know if this is true of machines within the last few years, but it was from the early '90s through probably '01 or so. You guys in the Intel/Windows are better off since you can buy a machine without on-board sound and then get a better soundcard for it ... Honestly, I could work with just about anything though. I will just make the sr and kr overrides "on" by default in my MacOS front end if I have to. Anthony Jonathan Murphy wrote on 12/13/06 6:49 PM: > I've been going on about over the last few days, would like to change > my request to change the defaults to: > > sr = 48000 > kr = 3000 > ksmps = 16 ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Csound-devel mailing list Csound-devel@lists.sourceforge.net |
Date | 2006-12-14 08:37 |
From | Jonathan Murphy |
Subject | Re: [Cs-dev] sensekey |
Anthony Kozar |