| yes the strictness of soundin / diskin / diskin2 in respect to the
number of outputs in the file is sometimes a bit annoying.
maybe you like to use a udo like this:
opcode FilePlay2, aa, Skii
;gives stereo output regardless your soundfile is mono or stereo
Sfil, kspeed, iskip, iloop xin
ichn filenchnls Sfil
if ichn == 1 then
aL diskin2 Sfil, kspeed, iskip, iloop
aR = aL
else
aL, aR diskin2 Sfil, kspeed, iskip, iloop
endif
xout aL, aR
endop
joachim
Am 21.07.2010 um 03:08 schrieb Art Hunkins:
> Thanks, Victor.
>
> Yes, I should have read the manual to better note the differences
> between diskin and diskin2. Diskin2 works much better for my case.
>
> I note that, in any case, the number of channels for diskin have to
> correspond to the number of outputs in the audio input files.
> (Nothing much to be done about that.)
>
> Art Hunkins
>
> ----- Original Message ----- From: "Victor Lazzarini" >
> To:
> Sent: Tuesday, July 20, 2010 3:49 PM
> Subject: [Csnd] Re: diskin and input files
>
>
>> If you use diskin2 files can have different sampling rates. Bit
>> width should not matter.
>>
>> Victor
>> On 20 Jul 2010, at 19:27, Art Hunkins wrote:
>>
>>> I've just developed a real-time file player/mixer/looper/
>>> processor that works with up to four stereo files. Its principal
>>> ingrediant is a stereo diskin.
>>>
>>> For general use, is it sufficiant to specify that the input files
>>> (optionally furnished by the user) be stereo, uncompressed, and
>>> with the same sample rate specified by the file player?
>>>
>>> Also, can I assume 16-bit these days? (I believe the typical
>>> soundcard does.)
>>>
>>> Diskin is taking format information from the file header; do I
>>> presume correctly that all the file types need to match?
>>>
>>> Am I being way to picky here (for typical use)?
>>>
>>> Art Hunkins
>>>
>>>
>>> Send bugs reports to the Sourceforge bug tracker
>>> https://sourceforge.net/tracker/?group_id=81968&atid=564599
>>> Discussions of bugs and features can be posted here
>>> To unsubscribe, send email sympa@lists.bath.ac.uk with body
>>> "unsubscribe csound"
>>>
>>
>>
>>
>> Send bugs reports to the Sourceforge bug tracker
>> https://sourceforge.net/tracker/?group_id=81968&atid=564599
>> Discussions of bugs and features can be posted here
>> To unsubscribe, send email sympa@lists.bath.ac.uk with body
>> "unsubscribe csound"
>
>
>
> Send bugs reports to the Sourceforge bug tracker
> https://sourceforge.net/tracker/?group_id=81968&atid=564599
> Discussions of bugs and features can be posted here
> To unsubscribe, send email sympa@lists.bath.ac.uk with body
> "unsubscribe csound"
>
>
Send bugs reports to the Sourceforge bug tracker
https://sourceforge.net/tracker/?group_id=81968&atid=564599
Discussions of bugs and features can be posted here
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"
|