Question about reloading instruments
Date | 2016-03-20 01:28 |
From | Jimmy Manone |
Subject | Question about reloading instruments |
Hello all. I'm trying to figure out a workaround to the pvsdemix problem I mentioned a while back. Basically, is there a way to reload an instrument as if it is playing for the first time? |
Date | 2016-03-20 01:34 |
From | Jason Timm |
Subject | Re: Question about reloading instruments |
Are you looking for reinit? http://www.csounds.com/manual/html/reinit.html On Sat, Mar 19, 2016 at 6:28
PM, Jimmy Manone <jimmanone@GMAIL.COM>
wrote:
|
Date | 2016-03-20 01:47 |
From | Jimmy Manone |
Subject | Re: Question about reloading instruments |
It is kind of like that, but instead of waiting for a timeout period, just sort of flush everything and restart as if the script were running for the first time. I'll play around with this one a bit and see if I can get anything to work with. Thanks for your response!On Sat, Mar 19, 2016 at 6:34 PM, Jason Timm <jasontimm@me.com> wrote:
|
Date | 2016-03-20 13:38 |
From | jpff |
Subject | Re: Question about reloading instruments |
Are you saying thatpvsdemix retains some state after finishing so the standard csound reuse of memory is giving wrong answers? If so that is a bug. ==John ff On Sat, 19 Mar 2016, Jimmy Manone wrote: > It is kind of like that, but instead of waiting for a timeout period, just > sort of flush everything and restart as if the script were running for the > first time. > > I'll play around with this one a bit and see if I can get anything to work > with. Thanks for your response! > > > > > On Sat, Mar 19, 2016 at 6:34 PM, Jason Timm |
Date | 2016-03-20 13:51 |
From | Rory Walsh |
Subject | Re: Question about reloading instruments |
reinit can be called at any time and be immediate. On 20 Mar 2016 01:28, "Jimmy Manone" <jimmanone@gmail.com> wrote:
Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here
|
Date | 2016-03-20 17:08 |
From | Jimmy Manone |
Subject | Re: Question about reloading instruments |
Something like that. Its weird, because it only happens once the azimuth crosses zero in either direction. As long as you stay in either the positive hemisphere (0 to 1), or the negative hemisphere (-1 to zero) the sound quality is excellent. Once you cross zero, the fidelity drops and the sound has a bit of a 'doubling' effect. This will carry on until you restart the .csd. This is why I was thinking that I could set up some sort of check for a zero crossing, then have it automatically relaunch or re-load the instrument. I know this may cause some sort of dropout, but I'd rather that than the mentioned problem. On Sunday, March 20, 2016, jpff <jpff@codemist.co.uk> wrote: Are you saying thatpvsdemix retains some state after finishing so the standard csound reuse of memory is giving wrong answers? If so that is a bug.Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here |
Date | 2016-03-20 17:12 |
From | Jimmy Manone |
Subject | Re: Question about reloading instruments |
I'm sorry as I'm a bit of a noob. Can this work during k passes as well, or only during performance passes? I'm running the score indefinitely. On Sunday, March 20, 2016, Rory Walsh <rorywalsh@ear.ie> wrote: Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here |
Date | 2016-03-20 17:19 |
From | Victor Lazzarini |
Subject | Re: Question about reloading instruments |
Performance pass and k-pass are the same things, what do you mean? Victor Lazzarini Dean of Arts, Celtic Studies, and Philosophy Maynooth University Ireland
|
Date | 2016-03-20 17:31 |
From | jpff |
Subject | Re: Question about reloading instruments |
When we tried pvsdemix we could ot ear any problem. I think we need an examle and annotated output to further this. ==jon ffy Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here |
Date | 2016-03-20 17:38 |
From | Jimmy Manone |
Subject | Re: Question about reloading instruments |
I had it totally backward - I thought performance pass was the time it took for the score to compete. Now it makes sense! Thanks, On Sun, Mar 20, 2016 at 10:19 AM, Victor Lazzarini <Victor.Lazzarini@nuim.ie> wrote:
|
Date | 2016-03-20 17:44 |
From | Jimmy Manone |
Subject | Re: Question about reloading instruments |
I've tried it on both windows and Linux. I'm currently running it on a beaglebone and getting the same problem. It is a small difference in the sound. In this code, you should be able to hear it as the sound changes: <CsoundSynthesizer> <CsOptions> -i adc -o dac </CsOptions> <CsInstruments> sr = 44100 ksmps = 441 kr = 100 nchnls = 2 gifftsiz = 1024 giwintyp = 1 instr 1 kexpr linseg 1, 5,.5,5,0.25,5,0,5,-.25,5,-.5,5,-1,5,-.5,5,-.25,5,0,5,.25,5,.5,5,1,5,0 ;Move panning position between positive and negative values ain, ain2 soundin "stereo.wav" fsig pvsanal ain, gifftsiz, gifftsiz/2, gifftsiz*2, giwintyp fsig2 pvsanal ain2, gifftsiz, gifftsiz/2, gifftsiz*2, giwintyp fdm pvsdemix fsig, fsig2, kexpr, 15, 15 alisten1 pvsynth fdm outs alisten1, alisten1 endin </CsInstruments> <CsScore> i 1 0 100 </CsScore> </CsoundSynthesizer> On Sun, Mar 20, 2016 at 10:31 AM, jpff <jpff@codemist.co.uk> wrote: When we tried pvsdemix we could ot ear any problem. I think we need an examle and annotated output to further this. |
Date | 2016-03-20 17:56 |
From | jpff |
Subject | Re: Question about reloading instruments |
And stereo.wav is? Or does it always happen? When does the sound change? I did not hear anything odd before. On Sun, 20 Mar 2016, Jimmy Manone wrote: > I've tried it on both windows and Linux. I'm currently running it on a > beaglebone and getting the same problem. It is a small difference in the > sound. In this code, you should be able to hear it as the sound changes: > > |
Date | 2016-03-20 17:56 |
From | Jimmy Manone |
Subject | Re: Question about reloading instruments |
Also, are you using Csound v6 or 5 to test it out? I'm using 5, (doubles). I don't know if that makes any difference. On Sun, Mar 20, 2016 at 10:31 AM, jpff <jpff@codemist.co.uk> wrote: When we tried pvsdemix we could ot ear any problem. I think we need an examle and annotated output to further this. |
Date | 2016-03-20 18:02 |
From | jpff |
Subject | Re: Question about reloading instruments |
csound5 is so long ago. I am using 6.07 draft. No idea what may have changed since 5 Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here |
Date | 2016-03-20 18:47 |
From | Jimmy Manone |
Subject | Re: Question about reloading instruments |
I think I will give that a shot and build with pvsdemix. That could be the problem. On Sun, Mar 20, 2016 at 11:02 AM, jpff <jpff@codemist.co.uk> wrote: csound5 is so long ago. I am using 6.07 draft. No idea what may have changed since 5 |
Date | 2016-03-20 20:05 |
From | jpff |
Subject | Re: Question about reloading instruments |
Do you mean to have 0dbfs set to 1? Currently I hear nowt On Sun, 20 Mar 2016, Jimmy Manone wrote: > I've tried it on both windows and Linux. I'm currently running it on a > beaglebone and getting the same problem. It is a small difference in the > sound. In this code, you should be able to hear it as the sound changes: > > |
Date | 2016-03-20 20:22 |
From | Jimmy Manone |
Subject | Re: Question about reloading instruments |
Strangely enough - it still does the same thing! The effect (in either version) is subtle, but it is there. v6 seems to run a bit snappier, though. On Sun, Mar 20, 2016 at 11:02 AM, jpff <jpff@codemist.co.uk> wrote: csound5 is so long ago. I am using 6.07 draft. No idea what may have changed since 5 |
Date | 2016-03-20 20:36 |
From | jpff |
Subject | Re: Question about reloading instruments |
I still cannot hear anything odd; I looked hard at aroud 15s and all is OK Did you make the changes Victor suggested? hopsize and the like? Unless you can proviide an eample we will have to ignore tis Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here |
Date | 2016-03-21 11:59 |
From | Jimmy Manone |
Subject | Re: Question about reloading instruments |
As for the hopsize suggestions, I'm looking but cannot find any of Victor's suggestions in this thread. As for stereo.wav, for me it is generalized for any stereo wav file laying around. The sound difference should occur from 25s onward, as that is where it crosses the threshold between positive and negative values. From that point, it should continue to sound that way. On Sunday, March 20, 2016, jpff <jpff@codemist.co.uk> wrote: I still cannot hear anything odd; I looked hard at aroud 15s and all is OK |
Date | 2016-03-21 12:14 |
From | Jimmy Manone |
Subject | Re: Question about reloading instruments |
Also, the effect I am mentioning is especially apparent when processing speech segments. I have a stereo file that has 3 different speakers speaking at the same time panned across the stereo spectrum for testing. If you like I can zip and give a dropbox link to either the actual file or the sound I am getting from the processing - whatever the protocol for sharing links is, I'll follow it. (Also, yes 0dbfs = 1 - I forgot to put that in)On Sun, Mar 20, 2016 at 1:36 PM, jpff <jpff@codemist.co.uk> wrote: I still cannot hear anything odd; I looked hard at aroud 15s and all is OK |