Csound Csound-dev Csound-tekno Search About

Re: [Cs-dev] aliasing on input

Date2008-01-14 17:38
Fromvictor
SubjectRe: [Cs-dev] aliasing on input
You are using in (mono) in a stereo instrument (use ins)

----- Original Message ----- 
From: "Rory Walsh" 
To: "Developer discussions" 
Sent: Monday, January 14, 2008 5:17 PM
Subject: Re: [Cs-dev] aliasing on input


> Are you sure it is aliasing? Try using 'a1 inch 1' or whatever channel
> you are taking the input from. I and others on the list have found that
> using the in opcode with a mono mic results in a very noisey input
> signal. Hopefully this is the problem and can be fixed easily, otherwise
> I'm afraid I can't really help you.
>
> Rory.
>
>
> Jonatan Liljedahl wrote:
>> This simple orchestra gives me very much aliasing distortion, i use it
>> as this:
>>
>> csound -+rtaudio=alsa -o dac:plughw:1 -i adc:plughw:1 myfile
>>
>> the aliasing seems connected to the control rate, if I set kr to 441 it
>> gets much worse...
>>
>> the orchestra:
>>
>> sr = 44100
>> kr = 4410
>> ksmps = 10
>> nchnls = 2
>>
>> 0dbfs = 1
>>
>> instr 1
>>       a1 in
>>       outs a1, a1
>> endin
>>
>
> -------------------------------------------------------------------------
> Check out the new SourceForge.net Marketplace.
> It's the best place to buy or sell services for
> just about anything Open Source.
> http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel 


-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2008-01-14 19:09
From"Steven Yi"
SubjectRe: [Cs-dev] aliasing on input
AttachmentsNone  

Date2008-01-14 21:35
FromJonatan Liljedahl
SubjectRe: [Cs-dev] aliasing on input
ah, ok! that explains the "foldover" frequency, which i hear now
actually is more like a one octave down pitchshift! :)

Steven Yi wrote:
> I just wanted to follow up on Victor's reply with a technical
> explanation. As far as I remember, if you use in with a stereo orch,
> what happens is that you read from the audio stream as if it was mono
> though it is interleaved stereo.  So you'd be getting sample 1 from
> channel 1, sample 1 from channel 2, sample 2 from channel 1, etc.
> 
> steven
> 
> 
> On Jan 14, 2008 9:38 AM, victor  wrote:
>> You are using in (mono) in a stereo instrument (use ins)
>>
>>
>> ----- Original Message -----
>> From: "Rory Walsh" 
>> To: "Developer discussions" 
>> Sent: Monday, January 14, 2008 5:17 PM
>> Subject: Re: [Cs-dev] aliasing on input
>>
>>
>>> Are you sure it is aliasing? Try using 'a1 inch 1' or whatever channel
>>> you are taking the input from. I and others on the list have found that
>>> using the in opcode with a mono mic results in a very noisey input
>>> signal. Hopefully this is the problem and can be fixed easily, otherwise
>>> I'm afraid I can't really help you.
>>>
>>> Rory.
>>>
>>>
>>> Jonatan Liljedahl wrote:
>>>> This simple orchestra gives me very much aliasing distortion, i use it
>>>> as this:
>>>>
>>>> csound -+rtaudio=alsa -o dac:plughw:1 -i adc:plughw:1 myfile
>>>>
>>>> the aliasing seems connected to the control rate, if I set kr to 441 it
>>>> gets much worse...
>>>>
>>>> the orchestra:
>>>>
>>>> sr = 44100
>>>> kr = 4410
>>>> ksmps = 10
>>>> nchnls = 2
>>>>
>>>> 0dbfs = 1
>>>>
>>>> instr 1
>>>>       a1 in
>>>>       outs a1, a1
>>>> endin
>>>>
>>> -------------------------------------------------------------------------
>>> Check out the new SourceForge.net Marketplace.
>>> It's the best place to buy or sell services for
>>> just about anything Open Source.
>>> http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
>>> _______________________________________________
>>> Csound-devel mailing list
>>> Csound-devel@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>
>> -------------------------------------------------------------------------
>> Check out the new SourceForge.net Marketplace.
>> It's the best place to buy or sell services for
>> just about anything Open Source.
>> http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
>> _______________________________________________
>> Csound-devel mailing list
>> Csound-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>
> 
> -------------------------------------------------------------------------
> Check out the new SourceForge.net Marketplace.
> It's the best place to buy or sell services for
> just about anything Open Source.
> http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel


-- 
/Jonatan         [ http://kymatica.com ]

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net