Csound Csound-dev Csound-tekno Search About

[Csnd] ATS help...

Date2010-05-04 00:01
FromAnthony Palomba
Subject[Csnd] ATS help...
I am trying to get the ATS opcodes to work. I have a sample that I ran through
atsa and created an .ats file.

The .ats file seems to play back fine int SPEAR. But when I try to play it back
in csound, I don't hear much. Here is my csd...

Anybody see a problem?


-ap




<CsoundSynthesizer>


<CsOptions>
;-odac19 -+rtmidi=virtual -M0
</CsOptions>


<CsInstruments>

sr =   44100
ksmps =   4410
nchnls =   1

massign         0, 1  ; assign all channels to instr1

instr 1

    iCPS cpsmidi
    iAmp veloc 0.01, 1
  
    ktime       line     0, p3, 2.5
    kfreq, kamp    ATSread  ktime, "c:\sounds\locomotive.ats", 2
    aout        oscili   1000000 * kamp, kfreq, 1

    out aout
endin
</CsInstruments>


<CsScore>
f1    0    128    10    1   

i1    0     5
e

</CsScore>


</CsoundSynthesizer>



Date2010-05-04 00:08
FromPeiman Khosravi
Subject[Csnd] Re: ATS help...
Yes try with 0dbfs = 1.
Also I find for the best result ksmps should be 1. And of course using  
the double csound makes a big difference too.

Best,
Peiman

On 4 May 2010, at 00:01, Anthony Palomba wrote:

> I am trying to get the ATS opcodes to work. I have a sample that I  
> ran through
> atsa and created an .ats file.
>
> The .ats file seems to play back fine int SPEAR. But when I try to  
> play it back
> in csound, I don't hear much. Here is my csd...
>
> Anybody see a problem?
>
>
> -ap
>
>
>
>
> 
>
>
> 
> ;-odac19 -+rtmidi=virtual -M0
> 
>
>
> 
>
> sr =   44100
> ksmps =   4410
> nchnls =   1
>
> massign         0, 1  ; assign all channels to instr1
>
> instr 1
>
>     iCPS cpsmidi
>     iAmp veloc 0.01, 1
>
>     ktime       line     0, p3, 2.5
>     kfreq, kamp    ATSread  ktime, "c:\sounds\locomotive.ats", 2
>     aout        oscili   1000000 * kamp, kfreq, 1
>
>     out aout
> endin
> 
>
>
> 
> f1    0    128    10    1
>
> i1    0     5
> e
>
> 
>
>
> 
>
>



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"

Date2010-05-04 00:11
FromPeiman Khosravi
Subject[Csnd] Re: ATS help...
ahh and when you do add 0dbfs = 1 don't forget to get rid of 1000000 *  
kamp!

try with kamp first or you might blow your ears up!!

P

On 4 May 2010, at 00:01, Anthony Palomba wrote:

> I am trying to get the ATS opcodes to work. I have a sample that I  
> ran through
> atsa and created an .ats file.
>
> The .ats file seems to play back fine int SPEAR. But when I try to  
> play it back
> in csound, I don't hear much. Here is my csd...
>
> Anybody see a problem?
>
>
> -ap
>
>
>
>
> 
>
>
> 
> ;-odac19 -+rtmidi=virtual -M0
> 
>
>
> 
>
> sr =   44100
> ksmps =   4410
> nchnls =   1
>
> massign         0, 1  ; assign all channels to instr1
>
> instr 1
>
>     iCPS cpsmidi
>     iAmp veloc 0.01, 1
>
>     ktime       line     0, p3, 2.5
>     kfreq, kamp    ATSread  ktime, "c:\sounds\locomotive.ats", 2
>     aout        oscili   1000000 * kamp, kfreq, 1
>
>     out aout
> endin
> 
>
>
> 
> f1    0    128    10    1
>
> i1    0     5
> e
>
> 
>
>
> 
>
>



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"

Date2010-05-04 00:17
FromPeiman Khosravi
Subject[Csnd] Re: ATS help...
Also note that you are only reading one partial here which might be  
very weak. Try changing the number of partial too.

On 4 May 2010, at 00:01, Anthony Palomba wrote:

> I am trying to get the ATS opcodes to work. I have a sample that I  
> ran through
> atsa and created an .ats file.
>
> The .ats file seems to play back fine int SPEAR. But when I try to  
> play it back
> in csound, I don't hear much. Here is my csd...
>
> Anybody see a problem?
>
>
> -ap
>
>
>
>
> 
>
>
> 
> ;-odac19 -+rtmidi=virtual -M0
> 
>
>
> 
>
> sr =   44100
> ksmps =   4410
> nchnls =   1
>
> massign         0, 1  ; assign all channels to instr1
>
> instr 1
>
>     iCPS cpsmidi
>     iAmp veloc 0.01, 1
>
>     ktime       line     0, p3, 2.5
>     kfreq, kamp    ATSread  ktime, "c:\sounds\locomotive.ats", 2
>     aout        oscili   1000000 * kamp, kfreq, 1
>
>     out aout
> endin
> 
>
>
> 
> f1    0    128    10    1
>
> i1    0     5
> e
>
> 
>
>
> 
>
>



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"

Date2010-05-04 01:45
FromAnthony Palomba
Subject[Csnd] Re: Re: ATS help...
Hmmm, so ATS only returns on partial at a time!

Is there some opcode that allows me to create an array of
oscillators?


-ap




On Mon, May 3, 2010 at 6:17 PM, Peiman Khosravi <peimankhosravi@gmail.com> wrote:
Also note that you are only reading one partial here which might be very weak. Try changing the number of partial too.


On 4 May 2010, at 00:01, Anthony Palomba wrote:

I am trying to get the ATS opcodes to work. I have a sample that I ran through
atsa and created an .ats file.

The .ats file seems to play back fine int SPEAR. But when I try to play it back
in csound, I don't hear much. Here is my csd...

Anybody see a problem?


-ap




<CsoundSynthesizer>


<CsOptions>
;-odac19 -+rtmidi=virtual -M0
</CsOptions>


<CsInstruments>

sr =   44100
ksmps =   4410
nchnls =   1

massign         0, 1  ; assign all channels to instr1

instr 1

   iCPS cpsmidi
   iAmp veloc 0.01, 1

   ktime       line     0, p3, 2.5
   kfreq, kamp    ATSread  ktime, "c:\sounds\locomotive.ats", 2
   aout        oscili   1000000 * kamp, kfreq, 1

   out aout
endin
</CsInstruments>


<CsScore>
f1    0    128    10    1

i1    0     5
e

</CsScore>


</CsoundSynthesizer>





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"



Date2010-05-04 01:52
FromPeiman Khosravi
Subject[Csnd] Re: Re: Re: ATS help...
yes ATSadd is the one you're looking for. Although if you want to use the partials as filter data or any other processes other than a simple additive synthesis then you have to do one at a time (you can of course have as many instances of ATSread as you want). 

On 4 May 2010, at 01:45, Anthony Palomba wrote:

Hmmm, so ATS only returns on partial at a time!

Is there some opcode that allows me to create an array of
oscillators?


-ap




On Mon, May 3, 2010 at 6:17 PM, Peiman Khosravi <peimankhosravi@gmail.com> wrote:
Also note that you are only reading one partial here which might be very weak. Try changing the number of partial too.


On 4 May 2010, at 00:01, Anthony Palomba wrote:

I am trying to get the ATS opcodes to work. I have a sample that I ran through
atsa and created an .ats file.

The .ats file seems to play back fine int SPEAR. But when I try to play it back
in csound, I don't hear much. Here is my csd...

Anybody see a problem?


-ap




<CsoundSynthesizer>


<CsOptions>
;-odac19 -+rtmidi=virtual -M0
</CsOptions>


<CsInstruments>

sr =   44100
ksmps =   4410
nchnls =   1

massign         0, 1  ; assign all channels to instr1

instr 1

   iCPS cpsmidi
   iAmp veloc 0.01, 1

   ktime       line     0, p3, 2.5
   kfreq, kamp    ATSread  ktime, "c:\sounds\locomotive.ats", 2
   aout        oscili   1000000 * kamp, kfreq, 1

   out aout
endin
</CsInstruments>


<CsScore>
f1    0    128    10    1

i1    0     5
e

</CsScore>


</CsoundSynthesizer>





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"