Csound Csound-dev Csound-tekno Search About

[Csnd] fout doesn't record properly the release times

Date2012-08-12 20:07
FromStefan Thomas
Subject[Csnd] fout doesn't record properly the release times
AttachmentsStefansPercussionAdsyn.udo  
Dear community,
I have a problem with the fout-opcode.
In the below quoted example, it does not record the note-off-command properly, the duration of the notes is too long.
It has also to do with the udo (the attached file).There is no problem  when I copy the basic code of the udo in the csd-file.
I assume, that I should record the note-off-command with instr. 102, but how can I do it?
Here is my snippet:

<CsoundSynthesizer>
<CsOptions>
-odac -Ma
</CsOptions>
; ==============================================
<CsInstruments>

sr    =    48000
ksmps     =     100
nchnls    =    2
0dbfs    =    1
gisine ftgen 0,0,2^10, 10, 1
giratios ftgen 0,0,-5,-2, 1, 27/13,38/13,4, 72/13
massign 0, 1
gasendleft init 0
gasendright init 0
#include "StefansPercussionAdsyn.udo"
instr 1
iratiotabelle    =    giratios
icps         cpsmidi
imaxamp    ampmidi  0.05
inumparts     = 5
imaxdur     = 20
idamping       = -14.9
ibrigthness    =  7.1
iampvar        = 0.5
instrument     = 101
iatt        =  0.01
ivelsens    = 0

ipartdur, ipartfreq, ipartamp,ipartatt  StefansPercussionAdsyn \
iratiotabelle, inumparts,imaxdur,idamping, icps,imaxamp,instrument,iatt,ibrigthness,iampvar,ivelsens
endin


instr 101
    $pfields
   
asig        poscil        ipartamp, ipartfreq, gisine
irelease    =         ipartdur*0.1
    $makeenvelope

    aout    =  asig * aenv

        outs         aout, aout
gasendleft = gasendleft+asig
gasendright = gasendright+asig
        endin
 instr 102 ;RECORDS ALL SOUND
fout    "sound.wav", 4, gasendleft, gasendright
gasendleft = 0
gasendright = 0
endin

</CsInstruments>
; ==============================================
<CsScore>
f     0 10
i1     0 10
i102    0 10
</CsScore>
</CsoundSynthesizer>



Date2012-08-14 20:53
Fromjoachim heintz
SubjectRe: [Csnd] fout doesn't record properly the release times
hi stefan -
silly question perhaps, but can't you extend the duration of your 
recording instrument?
best -
	joachim


Am 12.08.2012 21:07, schrieb Stefan Thomas:
> Dear community,
> I have a problem with the fout-opcode.
> In the below quoted example, it does not record the note-off-command
> properly, the duration of the notes is too long.
> It has also to do with the udo (the attached file).There is no problem
> when I copy the basic code of the udo in the csd-file.
> I assume, that I should record the note-off-command with instr. 102, but
> how can I do it?
> Here is my snippet:
>
> 
> 
> -odac -Ma
> 
> ; ==============================================
> 
>
> sr    =    48000
> ksmps     =     100
> nchnls    =    2
> 0dbfs    =    1
> gisine ftgen 0,0,2^10, 10, 1
> giratios ftgen 0,0,-5,-2, 1, 27/13,38/13,4, 72/13
> massign 0, 1
> gasendleft init 0
> gasendright init 0
> #include "StefansPercussionAdsyn.udo"
> instr 1
> iratiotabelle    =    giratios
> icps         cpsmidi
> imaxamp    ampmidi  0.05
> inumparts     = 5
> imaxdur     = 20
> idamping       = -14.9
> ibrigthness    =  7.1
> iampvar        = 0.5
> instrument     = 101
> iatt        =  0.01
> ivelsens    = 0
>
> ipartdur, ipartfreq, ipartamp,ipartatt  StefansPercussionAdsyn \
> iratiotabelle, inumparts,imaxdur,idamping,
> icps,imaxamp,instrument,iatt,ibrigthness,iampvar,ivelsens
> endin
>
>
> instr 101
>      $pfields
>
> asig        poscil        ipartamp, ipartfreq, gisine
> irelease    =         ipartdur*0.1
>      $makeenvelope
>
>      aout    =  asig * aenv
>
>          outs         aout, aout
> gasendleft = gasendleft+asig
> gasendright = gasendright+asig
>          endin
>   instr 102 ;RECORDS ALL SOUND
> fout    "sound.wav", 4, gasendleft, gasendright
> gasendleft = 0
> gasendright = 0
> endin
>
> 
> ; ==============================================
> 
> f     0 10
> i1     0 10
> i102    0 10
> 
> 
>
>

Date2012-08-14 21:58
FromStefan Thomas
SubjectRe: [Csnd] fout doesn't record properly the release times
Dear Joachim,
thanks for Your proposal, but unfortunately, it didn't have any effect changing the duration for the recording-instrument to 600 seconds.
In the meantime I've found out, that one can record with audacity via jack (on ubuntu). Are there any drawbacks for this method?

2012/8/14 joachim heintz <jh@joachimheintz.de>
hi stefan -
silly question perhaps, but can't you extend the duration of your recording instrument?
best -
        joachim


Am 12.08.2012 21:07, schrieb Stefan Thomas:

Dear community,
I have a problem with the fout-opcode.
In the below quoted example, it does not record the note-off-command
properly, the duration of the notes is too long.
It has also to do with the udo (the attached file).There is no problem
when I copy the basic code of the udo in the csd-file.
I assume, that I should record the note-off-command with instr. 102, but
how can I do it?
Here is my snippet:

<CsoundSynthesizer>
<CsOptions>
-odac -Ma
</CsOptions>
; ==============================================
<CsInstruments>

sr    =    48000
ksmps     =     100
nchnls    =    2
0dbfs    =    1
gisine ftgen 0,0,2^10, 10, 1
giratios ftgen 0,0,-5,-2, 1, 27/13,38/13,4, 72/13
massign 0, 1
gasendleft init 0
gasendright init 0
#include "StefansPercussionAdsyn.udo"
instr 1
iratiotabelle    =    giratios
icps         cpsmidi
imaxamp    ampmidi  0.05
inumparts     = 5
imaxdur     = 20
idamping       = -14.9
ibrigthness    =  7.1
iampvar        = 0.5
instrument     = 101
iatt        =  0.01
ivelsens    = 0

ipartdur, ipartfreq, ipartamp,ipartatt  StefansPercussionAdsyn \
iratiotabelle, inumparts,imaxdur,idamping,
icps,imaxamp,instrument,iatt,ibrigthness,iampvar,ivelsens
endin


instr 101
     $pfields

asig        poscil        ipartamp, ipartfreq, gisine
irelease    =         ipartdur*0.1
     $makeenvelope

     aout    =  asig * aenv

         outs         aout, aout
gasendleft = gasendleft+asig
gasendright = gasendright+asig
         endin
  instr 102 ;RECORDS ALL SOUND
fout    "sound.wav", 4, gasendleft, gasendright
gasendleft = 0
gasendright = 0
endin

</CsInstruments>
; ==============================================
<CsScore>
f     0 10
i1     0 10
i102    0 10
</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"