[Csnd] help with realtime PVS
Date | 2009-09-26 21:57 |
From | Dave Seidel |
Subject | [Csnd] help with realtime PVS |
Hi all, I am, for the first time, trying to work with realtime input and output together to process signal from external sources (so far, a Nintendo DS Lite with the Korg DS-10 emulator). I have it basically working, and am getting some interesting results with the PVS opcodes. However, at some amount of time, I start getting a semi-rhythmic clicking in the sound, not with note attacks but in the course of sustained notes. I'm running on WinXP using a Creative SoundBlaster Live! external sound card (USB). A minimal CSD follows (just passing unaltered audio signal through PVS without any effects) that duplicates the problem for me. I would appreciate any advice. - Dave --- cut here--- |
Date | 2009-09-26 22:07 |
From | victor |
Subject | [Csnd] Re: help with realtime PVS |
I'd say two things: your buffers are too large and your ksmps is two small. I would also suggest using hanning window (1) instead of hamming (0) and smaller analysis frame (1024 or 2048). Victor ----- Original Message ----- From: "Dave Seidel" |
Date | 2009-09-26 22:07 |
From | Dave Seidel |
Subject | [Csnd] Re: help with realtime PVS |
Whoops, sorry, the problem occurs even of I remove he PVS stuff and just send asig from in to out. So it looks like I have a more basic problem than I thought. Any clues would be welcome. Increasing ksmps just makes the clicking occur even sooner. - Dave Dave Seidel wrote: > Hi all, > > I am, for the first time, trying to work with realtime input and output > together to process signal from external sources (so far, a Nintendo DS > Lite with the Korg DS-10 emulator). I have it basically working, and am > getting some interesting results with the PVS opcodes. However, at some > amount of time, I start getting a semi-rhythmic clicking in the sound, > not with note attacks but in the course of sustained notes. > > I'm running on WinXP using a Creative SoundBlaster Live! external sound > card (USB). > > A minimal CSD follows (just passing unaltered audio signal through PVS > without any effects) that duplicates the problem for me. I would > appreciate any advice. > > - Dave > > --- cut here--- > > |
Date | 2009-09-26 22:11 |
From | chi ball |
Subject | [Csnd] cpspch - midi |
Hi, I have this problem: I would play notes: A4,C5,E5. MIDI numbers are: 69,72,76 cps are: 8.09,9.00,9.04 In .sco file I would enter the "midi numbers" in place ot "cps", like this: ; amp pitch ifn imeth i1 0 1 20000 69 0 1 i1 1 . . 72 i1 2 . . 76 e What must I change in the .orc file to do it? This is the .orc file: instr 1 icps = (p10 == 0 ? cpspch(p5) : cpspch(p10)) asig pluck p4,cpspch(p5),icps,p6,p7,p8,p9 out asig endin Thanks, E. Chiama da PC a PC e. taglia i costi delle chiamate! |
Date | 2009-09-26 22:12 |
From | Steven Yi |
Subject | [Csnd] Re: Re: help with realtime PVS |
Hi Dave, What hardware and hardware driver are you using? steven On Sat, Sep 26, 2009 at 5:07 PM, Dave Seidel |
Date | 2009-09-26 22:21 |
From | Michael Gogins |
Subject | [Csnd] Re: cpspch - midi |
use cpsmidinn instead of cpspch. Hope this helps, Mike On 9/26/09, chi ball |
Date | 2009-09-26 22:33 |
From | chi ball |
Subject | [Csnd] RE: Re: cpspch - midi |
I've tried "cpsmidinn", but give me errors.. Perhaps because I use the an old version (DirectCSound)...? > Date: Sat, 26 Sep 2009 17:21:11 -0400 > From: michael.gogins@gmail.com > To: csound@lists.bath.ac.uk > Subject: [Csnd] Re: cpspch - midi > > use cpsmidinn instead of cpspch. > > Hope this helps, > Mike > > On 9/26/09, chi ball <c_cb@hotmail.it> wrote: > > > > > > > > Hi, I have this problem: > > > > I would play notes: A4,C5,E5. > > MIDI numbers are: 69,72,76 > > cps are: 8.09,9.00,9.04 > > > > > > In .sco file I would enter the "midi numbers" in place ot "cps", like this: > > > > ; amp pitch ifn imeth > > i1 0 1 20000 69 0 1 > > i1 1 . . 72 > > i1 2 . . 76 > > e > > > > What must I change in the .orc file to do it? > > > > This is the .orc file: > > > > instr 1 > > icps = (p10 == 0 ? cpspch(p5) : cpspch(p10)) > > asig pluck p4,cpspch(p5),icps,p6,p7,p8,p9 > > out asig > > endin > > > > Thanks, > > E. > > > > _________________________________________________________________ > > Messenger 2009: vieni a scoprire tutte le novità! > > http://www.messenger.it/ > > Send bugs reports to this list. > > To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe > > csound" > > > -- > Michael Gogins > Irreducible Productions > http://www.michael-gogins.com > Michael dot Gogins at gmail dot com > > > Send bugs reports to this list. > To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound" Chiama da PC a PC e. taglia i costi delle chiamate! |
Date | 2009-09-26 22:38 |
From | Michael Gogins |
Subject | [Csnd] Re: RE: Re: cpspch - midi |
Yes. I am talking about the current version of Csound. Regards, Mike On 9/26/09, chi ball |
Date | 2009-09-26 22:46 |
From | Dave Seidel |
Subject | [Csnd] Re: Re: help with realtime PVS |
Thanks, Victor. Turns out the fundamental problem was USB contention -- I only have one good port on my laptop, and everything goes through a powered 2.0 hub (external soundcard, mouse, external drive, ...). I disconnected the drive, and the stuttering went away. I also followed your suggestions regarding buffer sizes etc. It is working very well now, even with pvsmooth, pvsblur, and pvshift in the signal chain! - Dave victor wrote: > I'd say two things: your buffers are too large and your ksmps is two > small. I would also suggest using hanning window (1) instead of hamming (0) > and smaller analysis frame (1024 or 2048). > > Victor > > ----- Original Message ----- From: "Dave Seidel" |
Date | 2009-09-27 09:49 |
From | chi ball |
Subject | [Csnd] RE: Re: cpspch - midi |
> Date: Sat, 26 Sep 2009 17:21:11 -0400 > From: michael.gogins@gmail.com > To: csound@lists.bath.ac.uk > Subject: [Csnd] Re: cpspch - midi > > use cpsmidinn instead of cpspch. > > Hope this helps, > Mike It work well (I've installed a more recent version of CSound). Thanks :) Chiama da PC a PC e. taglia i costi delle chiamate! |