| I didn't work out a fix, but as Victor suggested, deleting the old
instance and creating a new one is the best way to fix the problem.
On 27 February 2015 at 21:01, Dr. Richard Boulanger
wrote:
> Rory,
>
> can you post your fix for this. would love to run it.
>
> Dr.B.
>
> On Wed, Feb 25, 2015 at 3:17 PM, Rory Walsh wrote:
>>
>> Ah. I wasn't aware of that function. Thanks.
>>
>> On 24 February 2015 at 07:16, Victor Lazzarini
>> wrote:
>> > I don't know, but note that what you are doing is not quite right. You
>> > should fill in the params structure with getparams, then change the params
>> > you want and call setparams. Otherwise you might be sending garbage in.
>> >
>> > Victor Lazzarini
>> > Dean of Arts, Celtic Studies, and Philosophy
>> > Maynooth University
>> > Ireland
>> >
>> >> On 23 Feb 2015, at 17:27, Rory Walsh wrote:
>> >>
>> >> Is this also expected: the following code will only perform the second
>> >> instance IF the control_rate_override line is commented out.
>> >>
>> >> //=====================
>> >> // diskin test cpp
>> >> //=====================
>> >> #include
>> >> #include "csound.hpp"
>> >> #include
>> >> #include "csdl.h"
>> >>
>> >> int main(int argc, char *argv[])
>> >> {
>> >> Csound* csound = new Csound();
>> >> CSOUND_PARAMS* csoundParams = new CSOUND_PARAMS();
>> >> csoundParams->nchnls_override =2;
>> >> //csoundParams->control_rate_override = 4410;
>> >> csound->SetParams(csoundParams);
>> >> csound->CompileCsd("test1.csd");
>> >> csound->Perform();
>> >>
>> >> csound->Reset();
>> >> csound->CompileCsd("test1.csd");
>> >> csound->Perform();
>> >>
>> >> delete csound, csoundParams;
>> >> return 0;
>> >> }
>> >>
>> >> //=====================
>> >> // diskin csd
>> >> //=====================
>> >>
>> >>
>> >> -+rtaudio=jack -B8096 -odac
>> >>
>> >>
>> >> sr=44100
>> >> ksmps=32
>> >> nchnls=2
>> >> 0dbfs=1
>> >>
>> >> instr 1
>> >> a1, a2 diskin2 "loop_1.wav", 1, 0, 1
>> >> outs a1, a2
>> >> endin
>> >>
>> >>
>> >>
>> >> i1 0 2
>> >>
>> >>
>> >>
>> >>> On 23 February 2015 at 17:18, Rory Walsh wrote:
>> >>> Fair enough. It's not something that is likely to cause issues for
>> >>> most users. Just thought I'd mention it.
>> >>>
>> >>>> On 23 February 2015 at 17:15, Victor Lazzarini
>> >>>> wrote:
>> >>>> I think this is undefined, but if you are changing ksmps, it might be
>> >>>> better to delete the old
>> >>>> instance and create a new one.
>> >>>>
>> >>>> Regards
>> >>>> ========================
>> >>>> Dr Victor Lazzarini
>> >>>> Dean of Arts, Celtic Studies and Philosophy,
>> >>>> Maynooth University,
>> >>>> Maynooth, Co Kildare, Ireland
>> >>>> Tel: 00 353 7086936
>> >>>> Fax: 00 353 1 7086952
>> >>>>
>> >>>>> On 23 Feb 2015, at 17:05, Rory Walsh wrote:
>> >>>>>
>> >>>>> I've noticed a strange issue with diskin2, if I change ksmps between
>> >>>>> compiles the audio gets resampled and changes pitch. Steps taken
>> >>>>> are:
>> >>>>>
>> >>>>> 1. Launch an instrument that reads a file from disk using diskin2.
>> >>>>> 2. Wait till it finishes and then recompile the same instrument
>> >>>>> after
>> >>>>> calling csoundReset(), but don't delete the previous instance of
>> >>>>> Csound.
>> >>>>>
>> >>>>> Is this expected behavior?
>> >>>>>
>> >>>>>
>> >>>>> ------------------------------------------------------------------------------
>> >>>>> Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
>> >>>>> from Actuate! Instantly Supercharge Your Business Reports and
>> >>>>> Dashboards
>> >>>>> with Interactivity, Sharing, Native Excel Exports, App Integration &
>> >>>>> more
>> >>>>> Get technology previously reserved for billion-dollar corporations,
>> >>>>> FREE
>> >>>>>
>> >>>>> http://pubads.g.doubleclick.net/gampad/clk?id=190641631&iu=/4140/ostg.clktrk
>> >>>>> _______________________________________________
>> >>>>> Csound-devel mailing list
>> >>>>> Csound-devel@lists.sourceforge.net
>> >>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>> >>>>
>> >>>>
>> >>>>
>> >>>> ------------------------------------------------------------------------------
>> >>>> Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
>> >>>> from Actuate! Instantly Supercharge Your Business Reports and
>> >>>> Dashboards
>> >>>> with Interactivity, Sharing, Native Excel Exports, App Integration &
>> >>>> more
>> >>>> Get technology previously reserved for billion-dollar corporations,
>> >>>> FREE
>> >>>>
>> >>>> http://pubads.g.doubleclick.net/gampad/clk?id=190641631&iu=/4140/ostg.clktrk
>> >>>> _______________________________________________
>> >>>> Csound-devel mailing list
>> >>>> Csound-devel@lists.sourceforge.net
>> >>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>> >>
>> >>
>> >> ------------------------------------------------------------------------------
>> >> Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
>> >> from Actuate! Instantly Supercharge Your Business Reports and
>> >> Dashboards
>> >> with Interactivity, Sharing, Native Excel Exports, App Integration &
>> >> more
>> >> Get technology previously reserved for billion-dollar corporations,
>> >> FREE
>> >>
>> >> http://pubads.g.doubleclick.net/gampad/clk?id=190641631&iu=/4140/ostg.clktrk
>> >> _______________________________________________
>> >> Csound-devel mailing list
>> >> Csound-devel@lists.sourceforge.net
>> >> https://lists.sourceforge.net/lists/listinfo/csound-devel
>> >
>> >
>> > ------------------------------------------------------------------------------
>> > Dive into the World of Parallel Programming The Go Parallel Website,
>> > sponsored
>> > by Intel and developed in partnership with Slashdot Media, is your hub
>> > for all
>> > things parallel software development, from weekly thought leadership
>> > blogs to
>> > news, videos, case studies, tutorials and more. Take a look and join the
>> > conversation now. http://goparallel.sourceforge.net/
>> > _______________________________________________
>> > Csound-devel mailing list
>> > Csound-devel@lists.sourceforge.net
>> > https://lists.sourceforge.net/lists/listinfo/csound-devel
>>
>>
>> ------------------------------------------------------------------------------
>> Dive into the World of Parallel Programming The Go Parallel Website,
>> sponsored
>> by Intel and developed in partnership with Slashdot Media, is your hub for
>> all
>> things parallel software development, from weekly thought leadership blogs
>> to
>> news, videos, case studies, tutorials and more. Take a look and join the
>> conversation now. http://goparallel.sourceforge.net/
>> _______________________________________________
>> Csound-devel mailing list
>> Csound-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>
>
>
> ------------------------------------------------------------------------------
> Dive into the World of Parallel Programming The Go Parallel Website,
> sponsored
> by Intel and developed in partnership with Slashdot Media, is your hub for
> all
> things parallel software development, from weekly thought leadership blogs
> to
> news, videos, case studies, tutorials and more. Take a look and join the
> conversation now. http://goparallel.sourceforge.net/
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel
>
------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the
conversation now. http://goparallel.sourceforge.net/
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net |