Csound Csound-dev Csound-tekno Search About

[Csnd] connecting with rosegarden

Date2010-04-01 16:38
FromStefan Thomas
Subject[Csnd] connecting with rosegarden
Dear community,
I have the following problem.
I try to make a recording, using rosegarden, jack and csound.
When I start the .csd-file, everything is fine, I can play, I can hear sound and I can record sound, when qjackctl, csound and rosegarden are running.
But, unfortunately, when I want to playback the sound via rosegarden, I hear nothing. Maybee this is more q problem with rosegarden and and Jack, but maybee someone has an idea.
Here is my example:
<CsoundSynthesizer>
<CsOptions>
-odevaudio -Ma -b400 -m0d -+rtaudio=jack -i adc -o dac ; the output is routed to Jack
; 4 is the number of the midi-output of rosegarden
</CsOptions>
<CsInstruments>

sr     = 44100
kr     = 2205
ksmps  = 20
nchnls = 2
 ipch = 8.02
  iequal = 12
massign 1, 101 ; midi channel one is for instr. 101

gkmodwheel init 0


; global control of the  scale in channel one via the mod-wheel!
instr 1
gkmodwheelone ctrl7 1, 1, 0, 1 ; controller 1 is the mod-wheel
endin

instr 101
imodwheelone = i(gkmodwheelone)

ituningtable init  10

if (imodwheelone>0 ) then
ituningtable = 11 ;choose tuningtable number 11, if the left pedal is down
else
ituningtable = 10 ; when the left pedal is not used, use tuningtable numer 10

endif
 imnn    notnum
 indx    =  imnn * 2 + 1   ; values in table alternate between
                           ; Midi note nums and frequencies
 icps    table  indx, ituningtable
  iamp    ampmidi        10000
; defining the envelopes
iatt = 0.01
idec = 1.5
islev = 0
irel = 0.01
kenv madsr iatt, idec, islev, irel
icar = 1
imod = 1
ifmindex = 8
a1    foscil   kenv*iamp, icps, icar, imod, kenv*ifmindex, 1

      outs       a1, a1
      endin
 

</CsInstruments>
; defining the "score"
<CsScore>
f 0 0 3600
f1  0   8193  10   1
f 10  0 256 -23 "12tet.cps"    ; normal tempered scale
f 11  0 256 -23 "22elftel.cps"       
i1 0 3600
</CsScore>
</CsoundSynthesizer>


Date2010-04-01 16:54
FromAndres Cabrera
Subject[Csnd] Re: connecting with rosegarden
Hi,

Are you connecting the applications properly to the outputs?

Cheers,
Andrés

On Thu, Apr 1, 2010 at 4:38 PM, Stefan Thomas
 wrote:
> Dear community,
> I have the following problem.
> I try to make a recording, using rosegarden, jack and csound.
> When I start the .csd-file, everything is fine, I can play, I can hear sound
> and I can record sound, when qjackctl, csound and rosegarden are running.
> But, unfortunately, when I want to playback the sound via rosegarden, I hear
> nothing. Maybee this is more q problem with rosegarden and and Jack, but
> maybee someone has an idea.
> Here is my example:
> 
> 
> -odevaudio -Ma -b400 -m0d -+rtaudio=jack -i adc -o dac ; the output is
> routed to Jack
> ; 4 is the number of the midi-output of rosegarden
> 
> 
>
> sr     = 44100
> kr     = 2205
> ksmps  = 20
> nchnls = 2
>  ipch = 8.02
>   iequal = 12
> massign 1, 101 ; midi channel one is for instr. 101
>
> gkmodwheel init 0
>
>
> ; global control of the  scale in channel one via the mod-wheel!
> instr 1
> gkmodwheelone ctrl7 1, 1, 0, 1 ; controller 1 is the mod-wheel
> endin
>
> instr 101
> imodwheelone = i(gkmodwheelone)
>
> ituningtable init  10
>
> if (imodwheelone>0 ) then
> ituningtable = 11 ;choose tuningtable number 11, if the left pedal is down
> else
> ituningtable = 10 ; when the left pedal is not used, use tuningtable numer
> 10
>
> endif
>  imnn    notnum
>  indx    =  imnn * 2 + 1   ; values in table alternate between
>                            ; Midi note nums and frequencies
>  icps    table  indx, ituningtable
>   iamp    ampmidi        10000
> ; defining the envelopes
> iatt = 0.01
> idec = 1.5
> islev = 0
> irel = 0.01
> kenv madsr iatt, idec, islev, irel
> icar = 1
> imod = 1
> ifmindex = 8
> a1    foscil   kenv*iamp, icps, icar, imod, kenv*ifmindex, 1
>
>       outs       a1, a1
>       endin
>
>
> 
> ; defining the "score"
> 
> f 0 0 3600
> f1  0   8193  10   1
> f 10  0 256 -23 "12tet.cps"    ; normal tempered scale
> f 11  0 256 -23 "22elftel.cps"
> i1 0 3600
> 
> 
>
>



-- 


Andrés


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-04-01 17:30
FromStefan Thomas
Subject[Csnd] Re: Re: connecting with rosegarden
Dear Andres,
I hope so.
I connected, in Jack, csound 5 (readable devices) to system (writable devices).
Rosegarden and system are connected from both sides.
With his constellation I can hear sound, when I play and I can record midi with csound.
But I don't hear anything, when rosegarden is playing.


2010/4/1 Andres Cabrera <mantaraya36@gmail.com>
Hi,

Are you connecting the applications properly to the outputs?

Cheers,
Andrés

On Thu, Apr 1, 2010 at 4:38 PM, Stefan Thomas
<kontrapunktstefan@googlemail.com> wrote:
> Dear community,
> I have the following problem.
> I try to make a recording, using rosegarden, jack and csound.
> When I start the .csd-file, everything is fine, I can play, I can hear sound
> and I can record sound, when qjackctl, csound and rosegarden are running.
> But, unfortunately, when I want to playback the sound via rosegarden, I hear
> nothing. Maybee this is more q problem with rosegarden and and Jack, but
> maybee someone has an idea.
> Here is my example:
> <CsoundSynthesizer>
> <CsOptions>
> -odevaudio -Ma -b400 -m0d -+rtaudio=jack -i adc -o dac ; the output is
> routed to Jack
> ; 4 is the number of the midi-output of rosegarden
> </CsOptions>
> <CsInstruments>
>
> sr     = 44100
> kr     = 2205
> ksmps  = 20
> nchnls = 2
>  ipch = 8.02
>   iequal = 12
> massign 1, 101 ; midi channel one is for instr. 101
>
> gkmodwheel init 0
>
>
> ; global control of the  scale in channel one via the mod-wheel!
> instr 1
> gkmodwheelone ctrl7 1, 1, 0, 1 ; controller 1 is the mod-wheel
> endin
>
> instr 101
> imodwheelone = i(gkmodwheelone)
>
> ituningtable init  10
>
> if (imodwheelone>0 ) then
> ituningtable = 11 ;choose tuningtable number 11, if the left pedal is down
> else
> ituningtable = 10 ; when the left pedal is not used, use tuningtable numer
> 10
>
> endif
>  imnn    notnum
>  indx    =  imnn * 2 + 1   ; values in table alternate between
>                            ; Midi note nums and frequencies
>  icps    table  indx, ituningtable
>   iamp    ampmidi        10000
> ; defining the envelopes
> iatt = 0.01
> idec = 1.5
> islev = 0
> irel = 0.01
> kenv madsr iatt, idec, islev, irel
> icar = 1
> imod = 1
> ifmindex = 8
> a1    foscil   kenv*iamp, icps, icar, imod, kenv*ifmindex, 1
>
>       outs       a1, a1
>       endin
>
>
> </CsInstruments>
> ; defining the "score"
> <CsScore>
> f 0 0 3600
> f1  0   8193  10   1
> f 10  0 256 -23 "12tet.cps"    ; normal tempered scale
> f 11  0 256 -23 "22elftel.cps"
> i1 0 3600
> </CsScore>
> </CsoundSynthesizer>
>
>



--


Andrés


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-04-03 07:25
FromStefan Thomas
Subject[Csnd] Re: Re: connecting with rosegarden
Dear community,
I know now, what the reason for my problem is, although I can't solve it.
I've quoted below two diffferent csound-csd files, the first works as expected, the 2nd doesn't.
When I invoke the 1st file with csound, I can record and playback with rosegarden and I do always hear the desired csound-sound.
When I invoke the 2nd file, I can record with rosegarden and I can hear sound, but when I start playback, I can't hear any sound.
The problem must have to do with the tuning-table choosen by  the imodwheelone-controller. I assume that, when I start playback in rosegarden, csound has choosen no tuningtable, could this be the reason?
Here is the code of the two files:
;;;;;;;; first csd-file ;;;;;;;;;;;;;;
<CsoundSynthesizer>
<CsOptions>
;-odevaudio -Ma -b400 ; for realtime-midi
-odevaudio -M4 -b400 -m0d -+rtaudio=jack -i adc -o dac ; the output is routed to Jack

; 4 is the number of the midi-output of rosegarden
</CsOptions>
<CsInstruments>

sr     = 44100
kr     = 2205
ksmps  = 20
nchnls = 2
 ipch = 8.02
  iequal = 12
massign 1, 101 ; midi channel one is for instr. 101



instr 101

ituningtable =  10


 imnn    notnum
 indx    =  imnn * 2 + 1   ; values in table alternate between
                           ; Midi note nums and frequencies
 icps    table  indx, ituningtable
  iamp    ampmidi        10000
; defining the envelopes
iatt = 0.01
idec = 1.5
islev = 0
irel = 0.01
kenv madsr iatt, idec, islev, irel
icar = 1
imod = 1
ifmindex = 8
a1    foscil   kenv*iamp, icps, icar, imod, kenv*ifmindex, 1

      outs       a1, a1

      endin
 

</CsInstruments>
; defining the "score"
<CsScore>
f 0 0 3600
f1  0   8193  10   1
f 10  0 256 -23 "12tet.cps"    ; normal tempered scale
f 11  0 256 -23 "22elftel.cps"       
i101 0 3600
</CsScore>
</CsoundSynthesizer>
;;;;; end ;;;;;;;;;;;;;;;;;;;;;;

;;;;;;;;;;;; the second file ;;;;;;;;;;;;;;;;;;;
<CsoundSynthesizer>
<CsOptions>
;-odevaudio -Ma -b400 ; for realtime-midi
-odevaudio -M4 -b400 -m0d -+rtaudio=jack -i adc -o dac ; the output is routed to Jack
; 4 is the number of the midi-output of rosegarden
</CsOptions>
<CsInstruments>

sr     = 44100
kr     = 2205
ksmps  = 20
nchnls = 2
 ipch = 8.02
  iequal = 12
massign 1, 101 ; midi channel one is for instr. 101
gkmodwheel init 0
; global control of the  scale in channel one via the mod-wheel!
instr 1
gkmodwheelone ctrl7 1, 1, 0, 1 ; controller 1 is the mod-wheel
endin

instr 101
imodwheelone = i(gkmodwheelone)
ituningtable init  10
if (imodwheelone>0 ) then
ituningtable = 11 ;choose tuningtable number 11, if the left pedal is down
else
ituningtable = 10 ; when the left pedal is not used, use tuningtable numer 10

endif
 imnn    notnum
 indx    =  imnn * 2 + 1   ; values in table alternate between
                           ; Midi note nums and frequencies
 icps    table  indx, ituningtable
  iamp    ampmidi        10000
; defining the envelopes
iatt = 0.01
idec = 1.5
islev = 0
irel = 0.01
kenv madsr iatt, idec, islev, irel
icar = 1
imod = 1
ifmindex = 8
a1    foscil   kenv*iamp, icps, icar, imod, kenv*ifmindex, 1
      outs       a1, a1
      endin
 

</CsInstruments>
; defining the "score"
<CsScore>
f 0 0 3600
f1  0   8193  10   1
f 10  0 256 -23 "12tet.cps"    ; normal tempered scale
f 11  0 256 -23 "22elftel.cps"       
i1 0 3600
</CsScore>
</CsoundSynthesizer>


2010/4/1 Stefan Thomas <kontrapunktstefan@googlemail.com>
Dear Andres,
I hope so.
I connected, in Jack, csound 5 (readable devices) to system (writable devices).
Rosegarden and system are connected from both sides.
With his constellation I can hear sound, when I play and I can record midi with csound.
But I don't hear anything, when rosegarden is playing.


2010/4/1 Andres Cabrera <mantaraya36@gmail.com>

Hi,

Are you connecting the applications properly to the outputs?

Cheers,
Andrés

On Thu, Apr 1, 2010 at 4:38 PM, Stefan Thomas
<kontrapunktstefan@googlemail.com> wrote:
> Dear community,
> I have the following problem.
> I try to make a recording, using rosegarden, jack and csound.
> When I start the .csd-file, everything is fine, I can play, I can hear sound
> and I can record sound, when qjackctl, csound and rosegarden are running.
> But, unfortunately, when I want to playback the sound via rosegarden, I hear
> nothing. Maybee this is more q problem with rosegarden and and Jack, but
> maybee someone has an idea.
> Here is my example:
> <CsoundSynthesizer>
> <CsOptions>
> -odevaudio -Ma -b400 -m0d -+rtaudio=jack -i adc -o dac ; the output is
> routed to Jack
> ; 4 is the number of the midi-output of rosegarden
> </CsOptions>
> <CsInstruments>
>
> sr     = 44100
> kr     = 2205
> ksmps  = 20
> nchnls = 2
>  ipch = 8.02
>   iequal = 12
> massign 1, 101 ; midi channel one is for instr. 101
>
> gkmodwheel init 0
>
>
> ; global control of the  scale in channel one via the mod-wheel!
> instr 1
> gkmodwheelone ctrl7 1, 1, 0, 1 ; controller 1 is the mod-wheel
> endin
>
> instr 101
> imodwheelone = i(gkmodwheelone)
>
> ituningtable init  10
>
> if (imodwheelone>0 ) then
> ituningtable = 11 ;choose tuningtable number 11, if the left pedal is down
> else
> ituningtable = 10 ; when the left pedal is not used, use tuningtable numer
> 10
>
> endif
>  imnn    notnum
>  indx    =  imnn * 2 + 1   ; values in table alternate between
>                            ; Midi note nums and frequencies
>  icps    table  indx, ituningtable
>   iamp    ampmidi        10000
> ; defining the envelopes
> iatt = 0.01
> idec = 1.5
> islev = 0
> irel = 0.01
> kenv madsr iatt, idec, islev, irel
> icar = 1
> imod = 1
> ifmindex = 8
> a1    foscil   kenv*iamp, icps, icar, imod, kenv*ifmindex, 1
>
>       outs       a1, a1
>       endin
>
>
> </CsInstruments>
> ; defining the "score"
> <CsScore>
> f 0 0 3600
> f1  0   8193  10   1
> f 10  0 256 -23 "12tet.cps"    ; normal tempered scale
> f 11  0 256 -23 "22elftel.cps"
> i1 0 3600
> </CsScore>
> </CsoundSynthesizer>
>
>



--


Andrés


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"