Csound Csound-dev Csound-tekno Search About

[Csnd] problem with midi performance

Date2009-08-31 16:56
FromStefan Thomas
Subject[Csnd] problem with midi performance
Attachments12tet.cps  
Dear community,
I have a problem with the following csd-file.
I want to use it for live-midi performance. But when I play, I don't hear anything.
And (what I don't understand) an file test.wav is produced too, but it is silent.
I can't find any mistake!
Here the file:
<CsoundSynthesizer>
;Fm-modulation with one carrier, modulated by two different modulators
;first trial with this Stuff by myself, 31.august 2009
;<CsOptions>
-odevaudio -M1 -b400 -m0d
;</CsOptions>
; ==============================================
<CsInstruments>
   
sr    =    48000
kr    =    2400
ksmps    =    20
nchnls    =    2
massign    0, 1              ; assign all midi events to instr 1,
pgmassign  0, 1              ; also all program changes
 ipch = 8.02
  iequal = 12
instr 1
 ituningtable = 10         ; the number of the f-table
 inum    notnum
 indx    =  inum * 2 + 1   ; values in table alternate between
                           ; Midi note nums and frequencies
 icps    table  indx, ituningtable
  iamp    ampmidi        10000
icarfrq = icps
imodratio1 = 1
imodratio2 = 2   
ifmindex1 = 1
ifmindex2 = 1
  imodfrq1    = icarfrq * imodratio1
  imodamp1    = imodfrq1 * ifmindex1
  imodfrq2    = icarfrq * imodratio2
  imodamp2    = imodfrq2 * ifmindex2

  kfrq_mod_1  oscili imodamp1, imodfrq1, 1 
  kfrq_mod_2  oscili imodamp2, imodfrq2, 1 

asig        oscili iamp    , icarfrq + kfrq_mod_1 + kfrq_mod_2, 1 
outs asig, asig
endin

</CsInstruments>
; ==============================================
<CsScore>
f1  0  2048   10   1 ; a sinewave
f 10  0 256 -23 "12tet.cps"
i1 0     20
</CsScore>
</CsoundSynthesizer >




Date2009-08-31 17:47
Fromjpff@cs.bath.ac.uk
Subject[Csnd] Re: problem with midi performance
Just as a matter of interest, which platform are you using?

> Dear community,
> I have a problem with the following csd-file.
> I want to use it for live-midi performance. But when I play, I don't hear
> anything.
> And (what I don't understand) an file test.wav is produced too, but it is
> silent.
> I can't find any mistake!
> Here the file:
> 
> ;Fm-modulation with one carrier, modulated by two different modulators
> ;first trial with this Stuff by myself, 31.august 2009
> ;
> -odevaudio -M1 -b400 -m0d
> ;
> ; ==============================================
> 
>
> sr    =    48000
> kr    =    2400
> ksmps    =    20
> nchnls    =    2
> massign    0, 1              ; assign all midi events to instr 1,
> pgmassign  0, 1              ; also all program changes
>  ipch = 8.02
>   iequal = 12
> instr 1
>  ituningtable = 10         ; the number of the f-table
>  inum    notnum
>  indx    =  inum * 2 + 1   ; values in table alternate between
>                            ; Midi note nums and frequencies
>  icps    table  indx, ituningtable
>   iamp    ampmidi        10000
> icarfrq = icps
> imodratio1 = 1
> imodratio2 = 2
> ifmindex1 = 1
> ifmindex2 = 1
>   imodfrq1    = icarfrq * imodratio1
>   imodamp1    = imodfrq1 * ifmindex1
>   imodfrq2    = icarfrq * imodratio2
>   imodamp2    = imodfrq2 * ifmindex2
>
>   kfrq_mod_1  oscili imodamp1, imodfrq1, 1
>   kfrq_mod_2  oscili imodamp2, imodfrq2, 1
>
> asig        oscili iamp    , icarfrq + kfrq_mod_1 + kfrq_mod_2, 1
> outs asig, asig
> endin
>
> 
> ; ==============================================
> 
> f1  0  2048   10   1 ; a sinewave
> f 10  0 256 -23 "12tet.cps"
> i1 0     20
> 
> 
>




Send bugs reports to this list.
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"

Date2009-09-01 06:34
FromStefan Thomas
Subject[Csnd] Re: Re: problem with midi performance
I'm using Kubuntu and XP. This patch I want to use in XP.

2009/8/31 <jpff@cs.bath.ac.uk>
Just as a matter of interest, which platform are you using?

> Dear community,
> I have a problem with the following csd-file.
> I want to use it for live-midi performance. But when I play, I don't hear
> anything.
> And (what I don't understand) an file test.wav is produced too, but it is
> silent.
> I can't find any mistake!
> Here the file:
> <CsoundSynthesizer>
> ;Fm-modulation with one carrier, modulated by two different modulators
> ;first trial with this Stuff by myself, 31.august 2009
> ;<CsOptions>
> -odevaudio -M1 -b400 -m0d
> ;</CsOptions>
> ; ==============================================
> <CsInstruments>
>
> sr    =    48000
> kr    =    2400
> ksmps    =    20
> nchnls    =    2
> massign    0, 1              ; assign all midi events to instr 1,
> pgmassign  0, 1              ; also all program changes
>  ipch = 8.02
>   iequal = 12
> instr 1
>  ituningtable = 10         ; the number of the f-table
>  inum    notnum
>  indx    =  inum * 2 + 1   ; values in table alternate between
>                            ; Midi note nums and frequencies
>  icps    table  indx, ituningtable
>   iamp    ampmidi        10000
> icarfrq = icps
> imodratio1 = 1
> imodratio2 = 2
> ifmindex1 = 1
> ifmindex2 = 1
>   imodfrq1    = icarfrq * imodratio1
>   imodamp1    = imodfrq1 * ifmindex1
>   imodfrq2    = icarfrq * imodratio2
>   imodamp2    = imodfrq2 * ifmindex2
>
>   kfrq_mod_1  oscili imodamp1, imodfrq1, 1
>   kfrq_mod_2  oscili imodamp2, imodfrq2, 1
>
> asig        oscili iamp    , icarfrq + kfrq_mod_1 + kfrq_mod_2, 1
> outs asig, asig
> endin
>
> </CsInstruments>
> ; ==============================================
> <CsScore>
> f1  0  2048   10   1 ; a sinewave
> f 10  0 256 -23 "12tet.cps"
> i1 0     20
> </CsScore>
> </CsoundSynthesizer >
>




Send bugs reports to this list.
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"


Date2009-09-01 08:26
Fromvictor
Subject[Csnd] Re: problem with midi performance
The CsOptions tag seems to be commented out:
 
;<CsOptions>
-odevaudio -M1 -b400 -m0d
;</CsOptions>
----- Original Message -----
Sent: Monday, August 31, 2009 4:56 PM
Subject: [Csnd] problem with midi performance

Dear community,
I have a problem with the following csd-file.
I want to use it for live-midi performance. But when I play, I don't hear anything.
And (what I don't understand) an file test.wav is produced too, but it is silent.
I can't find any mistake!
Here the file:
<CsoundSynthesizer>
;Fm-modulation with one carrier, modulated by two different modulators
;first trial with this Stuff by myself, 31.august 2009
;<CsOptions>
-odevaudio -M1 -b400 -m0d
;</CsOptions>
; ==============================================
<CsInstruments>
   
sr    =    48000
kr    =    2400
ksmps    =    20
nchnls    =    2
massign    0, 1              ; assign all midi events to instr 1,
pgmassign  0, 1              ; also all program changes
 ipch = 8.02
  iequal = 12
instr 1
 ituningtable = 10         ; the number of the f-table
 inum    notnum
 indx    =  inum * 2 + 1   ; values in table alternate between
                           ; Midi note nums and frequencies
 icps    table  indx, ituningtable
  iamp    ampmidi        10000
icarfrq = icps
imodratio1 = 1
imodratio2 = 2   
ifmindex1 = 1
ifmindex2 = 1
  imodfrq1    = icarfrq * imodratio1
  imodamp1    = imodfrq1 * ifmindex1
  imodfrq2    = icarfrq * imodratio2
  imodamp2    = imodfrq2 * ifmindex2

  kfrq_mod_1  oscili imodamp1, imodfrq1, 1 
  kfrq_mod_2  oscili imodamp2, imodfrq2, 1 

asig        oscili iamp    , icarfrq + kfrq_mod_1 + kfrq_mod_2, 1 
outs asig, asig
endin

</CsInstruments>
; ==============================================
<CsScore>
f1  0  2048   10   1 ; a sinewave
f 10  0 256 -23 "12tet.cps"
i1 0     20
</CsScore>
</CsoundSynthesizer >




Date2009-09-01 08:28
FromOeyvind Brandtsegg
Subject[Csnd] Re: Re: Re: problem with midi performance
It looks like you have commented out the  tag in your csd, like this
;

Maybe that is the reason why it behaves like it does, as the default
behaviour (if no options are set) is to run in deferred time and
produce the output file test.wav

best
Oeyvind

2009/9/1 Stefan Thomas :
> I'm using Kubuntu and XP. This patch I want to use in XP.
>
> 2009/8/31 
>>
>> Just as a matter of interest, which platform are you using?
>>
>> > Dear community,
>> > I have a problem with the following csd-file.
>> > I want to use it for live-midi performance. But when I play, I don't
>> > hear
>> > anything.
>> > And (what I don't understand) an file test.wav is produced too, but it
>> > is
>> > silent.
>> > I can't find any mistake!
>> > Here the file:
>> > 
>> > ;Fm-modulation with one carrier, modulated by two different modulators
>> > ;first trial with this Stuff by myself, 31.august 2009
>> > ;
>> > -odevaudio -M1 -b400 -m0d
>> > ;
>> > ; ==============================================
>> > 
>> >
>> > sr    =    48000
>> > kr    =    2400
>> > ksmps    =    20
>> > nchnls    =    2
>> > massign    0, 1              ; assign all midi events to instr 1,
>> > pgmassign  0, 1              ; also all program changes
>> >  ipch = 8.02
>> >   iequal = 12
>> > instr 1
>> >  ituningtable = 10         ; the number of the f-table
>> >  inum    notnum
>> >  indx    =  inum * 2 + 1   ; values in table alternate between
>> >                            ; Midi note nums and frequencies
>> >  icps    table  indx, ituningtable
>> >   iamp    ampmidi        10000
>> > icarfrq = icps
>> > imodratio1 = 1
>> > imodratio2 = 2
>> > ifmindex1 = 1
>> > ifmindex2 = 1
>> >   imodfrq1    = icarfrq * imodratio1
>> >   imodamp1    = imodfrq1 * ifmindex1
>> >   imodfrq2    = icarfrq * imodratio2
>> >   imodamp2    = imodfrq2 * ifmindex2
>> >
>> >   kfrq_mod_1  oscili imodamp1, imodfrq1, 1
>> >   kfrq_mod_2  oscili imodamp2, imodfrq2, 1
>> >
>> > asig        oscili iamp    , icarfrq + kfrq_mod_1 + kfrq_mod_2, 1
>> > outs asig, asig
>> > endin
>> >
>> > 
>> > ; ==============================================
>> > 
>> > f1  0  2048   10   1 ; a sinewave
>> > f 10  0 256 -23 "12tet.cps"
>> > i1 0     20
>> > 
>> > 
>> >
>>
>>
>>
>>
>> Send bugs reports to this list.
>> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe
>> csound"
>
>


Send bugs reports to this list.
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"

Date2009-09-01 10:58
FromStefan Thomas
Subject[Csnd] Re: Re: Re: Re: problem with midi performance
Yes, off course!
I didn't see the ";" before the <CsOptions>, too stupid!

2009/9/1 Oeyvind Brandtsegg <obrandts@gmail.com>
It looks like you have commented out the <CsOptions> tag in your csd, like this
;<CsOptions>

Maybe that is the reason why it behaves like it does, as the default
behaviour (if no options are set) is to run in deferred time and
produce the output file test.wav

best
Oeyvind

2009/9/1 Stefan Thomas <kontrapunktstefan@googlemail.com>:
> I'm using Kubuntu and XP. This patch I want to use in XP.
>
> 2009/8/31 <jpff@cs.bath.ac.uk>
>>
>> Just as a matter of interest, which platform are you using?
>>
>> > Dear community,
>> > I have a problem with the following csd-file.
>> > I want to use it for live-midi performance. But when I play, I don't
>> > hear
>> > anything.
>> > And (what I don't understand) an file test.wav is produced too, but it
>> > is
>> > silent.
>> > I can't find any mistake!
>> > Here the file:
>> > <CsoundSynthesizer>
>> > ;Fm-modulation with one carrier, modulated by two different modulators
>> > ;first trial with this Stuff by myself, 31.august 2009
>> > ;<CsOptions>
>> > -odevaudio -M1 -b400 -m0d
>> > ;</CsOptions>
>> > ; ==============================================
>> > <CsInstruments>
>> >
>> > sr    =    48000
>> > kr    =    2400
>> > ksmps    =    20
>> > nchnls    =    2
>> > massign    0, 1              ; assign all midi events to instr 1,
>> > pgmassign  0, 1              ; also all program changes
>> >  ipch = 8.02
>> >   iequal = 12
>> > instr 1
>> >  ituningtable = 10         ; the number of the f-table
>> >  inum    notnum
>> >  indx    =  inum * 2 + 1   ; values in table alternate between
>> >                            ; Midi note nums and frequencies
>> >  icps    table  indx, ituningtable
>> >   iamp    ampmidi        10000
>> > icarfrq = icps
>> > imodratio1 = 1
>> > imodratio2 = 2
>> > ifmindex1 = 1
>> > ifmindex2 = 1
>> >   imodfrq1    = icarfrq * imodratio1
>> >   imodamp1    = imodfrq1 * ifmindex1
>> >   imodfrq2    = icarfrq * imodratio2
>> >   imodamp2    = imodfrq2 * ifmindex2
>> >
>> >   kfrq_mod_1  oscili imodamp1, imodfrq1, 1
>> >   kfrq_mod_2  oscili imodamp2, imodfrq2, 1
>> >
>> > asig        oscili iamp    , icarfrq + kfrq_mod_1 + kfrq_mod_2, 1
>> > outs asig, asig
>> > endin
>> >
>> > </CsInstruments>
>> > ; ==============================================
>> > <CsScore>
>> > f1  0  2048   10   1 ; a sinewave
>> > f 10  0 256 -23 "12tet.cps"
>> > i1 0     20
>> > </CsScore>
>> > </CsoundSynthesizer >
>> >
>>
>>
>>
>>
>> Send bugs reports to this list.
>> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe
>> csound"
>
>


Send bugs reports to this list.
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"


Date2009-09-01 11:18
FromOeyvind Brandtsegg
Subject[Csnd] Re: Re: Re: Re: Re: problem with midi performance
Don't worry, this kind of thing happens to everyone once in a while ;-)

2009/9/1 Stefan Thomas :
> Yes, off course!
> I didn't see the ";" before the , too stupid!
>
> 2009/9/1 Oeyvind Brandtsegg 
>>
>> It looks like you have commented out the  tag in your csd, like
>> this
>> ;
>>
>> Maybe that is the reason why it behaves like it does, as the default
>> behaviour (if no options are set) is to run in deferred time and
>> produce the output file test.wav
>>
>> best
>> Oeyvind
>>
>> 2009/9/1 Stefan Thomas :
>> > I'm using Kubuntu and XP. This patch I want to use in XP.
>> >
>> > 2009/8/31 
>> >>
>> >> Just as a matter of interest, which platform are you using?
>> >>
>> >> > Dear community,
>> >> > I have a problem with the following csd-file.
>> >> > I want to use it for live-midi performance. But when I play, I don't
>> >> > hear
>> >> > anything.
>> >> > And (what I don't understand) an file test.wav is produced too, but
>> >> > it
>> >> > is
>> >> > silent.
>> >> > I can't find any mistake!
>> >> > Here the file:
>> >> > 
>> >> > ;Fm-modulation with one carrier, modulated by two different
>> >> > modulators
>> >> > ;first trial with this Stuff by myself, 31.august 2009
>> >> > ;
>> >> > -odevaudio -M1 -b400 -m0d
>> >> > ;
>> >> > ; ==============================================
>> >> > 
>> >> >
>> >> > sr    =    48000
>> >> > kr    =    2400
>> >> > ksmps    =    20
>> >> > nchnls    =    2
>> >> > massign    0, 1              ; assign all midi events to instr 1,
>> >> > pgmassign  0, 1              ; also all program changes
>> >> >  ipch = 8.02
>> >> >   iequal = 12
>> >> > instr 1
>> >> >  ituningtable = 10         ; the number of the f-table
>> >> >  inum    notnum
>> >> >  indx    =  inum * 2 + 1   ; values in table alternate between
>> >> >                            ; Midi note nums and frequencies
>> >> >  icps    table  indx, ituningtable
>> >> >   iamp    ampmidi        10000
>> >> > icarfrq = icps
>> >> > imodratio1 = 1
>> >> > imodratio2 = 2
>> >> > ifmindex1 = 1
>> >> > ifmindex2 = 1
>> >> >   imodfrq1    = icarfrq * imodratio1
>> >> >   imodamp1    = imodfrq1 * ifmindex1
>> >> >   imodfrq2    = icarfrq * imodratio2
>> >> >   imodamp2    = imodfrq2 * ifmindex2
>> >> >
>> >> >   kfrq_mod_1  oscili imodamp1, imodfrq1, 1
>> >> >   kfrq_mod_2  oscili imodamp2, imodfrq2, 1
>> >> >
>> >> > asig        oscili iamp    , icarfrq + kfrq_mod_1 + kfrq_mod_2, 1
>> >> > outs asig, asig
>> >> > endin
>> >> >
>> >> > 
>> >> > ; ==============================================
>> >> > 
>> >> > f1  0  2048   10   1 ; a sinewave
>> >> > f 10  0 256 -23 "12tet.cps"
>> >> > i1 0     20
>> >> > 
>> >> > 
>> >> >
>> >>
>> >>
>> >>
>> >>
>> >> Send bugs reports to this list.
>> >> To unsubscribe, send email sympa@lists.bath.ac.uk with body
>> >> "unsubscribe
>> >> csound"
>> >
>> >
>>
>>
>> Send bugs reports to this list.
>> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe
>> csound"
>


Send bugs reports to this list.
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"