Csound Csound-dev Csound-tekno Search About

Crashes CsoundQt 0.94 Csound 6.09

Date2017-06-30 16:38
FromMarcelo Carneiro de Lima
SubjectCrashes CsoundQt 0.94 Csound 6.09
Attachmentscsoundqt_1.png  csoundqt_2_live_events.png  
Hi. I keep experiencing crashes almost everytime I run the code below. 
I have debugged it and couldn't find anything that could be causing it.
I am trying to improvise changing some parameters in real time using a NanoKontrol device with widgets and triggering instruments with Live Events.
Thanks.
Bests
Marcelo

MacMini, i7 quad, 16gb, Yosemite.

<CsoundSynthesizer>

<CsOptions>

; Select audio/midi flags here according to platform

-odac ;;;realtime audio out

-iadc ;;;uncomment -iadc if realtime audio input is needed too

; For Non-realtime ouput leave only the line below:

; -o tone.wav -W ;;; for file output any platform

</CsOptions>

<CsInstruments>


sr = 48000

ksmps = 256

0dbfs = 1

nchnls = 2


;git1 ftgen 1,0,131072,1,"beats.wav",0,0,0

;git2 ftgen 2,0,1024,19,.5,.5,270,.5

;git3 ftgen 3,0,131072,1,"chinelos_1.wav",0,0,0

;git4 ftgen 4,0,131072,1,"chinelos_2.wav",0,0,0

ga init 0

ga1 init 0

gkfreq1 init 0

gkfreq2 init 0

gkband1 init 0

gkband2 init 0

gkdens1 init 0

gktran1 init 0

gkoct1 init 0

gkgband init 0


gkwarp init 0

gksamp init 0

gkampli init 0

gitime init 0


gkvol1 init 0

gkvol2 init 0

gkvol3 init 0

;gaply init 0


;########################################################

instr 150



;########### FILTRO 1 ####################


kmid ctrl7 1,1,100,15000

kmid2 ctrl7 1,2,10,1000




outvalue "freq1", kmid

outvalue "band2", kmid2


kfreq1 invalue "freq1"

kband1 invalue "band2"


;########### FILTRO 2 ####################


kmid3 ctrl7 1,3,100,15000

kmid4 ctrl7 1,4,10,1000



outvalue "freq3", kmid3

outvalue "band3", kmid4

kfreq2 invalue "freq3"

kband3 invalue "band3"

;########### GRAOS ######################


kdens ctrl7 1,5,10,100

ktran ctrl7 1,6,-2,4

koct ctrl7 1,7,0,10

kbandg ctrl7 1,8,0,10


outvalue "dens", kdens

outvalue "tran", ktran

outvalue "oct", koct

outvalue "bandg", kbandg



kdens1 invalue "dens"

ktran1 invalue "tran"

koct1 invalue "oct"

kbandg1 invalue "bandg"


;############## WARP ###################


kwarp ctrl7 1,10,0,2

ksamp ctrl7 1,11,0.2,3

kampli ctrl7 1,12,0,1.1

itime ctrl7 1,32,0,1



outvalue "warp", kwarp

outvalue "samp", ksamp

outvalue "ampli", kampli

outvalue "time", itime


kwarpin invalue "warp"

ksampin invalue "samp"

kampli1 invalue "ampli"

itime2 invalue "time"



;################ VOLUME ################

;volume3


kvol3 ctrl7 3,12,0.001,2

outvalue "vol3",kvol3

kvolume3 invalue "vol3"


;volume 2


kvol2 ctrl7 3,11,0.001,1

outvalue "vol2",kvol2

kvolume2 invalue "vol2"


;volume 1


kvol1 ctrl7 3,10,0.001,1

outvalue "vol1",kvol1

kvolume1 invalue "vol1"


;########### GLOBAL ####################


gkfreq1 = kfreq1

gkfreq2 = kfreq2

gkband1 = kband1

gkband2 = kband3


gkdens1 = kdens1

gktran1 = ktran1

gkoct1 = koct1

gkgband = kbandg1


gkwarp = kwarpin

gksamp = ksampin

gkampli = kampli1

gitime = itime2


gkvol1 = kvolume1

gkvol2 = kvolume2

gkvol3 = kvolume3


endin


instr 1


ir filenchnls p4


if ir == 1 then

asig diskin p4, 1

elseif ir == 2 then

asig,asig2 diskin p4, 1

asig = asig + asig2


asig3 balance asig, asig

endif


afilt butterbp asig3, gkfreq1, gkband1

anada oscil 0,0,50

outs (afilt*gkvol1)*.7, (afilt*gkvol1)*.8

endin


instr 2



isamp = sr/ftlen(3)

a1 phasor isamp*p5

iamp = p4

iolaps = 150

ifna = p6

ifnb = 40

itotdur = p3

;kton ctrl7 6,7,0,15000 ;all the way down to 0 Hz

asig fog iamp,gkdens1,gktran1,a1,gkoct1,gkgband,.01,.5,.002, iolaps, ifna,ifnb,itotdur


afilt butterbp asig, gkfreq2, gkband2

;asig tone asig, kton ;half-power point at 500 Hz


kpan ctrl7 3,1,0,1

outvalue "pan", kpan

kpanv invalue "pan"


asig=asig*(gkvol2*.9)

afilt=afilt*gkvol2


outs (asig+afilt)*(1-kpanv),(asig+afilt)*kpanv

ga = asig+afilt

gkfreq2 = 0

gkband2 = 0

gkdens1 = 0

gktran1 = 0

gkoct1 = 0

gkgband = 0


endin


instr 3

iamp = p4

ifn1 = p5

ibeg = p6

iwsize = sr/10

ioverlap = p7

irandw = iwsize*0.2

ifnb = p8

itime = p9

;iwarp = p10

;isamp = p11


ir filenchnls p10

print ir

if ir <= 1 then




awarp1,acr1 sndwarp iamp, gkwarp,gksamp,ifn1,ibeg,iwsize,irandw,ioverlap,ifnb,gitime


abal1 balance awarp1,acr1

abal1 =abal1*.8

abal1 dcblock abal1

outs abal1*.8, abal1*.9



elseif ir == 2 then


awarp1,awarp2,acr1,acr2 sndwarpst iamp, gkwarp,gksamp,ifn1,ibeg,iwsize,irandw,ioverlap,ifnb,gitime


abal1 balance awarp1, acr1

abal2 balance awarp2, acr2

abal1 = abal1*.8

abal2 = abal2*.7

abal1 dcblock abal1

abal2 dcblock abal2

outs abal1*.62, abal2*.5

endif


ga1 = abal1 + abal2


gkwarp = 0

gksamp = 0

gkampli = 0

gitime = 0

endin


instr 100

krevtime2 ctrl7 1,16,0,2

outvalue "revtime2",krevtime2

krev1 invalue "revtime2"

khdiff2 ctrl7 1,34,0,1

outvalue "hfreq2",khdiff2

khfreq2 invalue "hfreq2"

krevvol2 ctrl7 1,17,0,0.5

outvalue "revvol2",krevvol2

kvol1 invalue "revvol2"

krevpan2 ctrl7 1,18,0,1

outvalue "revpan2", krevpan2

kprev invalue "revpan2"


averv reverb2 ga1,krev1, khfreq2,4,30

anada = 0

outs (averv*kvol1)*(krevpan2), (averv*kvol1)*(1-krevpan2)

ga1 = 0

endin

instr 99

krevtime ctrl7 1,13,0,2

outvalue "revtime",krevtime

krev1 invalue "revtime"

khdiff ctrl7 1,33,0,1

outvalue "hfreq",khdiff

khfreq invalue "hfreq"

krevvol ctrl7 1,14,0,0.5

outvalue "revvol",krevvol

kvol1 invalue "revvol"

krevpan ctrl7 1,15,0,1

outvalue "revpan", krevpan

kprev invalue "revpan"


averv reverb2 ga,krev1, khfreq,4,30


anada = 0


outs (averv*kvol1)*(krevpan), (averv*kvol1)*(1-krevpan)

ga = 0

endin




</CsInstruments>

<CsScore>

f1 0 131072 1 "beats.wav" 0 0 0

f2 0 2097152 1 "chinelos_1.wav" 0 0 0

f3 0 2097152 1 "chinelos_2.wav" 0 0 0

f4 0 2097152 1 "Ambulance.wav" 0 0 0

f5 0 16777216 1 "CrowdTalking_2003_21.wav" 0 0 0

f6 0 4194304 1 "accident.wav" 0 0 0

f7 0 4194304 1 "ambulance_1.wav" 0 0 0

f8 0 4194304 1 "ambulance_2.wav" 0 0 0

f9 0 4194304 1 "ambulance_3.wav" 0 0 0

f10 0 4194304 1 "ambulance_3.wav" 0 0 0

f11 0 4194304 1 "ambulance_4.wav" 0 0 0

f12 0 4194304 1 "aplausos.wav" 0 0 0

f13 0 4194304 1 "bip_1.wav" 0 0 0

f14 0 4194304 1 "bips_and_clecks.wav" 0 0 0

f15 0 4194304 1 "buuu.wav" 0 0 0

f16 0 4194304 1 "buuu_2.wav" 0 0 0

f17 0 4194304 1 "estatica_1.wav" 0 0 0

f18 0 4194304 1 "fabrica_3.wav" 0 0 0

f19 0 4194304 1 "falatorio.wav" 0 0 0

f20 0 4194304 1 "falatorio_2.wav" 0 0 0


f40 0 8192 19 .5 .5 270 .5

f30 0 8192 -2 -1116 -1188 -1277 -1356 0.3 0.4 0.6 0.5

f50 0 16384 9 .5 1 0

;r 10 NN


i 150 0 3600


;i 3 0 3600 .4 17 15 40 1


i99 0 3600

i100 0 3600



e


</CsScore>

</CsoundSynthesizer>






































































































































--
Marcelo Carneiro
(21) 9382-3621
(21) 3497-0193
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here

Date2017-06-30 17:36
Fromjoachim heintz
SubjectRe: Crashes CsoundQt 0.94 Csound 6.09
hi marcelo -

some ideas / suggestions / questions:

- what are the values for Buffer Size (-b) and Hardware Buffer Size (-B) 
in Configure > Run?
- what is the realtime audio module in the same panel?
- what is the MIDI input interface? did you choose "use csound MIDI 
modules"?

in general, i would avoid code like this:

kmid ctrl7 1,1,100,15000
kmid2 ctrl7 1,2,10,1000
outvalue "freq1", kmid
outvalue "band2", kmid2
kfreq1 invalue "freq1"
kband1 invalue "band2"

because you use the builtin csound midi modules, send the value to the 
widgets and send them back to csound.

csoundqt offers the possibility to directly connect a midi controller 
(slider or knob) with a widget: just open the properties of a widget, 
klick on "MIDI Learn", move a controller, and you should see that the 
widget is now connected to the controller.

you find more information about the configuration and tips here:
http://csoundqt.github.io/pages/documentation.html
in particular:
http://csoundqt.github.io/pages/configuring-csoundqt.html
http://csoundqt.github.io/pages/tips-and-tricks.html

hope this helps -
	joachim



On 30/06/17 17:38, Marcelo Carneiro de Lima wrote:
> Hi. I keep experiencing crashes almost everytime I run the code below.
> I have debugged it and couldn't find anything that could be causing it.
> I am trying to improvise changing some parameters in real time using a
> NanoKontrol device with widgets and triggering instruments with Live Events.
> Thanks.
> Bests
> Marcelo
>
> MacMini, i7 quad, 16gb, Yosemite.
>
> 
>
> 
>
> ; Select audio/midi flags here according to platform
>
> -odac ;;;realtime audio out
>
> -iadc ;;;uncomment -iadc if realtime audio input is needed too
>
> ; For Non-realtime ouput leave only the line below:
>
> ; -o tone.wav -W ;;; for file output any platform
>
> 
>
> 
>
>
> sr = 48000
>
> ksmps = 256
>
> 0dbfs = 1
>
> nchnls = 2
>
>
> ;git1 ftgen 1,0,131072,1,"beats.wav",0,0,0
>
> ;git2 ftgen 2,0,1024,19,.5,.5,270,.5
>
> ;git3 ftgen 3,0,131072,1,"chinelos_1.wav",0,0,0
>
> ;git4 ftgen 4,0,131072,1,"chinelos_2.wav",0,0,0
>
> ga init 0
>
> ga1 init 0
>
> gkfreq1 init 0
>
> gkfreq2 init 0
>
> gkband1 init 0
>
> gkband2 init 0
>
> gkdens1 init 0
>
> gktran1 init 0
>
> gkoct1 init 0
>
> gkgband init 0
>
>
> gkwarp init 0
>
> gksamp init 0
>
> gkampli init 0
>
> gitime init 0
>
>
> gkvol1 init 0
>
> gkvol2 init 0
>
> gkvol3 init 0
>
> ;gaply init 0
>
>
> ;########################################################
>
> instr 150
>
>
>
> ;########### FILTRO 1 ####################
>
>
> kmid ctrl7 1,1,100,15000
>
> kmid2 ctrl7 1,2,10,1000
>
>
>
>
> outvalue "freq1", kmid
>
> outvalue "band2", kmid2
>
>
> kfreq1 invalue "freq1"
>
> kband1 invalue "band2"
>
>
> ;########### FILTRO 2 ####################
>
>
> kmid3 ctrl7 1,3,100,15000
>
> kmid4 ctrl7 1,4,10,1000
>
>
>
> outvalue "freq3", kmid3
>
> outvalue "band3", kmid4
>
> kfreq2 invalue "freq3"
>
> kband3 invalue "band3"
>
> ;########### GRAOS ######################
>
>
> kdens ctrl7 1,5,10,100
>
> ktran ctrl7 1,6,-2,4
>
> koct ctrl7 1,7,0,10
>
> kbandg ctrl7 1,8,0,10
>
>
> outvalue "dens", kdens
>
> outvalue "tran", ktran
>
> outvalue "oct", koct
>
> outvalue "bandg", kbandg
>
>
>
> kdens1 invalue "dens"
>
> ktran1 invalue "tran"
>
> koct1 invalue "oct"
>
> kbandg1 invalue "bandg"
>
>
> ;############## WARP ###################
>
>
> kwarp ctrl7 1,10,0,2
>
> ksamp ctrl7 1,11,0.2,3
>
> kampli ctrl7 1,12,0,1.1
>
> itime ctrl7 1,32,0,1
>
>
>
> outvalue "warp", kwarp
>
> outvalue "samp", ksamp
>
> outvalue "ampli", kampli
>
> outvalue "time", itime
>
>
> kwarpin invalue "warp"
>
> ksampin invalue "samp"
>
> kampli1 invalue "ampli"
>
> itime2 invalue "time"
>
>
>
> ;################ VOLUME ################
>
> ;volume3
>
>
> kvol3 ctrl7 3,12,0.001,2
>
> outvalue "vol3",kvol3
>
> kvolume3 invalue "vol3"
>
>
> ;volume 2
>
>
> kvol2 ctrl7 3,11,0.001,1
>
> outvalue "vol2",kvol2
>
> kvolume2 invalue "vol2"
>
>
> ;volume 1
>
>
> kvol1 ctrl7 3,10,0.001,1
>
> outvalue "vol1",kvol1
>
> kvolume1 invalue "vol1"
>
>
> ;########### GLOBAL ####################
>
>
> gkfreq1 = kfreq1
>
> gkfreq2 = kfreq2
>
> gkband1 = kband1
>
> gkband2 = kband3
>
>
> gkdens1 = kdens1
>
> gktran1 = ktran1
>
> gkoct1 = koct1
>
> gkgband = kbandg1
>
>
> gkwarp = kwarpin
>
> gksamp = ksampin
>
> gkampli = kampli1
>
> gitime = itime2
>
>
> gkvol1 = kvolume1
>
> gkvol2 = kvolume2
>
> gkvol3 = kvolume3
>
>
> endin
>
>
> instr 1
>
>
> ir filenchnls p4
>
>
> if ir == 1 then
>
> asig diskin p4, 1
>
> elseif ir == 2 then
>
> asig,asig2 diskin p4, 1
>
> asig = asig + asig2
>
>
> asig3 balance asig, asig
>
> endif
>
>
> afilt butterbp asig3, gkfreq1, gkband1
>
> anada oscil 0,0,50
>
> outs (afilt*gkvol1)*.7, (afilt*gkvol1)*.8
>
> endin
>
>
> instr 2
>
>
>
> isamp = sr/ftlen(3)
>
> a1 phasor isamp*p5
>
> iamp = p4
>
> iolaps = 150
>
> ifna = p6
>
> ifnb = 40
>
> itotdur = p3
>
> ;kton ctrl7 6,7,0,15000 ;all the way down to 0 Hz
>
> asig fog iamp,gkdens1,gktran1,a1,gkoct1,gkgband,.01,.5,.002, iolaps,
> ifna,ifnb,itotdur
>
>
> afilt butterbp asig, gkfreq2, gkband2
>
> ;asig tone asig, kton ;half-power point at 500 Hz
>
>
> kpan ctrl7 3,1,0,1
>
> outvalue "pan", kpan
>
> kpanv invalue "pan"
>
>
> asig=asig*(gkvol2*.9)
>
> afilt=afilt*gkvol2
>
>
> outs (asig+afilt)*(1-kpanv),(asig+afilt)*kpanv
>
> ga = asig+afilt
>
> gkfreq2 = 0
>
> gkband2 = 0
>
> gkdens1 = 0
>
> gktran1 = 0
>
> gkoct1 = 0
>
> gkgband = 0
>
>
> endin
>
>
> instr 3
>
> iamp = p4
>
> ifn1 = p5
>
> ibeg = p6
>
> iwsize = sr/10
>
> ioverlap = p7
>
> irandw = iwsize*0.2
>
> ifnb = p8
>
> itime = p9
>
> ;iwarp = p10
>
> ;isamp = p11
>
>
> ir filenchnls p10
>
> print ir
>
> if ir <= 1 then
>
>
>
>
> awarp1,acr1 sndwarp iamp,
> gkwarp,gksamp,ifn1,ibeg,iwsize,irandw,ioverlap,ifnb,gitime
>
>
> abal1 balance awarp1,acr1
>
> abal1 =abal1*.8
>
> abal1 dcblock abal1
>
> outs abal1*.8, abal1*.9
>
>
>
> elseif ir == 2 then
>
>
> awarp1,awarp2,acr1,acr2 sndwarpst iamp,
> gkwarp,gksamp,ifn1,ibeg,iwsize,irandw,ioverlap,ifnb,gitime
>
>
> abal1 balance awarp1, acr1
>
> abal2 balance awarp2, acr2
>
> abal1 = abal1*.8
>
> abal2 = abal2*.7
>
> abal1 dcblock abal1
>
> abal2 dcblock abal2
>
> outs abal1*.62, abal2*.5
>
> endif
>
>
> ga1 = abal1 + abal2
>
>
> gkwarp = 0
>
> gksamp = 0
>
> gkampli = 0
>
> gitime = 0
>
> endin
>
>
> instr 100
>
> krevtime2 ctrl7 1,16,0,2
>
> outvalue "revtime2",krevtime2
>
> krev1 invalue "revtime2"
>
> khdiff2 ctrl7 1,34,0,1
>
> outvalue "hfreq2",khdiff2
>
> khfreq2 invalue "hfreq2"
>
> krevvol2 ctrl7 1,17,0,0.5
>
> outvalue "revvol2",krevvol2
>
> kvol1 invalue "revvol2"
>
> krevpan2 ctrl7 1,18,0,1
>
> outvalue "revpan2", krevpan2
>
> kprev invalue "revpan2"
>
>
> averv reverb2 ga1,krev1, khfreq2,4,30
>
> anada = 0
>
> outs (averv*kvol1)*(krevpan2), (averv*kvol1)*(1-krevpan2)
>
> ga1 = 0
>
> endin
>
> instr 99
>
> krevtime ctrl7 1,13,0,2
>
> outvalue "revtime",krevtime
>
> krev1 invalue "revtime"
>
> khdiff ctrl7 1,33,0,1
>
> outvalue "hfreq",khdiff
>
> khfreq invalue "hfreq"
>
> krevvol ctrl7 1,14,0,0.5
>
> outvalue "revvol",krevvol
>
> kvol1 invalue "revvol"
>
> krevpan ctrl7 1,15,0,1
>
> outvalue "revpan", krevpan
>
> kprev invalue "revpan"
>
>
> averv reverb2 ga,krev1, khfreq,4,30
>
>
> anada = 0
>
>
> outs (averv*kvol1)*(krevpan), (averv*kvol1)*(1-krevpan)
>
> ga = 0
>
> endin
>
>
>
>
> 
>
> 
>
> f1 0 131072 1 "beats.wav" 0 0 0
>
> f2 0 2097152 1 "chinelos_1.wav" 0 0 0
>
> f3 0 2097152 1 "chinelos_2.wav" 0 0 0
>
> f4 0 2097152 1 "Ambulance.wav" 0 0 0
>
> f5 0 16777216 1 "CrowdTalking_2003_21.wav" 0 0 0
>
> f6 0 4194304 1 "accident.wav" 0 0 0
>
> f7 0 4194304 1 "ambulance_1.wav" 0 0 0
>
> f8 0 4194304 1 "ambulance_2.wav" 0 0 0
>
> f9 0 4194304 1 "ambulance_3.wav" 0 0 0
>
> f10 0 4194304 1 "ambulance_3.wav" 0 0 0
>
> f11 0 4194304 1 "ambulance_4.wav" 0 0 0
>
> f12 0 4194304 1 "aplausos.wav" 0 0 0
>
> f13 0 4194304 1 "bip_1.wav" 0 0 0
>
> f14 0 4194304 1 "bips_and_clecks.wav" 0 0 0
>
> f15 0 4194304 1 "buuu.wav" 0 0 0
>
> f16 0 4194304 1 "buuu_2.wav" 0 0 0
>
> f17 0 4194304 1 "estatica_1.wav" 0 0 0
>
> f18 0 4194304 1 "fabrica_3.wav" 0 0 0
>
> f19 0 4194304 1 "falatorio.wav" 0 0 0
>
> f20 0 4194304 1 "falatorio_2.wav" 0 0 0
>
>
> f40 0 8192 19 .5 .5 270 .5
>
> f30 0 8192 -2 -1116 -1188 -1277 -1356 0.3 0.4 0.6 0.5
>
> f50 0 16384 9 .5 1 0
>
> ;r 10 NN
>
>
> i 150 0 3600
>
>
> ;i 3 0 3600 .4 17 15 40 1
>
>
> i99 0 3600
>
> i100 0 3600
>
>
>
> e
>
>
> 
>
> 
>
>
>
>
>
>
> ​
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> --
> *Marcelo Carneiro*
> (21) 9382-3621
> (21) 3497-0193
> Skype: Carneiro3729
> http://marceloarcos2.wixsite.com/marcelocarneiro
> Csound mailing list Csound@listserv.heanet.ie
> 
> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to
> https://github.com/csound/csound/issues Discussions of bugs and features
> can be posted here

Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Date2017-06-30 18:31
FromMarcelo Carneiro de Lima
SubjectRe: Crashes CsoundQt 0.94 Csound 6.09
Hi, thank you.
I am using Buffers 1024 and 4098 respectively. 
The module is portaudio (blocking)
I was not using MIDI modules, now I am. 
The MIDI input interface is a Korg NanoKontrol 1 (usb).

Thanks for the tips about the code, I will check upon the documentation.
Bests
Marcelo

2017-06-30 13:36 GMT-03:00 joachim heintz <jh@joachimheintz.de>:
hi marcelo -

some ideas / suggestions / questions:

- what are the values for Buffer Size (-b) and Hardware Buffer Size (-B) in Configure > Run?
- what is the realtime audio module in the same panel?
- what is the MIDI input interface? did you choose "use csound MIDI modules"?

in general, i would avoid code like this:

kmid ctrl7 1,1,100,15000
kmid2 ctrl7 1,2,10,1000
outvalue "freq1", kmid
outvalue "band2", kmid2
kfreq1 invalue "freq1"
kband1 invalue "band2"

because you use the builtin csound midi modules, send the value to the widgets and send them back to csound.

csoundqt offers the possibility to directly connect a midi controller (slider or knob) with a widget: just open the properties of a widget, klick on "MIDI Learn", move a controller, and you should see that the widget is now connected to the controller.

you find more information about the configuration and tips here:
http://csoundqt.github.io/pages/documentation.html
in particular:
http://csoundqt.github.io/pages/configuring-csoundqt.html
http://csoundqt.github.io/pages/tips-and-tricks.html

hope this helps -
        joachim




On 30/06/17 17:38, Marcelo Carneiro de Lima wrote:
Hi. I keep experiencing crashes almost everytime I run the code below.
I have debugged it and couldn't find anything that could be causing it.
I am trying to improvise changing some parameters in real time using a
NanoKontrol device with widgets and triggering instruments with Live Events.
Thanks.
Bests
Marcelo

MacMini, i7 quad, 16gb, Yosemite.

<CsoundSynthesizer>

<CsOptions>

; Select audio/midi flags here according to platform

-odac ;;;realtime audio out

-iadc ;;;uncomment -iadc if realtime audio input is needed too

; For Non-realtime ouput leave only the line below:

; -o tone.wav -W ;;; for file output any platform

</CsOptions>

<CsInstruments>


sr = 48000

ksmps = 256

0dbfs = 1

nchnls = 2


;git1 ftgen 1,0,131072,1,"beats.wav",0,0,0

;git2 ftgen 2,0,1024,19,.5,.5,270,.5

;git3 ftgen 3,0,131072,1,"chinelos_1.wav",0,0,0

;git4 ftgen 4,0,131072,1,"chinelos_2.wav",0,0,0

ga init 0

ga1 init 0

gkfreq1 init 0

gkfreq2 init 0

gkband1 init 0

gkband2 init 0

gkdens1 init 0

gktran1 init 0

gkoct1 init 0

gkgband init 0


gkwarp init 0

gksamp init 0

gkampli init 0

gitime init 0


gkvol1 init 0

gkvol2 init 0

gkvol3 init 0

;gaply init 0


;########################################################

instr 150



;########### FILTRO 1 ####################


kmid ctrl7 1,1,100,15000

kmid2 ctrl7 1,2,10,1000




outvalue "freq1", kmid

outvalue "band2", kmid2


kfreq1 invalue "freq1"

kband1 invalue "band2"


;########### FILTRO 2 ####################


kmid3 ctrl7 1,3,100,15000

kmid4 ctrl7 1,4,10,1000



outvalue "freq3", kmid3

outvalue "band3", kmid4

kfreq2 invalue "freq3"

kband3 invalue "band3"

;########### GRAOS ######################


kdens ctrl7 1,5,10,100

ktran ctrl7 1,6,-2,4

koct ctrl7 1,7,0,10

kbandg ctrl7 1,8,0,10


outvalue "dens", kdens

outvalue "tran", ktran

outvalue "oct", koct

outvalue "bandg", kbandg



kdens1 invalue "dens"

ktran1 invalue "tran"

koct1 invalue "oct"

kbandg1 invalue "bandg"


;############## WARP ###################


kwarp ctrl7 1,10,0,2

ksamp ctrl7 1,11,0.2,3

kampli ctrl7 1,12,0,1.1

itime ctrl7 1,32,0,1



outvalue "warp", kwarp

outvalue "samp", ksamp

outvalue "ampli", kampli

outvalue "time", itime


kwarpin invalue "warp"

ksampin invalue "samp"

kampli1 invalue "ampli"

itime2 invalue "time"



;################ VOLUME ################

;volume3


kvol3 ctrl7 3,12,0.001,2

outvalue "vol3",kvol3

kvolume3 invalue "vol3"


;volume 2


kvol2 ctrl7 3,11,0.001,1

outvalue "vol2",kvol2

kvolume2 invalue "vol2"


;volume 1


kvol1 ctrl7 3,10,0.001,1

outvalue "vol1",kvol1

kvolume1 invalue "vol1"


;########### GLOBAL ####################


gkfreq1 = kfreq1

gkfreq2 = kfreq2

gkband1 = kband1

gkband2 = kband3


gkdens1 = kdens1

gktran1 = ktran1

gkoct1 = koct1

gkgband = kbandg1


gkwarp = kwarpin

gksamp = ksampin

gkampli = kampli1

gitime = itime2


gkvol1 = kvolume1

gkvol2 = kvolume2

gkvol3 = kvolume3


endin


instr 1


ir filenchnls p4


if ir == 1 then

asig diskin p4, 1

elseif ir == 2 then

asig,asig2 diskin p4, 1

asig = asig + asig2


asig3 balance asig, asig

endif


afilt butterbp asig3, gkfreq1, gkband1

anada oscil 0,0,50

outs (afilt*gkvol1)*.7, (afilt*gkvol1)*.8

endin


instr 2



isamp = sr/ftlen(3)

a1 phasor isamp*p5

iamp = p4

iolaps = 150

ifna = p6

ifnb = 40

itotdur = p3

;kton ctrl7 6,7,0,15000 ;all the way down to 0 Hz

asig fog iamp,gkdens1,gktran1,a1,gkoct1,gkgband,.01,.5,.002, iolaps,
ifna,ifnb,itotdur


afilt butterbp asig, gkfreq2, gkband2

;asig tone asig, kton ;half-power point at 500 Hz


kpan ctrl7 3,1,0,1

outvalue "pan", kpan

kpanv invalue "pan"


asig=asig*(gkvol2*.9)

afilt=afilt*gkvol2


outs (asig+afilt)*(1-kpanv),(asig+afilt)*kpanv

ga = asig+afilt

gkfreq2 = 0

gkband2 = 0

gkdens1 = 0

gktran1 = 0

gkoct1 = 0

gkgband = 0


endin


instr 3

iamp = p4

ifn1 = p5

ibeg = p6

iwsize = sr/10

ioverlap = p7

irandw = iwsize*0.2

ifnb = p8

itime = p9

;iwarp = p10

;isamp = p11


ir filenchnls p10

print ir

if ir <= 1 then




awarp1,acr1 sndwarp iamp,
gkwarp,gksamp,ifn1,ibeg,iwsize,irandw,ioverlap,ifnb,gitime


abal1 balance awarp1,acr1

abal1 =abal1*.8

abal1 dcblock abal1

outs abal1*.8, abal1*.9



elseif ir == 2 then


awarp1,awarp2,acr1,acr2 sndwarpst iamp,
gkwarp,gksamp,ifn1,ibeg,iwsize,irandw,ioverlap,ifnb,gitime


abal1 balance awarp1, acr1

abal2 balance awarp2, acr2

abal1 = abal1*.8

abal2 = abal2*.7

abal1 dcblock abal1

abal2 dcblock abal2

outs abal1*.62, abal2*.5

endif


ga1 = abal1 + abal2


gkwarp = 0

gksamp = 0

gkampli = 0

gitime = 0

endin


instr 100

krevtime2 ctrl7 1,16,0,2

outvalue "revtime2",krevtime2

krev1 invalue "revtime2"

khdiff2 ctrl7 1,34,0,1

outvalue "hfreq2",khdiff2

khfreq2 invalue "hfreq2"

krevvol2 ctrl7 1,17,0,0.5

outvalue "revvol2",krevvol2

kvol1 invalue "revvol2"

krevpan2 ctrl7 1,18,0,1

outvalue "revpan2", krevpan2

kprev invalue "revpan2"


averv reverb2 ga1,krev1, khfreq2,4,30

anada = 0

outs (averv*kvol1)*(krevpan2), (averv*kvol1)*(1-krevpan2)

ga1 = 0

endin

instr 99

krevtime ctrl7 1,13,0,2

outvalue "revtime",krevtime

krev1 invalue "revtime"

khdiff ctrl7 1,33,0,1

outvalue "hfreq",khdiff

khfreq invalue "hfreq"

krevvol ctrl7 1,14,0,0.5

outvalue "revvol",krevvol

kvol1 invalue "revvol"

krevpan ctrl7 1,15,0,1

outvalue "revpan", krevpan

kprev invalue "revpan"


averv reverb2 ga,krev1, khfreq,4,30


anada = 0


outs (averv*kvol1)*(krevpan), (averv*kvol1)*(1-krevpan)

ga = 0

endin




</CsInstruments>

<CsScore>

f1 0 131072 1 "beats.wav" 0 0 0

f2 0 2097152 1 "chinelos_1.wav" 0 0 0

f3 0 2097152 1 "chinelos_2.wav" 0 0 0

f4 0 2097152 1 "Ambulance.wav" 0 0 0

f5 0 16777216 1 "CrowdTalking_2003_21.wav" 0 0 0

f6 0 4194304 1 "accident.wav" 0 0 0

f7 0 4194304 1 "ambulance_1.wav" 0 0 0

f8 0 4194304 1 "ambulance_2.wav" 0 0 0

f9 0 4194304 1 "ambulance_3.wav" 0 0 0

f10 0 4194304 1 "ambulance_3.wav" 0 0 0

f11 0 4194304 1 "ambulance_4.wav" 0 0 0

f12 0 4194304 1 "aplausos.wav" 0 0 0

f13 0 4194304 1 "bip_1.wav" 0 0 0

f14 0 4194304 1 "bips_and_clecks.wav" 0 0 0

f15 0 4194304 1 "buuu.wav" 0 0 0

f16 0 4194304 1 "buuu_2.wav" 0 0 0

f17 0 4194304 1 "estatica_1.wav" 0 0 0

f18 0 4194304 1 "fabrica_3.wav" 0 0 0

f19 0 4194304 1 "falatorio.wav" 0 0 0

f20 0 4194304 1 "falatorio_2.wav" 0 0 0


f40 0 8192 19 .5 .5 270 .5

f30 0 8192 -2 -1116 -1188 -1277 -1356 0.3 0.4 0.6 0.5

f50 0 16384 9 .5 1 0

;r 10 NN


i 150 0 3600


;i 3 0 3600 .4 17 15 40 1


i99 0 3600

i100 0 3600



e


</CsScore>

</CsoundSynthesizer>







































































































































--
*Marcelo Carneiro*
(21) 9382-3621
(21) 3497-0193
Skype: Carneiro3729
http://marceloarcos2.wixsite.com/marcelocarneiro
Csound mailing list Csound@listserv.heanet.ie
<mailto:Csound@listserv.heanet.ie>
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to
https://github.com/csound/csound/issues Discussions of bugs and features
can be posted here

Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
       https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here



--
Marcelo Carneiro
(21) 9382-3621
(21) 3497-0193
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here

Date2017-06-30 18:38
FromVictor Lazzarini
SubjectRe: Crashes CsoundQt 0.94 Csound 6.09
What OS by the way? Can you isolate the crashing instrument?

Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy
Maynooth University
Ireland

On 30 Jun 2017, at 18:32, Marcelo Carneiro de Lima <marcelo.arcos2@GMAIL.COM> wrote:

Hi, thank you.
I am using Buffers 1024 and 4098 respectively. 
The module is portaudio (blocking)
I was not using MIDI modules, now I am. 
The MIDI input interface is a Korg NanoKontrol 1 (usb).

Thanks for the tips about the code, I will check upon the documentation.
Bests
Marcelo

2017-06-30 13:36 GMT-03:00 joachim heintz <jh@joachimheintz.de>:
hi marcelo -

some ideas / suggestions / questions:

- what are the values for Buffer Size (-b) and Hardware Buffer Size (-B) in Configure > Run?
- what is the realtime audio module in the same panel?
- what is the MIDI input interface? did you choose "use csound MIDI modules"?

in general, i would avoid code like this:

kmid ctrl7 1,1,100,15000
kmid2 ctrl7 1,2,10,1000
outvalue "freq1", kmid
outvalue "band2", kmid2
kfreq1 invalue "freq1"
kband1 invalue "band2"

because you use the builtin csound midi modules, send the value to the widgets and send them back to csound.

csoundqt offers the possibility to directly connect a midi controller (slider or knob) with a widget: just open the properties of a widget, klick on "MIDI Learn", move a controller, and you should see that the widget is now connected to the controller.

you find more information about the configuration and tips here:
http://csoundqt.github.io/pages/documentation.html
in particular:
http://csoundqt.github.io/pages/configuring-csoundqt.html
http://csoundqt.github.io/pages/tips-and-tricks.html

hope this helps -
        joachim




On 30/06/17 17:38, Marcelo Carneiro de Lima wrote:
Hi. I keep experiencing crashes almost everytime I run the code below.
I have debugged it and couldn't find anything that could be causing it.
I am trying to improvise changing some parameters in real time using a
NanoKontrol device with widgets and triggering instruments with Live Events.
Thanks.
Bests
Marcelo

MacMini, i7 quad, 16gb, Yosemite.

<CsoundSynthesizer>

<CsOptions>

; Select audio/midi flags here according to platform

-odac ;;;realtime audio out

-iadc ;;;uncomment -iadc if realtime audio input is needed too

; For Non-realtime ouput leave only the line below:

; -o tone.wav -W ;;; for file output any platform

</CsOptions>

<CsInstruments>


sr = 48000

ksmps = 256

0dbfs = 1

nchnls = 2


;git1 ftgen 1,0,131072,1,"beats.wav",0,0,0

;git2 ftgen 2,0,1024,19,.5,.5,270,.5

;git3 ftgen 3,0,131072,1,"chinelos_1.wav",0,0,0

;git4 ftgen 4,0,131072,1,"chinelos_2.wav",0,0,0

ga init 0

ga1 init 0

gkfreq1 init 0

gkfreq2 init 0

gkband1 init 0

gkband2 init 0

gkdens1 init 0

gktran1 init 0

gkoct1 init 0

gkgband init 0


gkwarp init 0

gksamp init 0

gkampli init 0

gitime init 0


gkvol1 init 0

gkvol2 init 0

gkvol3 init 0

;gaply init 0


;########################################################

instr 150



;########### FILTRO 1 ####################


kmid ctrl7 1,1,100,15000

kmid2 ctrl7 1,2,10,1000




outvalue "freq1", kmid

outvalue "band2", kmid2


kfreq1 invalue "freq1"

kband1 invalue "band2"


;########### FILTRO 2 ####################


kmid3 ctrl7 1,3,100,15000

kmid4 ctrl7 1,4,10,1000



outvalue "freq3", kmid3

outvalue "band3", kmid4

kfreq2 invalue "freq3"

kband3 invalue "band3"

;########### GRAOS ######################


kdens ctrl7 1,5,10,100

ktran ctrl7 1,6,-2,4

koct ctrl7 1,7,0,10

kbandg ctrl7 1,8,0,10


outvalue "dens", kdens

outvalue "tran", ktran

outvalue "oct", koct

outvalue "bandg", kbandg



kdens1 invalue "dens"

ktran1 invalue "tran"

koct1 invalue "oct"

kbandg1 invalue "bandg"


;############## WARP ###################


kwarp ctrl7 1,10,0,2

ksamp ctrl7 1,11,0.2,3

kampli ctrl7 1,12,0,1.1

itime ctrl7 1,32,0,1



outvalue "warp", kwarp

outvalue "samp", ksamp

outvalue "ampli", kampli

outvalue "time", itime


kwarpin invalue "warp"

ksampin invalue "samp"

kampli1 invalue "ampli"

itime2 invalue "time"



;################ VOLUME ################

;volume3


kvol3 ctrl7 3,12,0.001,2

outvalue "vol3",kvol3

kvolume3 invalue "vol3"


;volume 2


kvol2 ctrl7 3,11,0.001,1

outvalue "vol2",kvol2

kvolume2 invalue "vol2"


;volume 1


kvol1 ctrl7 3,10,0.001,1

outvalue "vol1",kvol1

kvolume1 invalue "vol1"


;########### GLOBAL ####################


gkfreq1 = kfreq1

gkfreq2 = kfreq2

gkband1 = kband1

gkband2 = kband3


gkdens1 = kdens1

gktran1 = ktran1

gkoct1 = koct1

gkgband = kbandg1


gkwarp = kwarpin

gksamp = ksampin

gkampli = kampli1

gitime = itime2


gkvol1 = kvolume1

gkvol2 = kvolume2

gkvol3 = kvolume3


endin


instr 1


ir filenchnls p4


if ir == 1 then

asig diskin p4, 1

elseif ir == 2 then

asig,asig2 diskin p4, 1

asig = asig + asig2


asig3 balance asig, asig

endif


afilt butterbp asig3, gkfreq1, gkband1

anada oscil 0,0,50

outs (afilt*gkvol1)*.7, (afilt*gkvol1)*.8

endin


instr 2



isamp = sr/ftlen(3)

a1 phasor isamp*p5

iamp = p4

iolaps = 150

ifna = p6

ifnb = 40

itotdur = p3

;kton ctrl7 6,7,0,15000 ;all the way down to 0 Hz

asig fog iamp,gkdens1,gktran1,a1,gkoct1,gkgband,.01,.5,.002, iolaps,
ifna,ifnb,itotdur


afilt butterbp asig, gkfreq2, gkband2

;asig tone asig, kton ;half-power point at 500 Hz


kpan ctrl7 3,1,0,1

outvalue "pan", kpan

kpanv invalue "pan"


asig=asig*(gkvol2*.9)

afilt=afilt*gkvol2


outs (asig+afilt)*(1-kpanv),(asig+afilt)*kpanv

ga = asig+afilt

gkfreq2 = 0

gkband2 = 0

gkdens1 = 0

gktran1 = 0

gkoct1 = 0

gkgband = 0


endin


instr 3

iamp = p4

ifn1 = p5

ibeg = p6

iwsize = sr/10

ioverlap = p7

irandw = iwsize*0.2

ifnb = p8

itime = p9

;iwarp = p10

;isamp = p11


ir filenchnls p10

print ir

if ir <= 1 then




awarp1,acr1 sndwarp iamp,
gkwarp,gksamp,ifn1,ibeg,iwsize,irandw,ioverlap,ifnb,gitime


abal1 balance awarp1,acr1

abal1 =abal1*.8

abal1 dcblock abal1

outs abal1*.8, abal1*.9



elseif ir == 2 then


awarp1,awarp2,acr1,acr2 sndwarpst iamp,
gkwarp,gksamp,ifn1,ibeg,iwsize,irandw,ioverlap,ifnb,gitime


abal1 balance awarp1, acr1

abal2 balance awarp2, acr2

abal1 = abal1*.8

abal2 = abal2*.7

abal1 dcblock abal1

abal2 dcblock abal2

outs abal1*.62, abal2*.5

endif


ga1 = abal1 + abal2


gkwarp = 0

gksamp = 0

gkampli = 0

gitime = 0

endin


instr 100

krevtime2 ctrl7 1,16,0,2

outvalue "revtime2",krevtime2

krev1 invalue "revtime2"

khdiff2 ctrl7 1,34,0,1

outvalue "hfreq2",khdiff2

khfreq2 invalue "hfreq2"

krevvol2 ctrl7 1,17,0,0.5

outvalue "revvol2",krevvol2

kvol1 invalue "revvol2"

krevpan2 ctrl7 1,18,0,1

outvalue "revpan2", krevpan2

kprev invalue "revpan2"


averv reverb2 ga1,krev1, khfreq2,4,30

anada = 0

outs (averv*kvol1)*(krevpan2), (averv*kvol1)*(1-krevpan2)

ga1 = 0

endin

instr 99

krevtime ctrl7 1,13,0,2

outvalue "revtime",krevtime

krev1 invalue "revtime"

khdiff ctrl7 1,33,0,1

outvalue "hfreq",khdiff

khfreq invalue "hfreq"

krevvol ctrl7 1,14,0,0.5

outvalue "revvol",krevvol

kvol1 invalue "revvol"

krevpan ctrl7 1,15,0,1

outvalue "revpan", krevpan

kprev invalue "revpan"


averv reverb2 ga,krev1, khfreq,4,30


anada = 0


outs (averv*kvol1)*(krevpan), (averv*kvol1)*(1-krevpan)

ga = 0

endin




</CsInstruments>

<CsScore>

f1 0 131072 1 "beats.wav" 0 0 0

f2 0 2097152 1 "chinelos_1.wav" 0 0 0

f3 0 2097152 1 "chinelos_2.wav" 0 0 0

f4 0 2097152 1 "Ambulance.wav" 0 0 0

f5 0 16777216 1 "CrowdTalking_2003_21.wav" 0 0 0

f6 0 4194304 1 "accident.wav" 0 0 0

f7 0 4194304 1 "ambulance_1.wav" 0 0 0

f8 0 4194304 1 "ambulance_2.wav" 0 0 0

f9 0 4194304 1 "ambulance_3.wav" 0 0 0

f10 0 4194304 1 "ambulance_3.wav" 0 0 0

f11 0 4194304 1 "ambulance_4.wav" 0 0 0

f12 0 4194304 1 "aplausos.wav" 0 0 0

f13 0 4194304 1 "bip_1.wav" 0 0 0

f14 0 4194304 1 "bips_and_clecks.wav" 0 0 0

f15 0 4194304 1 "buuu.wav" 0 0 0

f16 0 4194304 1 "buuu_2.wav" 0 0 0

f17 0 4194304 1 "estatica_1.wav" 0 0 0

f18 0 4194304 1 "fabrica_3.wav" 0 0 0

f19 0 4194304 1 "falatorio.wav" 0 0 0

f20 0 4194304 1 "falatorio_2.wav" 0 0 0


f40 0 8192 19 .5 .5 270 .5

f30 0 8192 -2 -1116 -1188 -1277 -1356 0.3 0.4 0.6 0.5

f50 0 16384 9 .5 1 0

;r 10 NN


i 150 0 3600


;i 3 0 3600 .4 17 15 40 1


i99 0 3600

i100 0 3600



e


</CsScore>

</CsoundSynthesizer>







































































































































--
*Marcelo Carneiro*
(21) 9382-3621
(21) 3497-0193
Skype: Carneiro3729
http://marceloarcos2.wixsite.com/marcelocarneiro
Csound mailing list Csound@listserv.heanet.ie
<mailto:Csound@listserv.heanet.ie>
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to
https://github.com/csound/csound/issues Discussions of bugs and features
can be posted here

Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
       https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here



--
Marcelo Carneiro
(21) 9382-3621
(21) 3497-0193
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here

Date2017-06-30 18:46
FromMarcelo Carneiro de Lima
SubjectRe: Crashes CsoundQt 0.94 Csound 6.09
Yosemite (mac). Actually if I start to Run the code it goes fine until a certain point. If I press Stop CsoundQt crashes (most of the time), or freezes (sometimes). Other times it stops correctly, but when I try to run it again it freezes. I am checking CsoundQt configurations as Joachim suggested and will try again...
Thank you
Marcelo


2017-06-30 14:38 GMT-03:00 Victor Lazzarini <Victor.Lazzarini@nuim.ie>:
What OS by the way? Can you isolate the crashing instrument?

Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy
Maynooth University
Ireland

On 30 Jun 2017, at 18:32, Marcelo Carneiro de Lima <marcelo.arcos2@GMAIL.COM> wrote:

Hi, thank you.
I am using Buffers 1024 and 4098 respectively. 
The module is portaudio (blocking)
I was not using MIDI modules, now I am. 
The MIDI input interface is a Korg NanoKontrol 1 (usb).

Thanks for the tips about the code, I will check upon the documentation.
Bests
Marcelo

2017-06-30 13:36 GMT-03:00 joachim heintz <jh@joachimheintz.de>:
hi marcelo -

some ideas / suggestions / questions:

- what are the values for Buffer Size (-b) and Hardware Buffer Size (-B) in Configure > Run?
- what is the realtime audio module in the same panel?
- what is the MIDI input interface? did you choose "use csound MIDI modules"?

in general, i would avoid code like this:

kmid ctrl7 1,1,100,15000
kmid2 ctrl7 1,2,10,1000
outvalue "freq1", kmid
outvalue "band2", kmid2
kfreq1 invalue "freq1"
kband1 invalue "band2"

because you use the builtin csound midi modules, send the value to the widgets and send them back to csound.

csoundqt offers the possibility to directly connect a midi controller (slider or knob) with a widget: just open the properties of a widget, klick on "MIDI Learn", move a controller, and you should see that the widget is now connected to the controller.

you find more information about the configuration and tips here:
http://csoundqt.github.io/pages/documentation.html
in particular:
http://csoundqt.github.io/pages/configuring-csoundqt.html
http://csoundqt.github.io/pages/tips-and-tricks.html

hope this helps -
        joachim




On 30/06/17 17:38, Marcelo Carneiro de Lima wrote:
Hi. I keep experiencing crashes almost everytime I run the code below.
I have debugged it and couldn't find anything that could be causing it.
I am trying to improvise changing some parameters in real time using a
NanoKontrol device with widgets and triggering instruments with Live Events.
Thanks.
Bests
Marcelo

MacMini, i7 quad, 16gb, Yosemite.

<CsoundSynthesizer>

<CsOptions>

; Select audio/midi flags here according to platform

-odac ;;;realtime audio out

-iadc ;;;uncomment -iadc if realtime audio input is needed too

; For Non-realtime ouput leave only the line below:

; -o tone.wav -W ;;; for file output any platform

</CsOptions>

<CsInstruments>


sr = 48000

ksmps = 256

0dbfs = 1

nchnls = 2


;git1 ftgen 1,0,131072,1,"beats.wav",0,0,0

;git2 ftgen 2,0,1024,19,.5,.5,270,.5

;git3 ftgen 3,0,131072,1,"chinelos_1.wav",0,0,0

;git4 ftgen 4,0,131072,1,"chinelos_2.wav",0,0,0

ga init 0

ga1 init 0

gkfreq1 init 0

gkfreq2 init 0

gkband1 init 0

gkband2 init 0

gkdens1 init 0

gktran1 init 0

gkoct1 init 0

gkgband init 0


gkwarp init 0

gksamp init 0

gkampli init 0

gitime init 0


gkvol1 init 0

gkvol2 init 0

gkvol3 init 0

;gaply init 0


;########################################################

instr 150



;########### FILTRO 1 ####################


kmid ctrl7 1,1,100,15000

kmid2 ctrl7 1,2,10,1000




outvalue "freq1", kmid

outvalue "band2", kmid2


kfreq1 invalue "freq1"

kband1 invalue "band2"


;########### FILTRO 2 ####################


kmid3 ctrl7 1,3,100,15000

kmid4 ctrl7 1,4,10,1000



outvalue "freq3", kmid3

outvalue "band3", kmid4

kfreq2 invalue "freq3"

kband3 invalue "band3"

;########### GRAOS ######################


kdens ctrl7 1,5,10,100

ktran ctrl7 1,6,-2,4

koct ctrl7 1,7,0,10

kbandg ctrl7 1,8,0,10


outvalue "dens", kdens

outvalue "tran", ktran

outvalue "oct", koct

outvalue "bandg", kbandg



kdens1 invalue "dens"

ktran1 invalue "tran"

koct1 invalue "oct"

kbandg1 invalue "bandg"


;############## WARP ###################


kwarp ctrl7 1,10,0,2

ksamp ctrl7 1,11,0.2,3

kampli ctrl7 1,12,0,1.1

itime ctrl7 1,32,0,1



outvalue "warp", kwarp

outvalue "samp", ksamp

outvalue "ampli", kampli

outvalue "time", itime


kwarpin invalue "warp"

ksampin invalue "samp"

kampli1 invalue "ampli"

itime2 invalue "time"



;################ VOLUME ################

;volume3


kvol3 ctrl7 3,12,0.001,2

outvalue "vol3",kvol3

kvolume3 invalue "vol3"


;volume 2


kvol2 ctrl7 3,11,0.001,1

outvalue "vol2",kvol2

kvolume2 invalue "vol2"


;volume 1


kvol1 ctrl7 3,10,0.001,1

outvalue "vol1",kvol1

kvolume1 invalue "vol1"


;########### GLOBAL ####################


gkfreq1 = kfreq1

gkfreq2 = kfreq2

gkband1 = kband1

gkband2 = kband3


gkdens1 = kdens1

gktran1 = ktran1

gkoct1 = koct1

gkgband = kbandg1


gkwarp = kwarpin

gksamp = ksampin

gkampli = kampli1

gitime = itime2


gkvol1 = kvolume1

gkvol2 = kvolume2

gkvol3 = kvolume3


endin


instr 1


ir filenchnls p4


if ir == 1 then

asig diskin p4, 1

elseif ir == 2 then

asig,asig2 diskin p4, 1

asig = asig + asig2


asig3 balance asig, asig

endif


afilt butterbp asig3, gkfreq1, gkband1

anada oscil 0,0,50

outs (afilt*gkvol1)*.7, (afilt*gkvol1)*.8

endin


instr 2



isamp = sr/ftlen(3)

a1 phasor isamp*p5

iamp = p4

iolaps = 150

ifna = p6

ifnb = 40

itotdur = p3

;kton ctrl7 6,7,0,15000 ;all the way down to 0 Hz

asig fog iamp,gkdens1,gktran1,a1,gkoct1,gkgband,.01,.5,.002, iolaps,
ifna,ifnb,itotdur


afilt butterbp asig, gkfreq2, gkband2

;asig tone asig, kton ;half-power point at 500 Hz


kpan ctrl7 3,1,0,1

outvalue "pan", kpan

kpanv invalue "pan"


asig=asig*(gkvol2*.9)

afilt=afilt*gkvol2


outs (asig+afilt)*(1-kpanv),(asig+afilt)*kpanv

ga = asig+afilt

gkfreq2 = 0

gkband2 = 0

gkdens1 = 0

gktran1 = 0

gkoct1 = 0

gkgband = 0


endin


instr 3

iamp = p4

ifn1 = p5

ibeg = p6

iwsize = sr/10

ioverlap = p7

irandw = iwsize*0.2

ifnb = p8

itime = p9

;iwarp = p10

;isamp = p11


ir filenchnls p10

print ir

if ir <= 1 then




awarp1,acr1 sndwarp iamp,
gkwarp,gksamp,ifn1,ibeg,iwsize,irandw,ioverlap,ifnb,gitime


abal1 balance awarp1,acr1

abal1 =abal1*.8

abal1 dcblock abal1

outs abal1*.8, abal1*.9



elseif ir == 2 then


awarp1,awarp2,acr1,acr2 sndwarpst iamp,
gkwarp,gksamp,ifn1,ibeg,iwsize,irandw,ioverlap,ifnb,gitime


abal1 balance awarp1, acr1

abal2 balance awarp2, acr2

abal1 = abal1*.8

abal2 = abal2*.7

abal1 dcblock abal1

abal2 dcblock abal2

outs abal1*.62, abal2*.5

endif


ga1 = abal1 + abal2


gkwarp = 0

gksamp = 0

gkampli = 0

gitime = 0

endin


instr 100

krevtime2 ctrl7 1,16,0,2

outvalue "revtime2",krevtime2

krev1 invalue "revtime2"

khdiff2 ctrl7 1,34,0,1

outvalue "hfreq2",khdiff2

khfreq2 invalue "hfreq2"

krevvol2 ctrl7 1,17,0,0.5

outvalue "revvol2",krevvol2

kvol1 invalue "revvol2"

krevpan2 ctrl7 1,18,0,1

outvalue "revpan2", krevpan2

kprev invalue "revpan2"


averv reverb2 ga1,krev1, khfreq2,4,30

anada = 0

outs (averv*kvol1)*(krevpan2), (averv*kvol1)*(1-krevpan2)

ga1 = 0

endin

instr 99

krevtime ctrl7 1,13,0,2

outvalue "revtime",krevtime

krev1 invalue "revtime"

khdiff ctrl7 1,33,0,1

outvalue "hfreq",khdiff

khfreq invalue "hfreq"

krevvol ctrl7 1,14,0,0.5

outvalue "revvol",krevvol

kvol1 invalue "revvol"

krevpan ctrl7 1,15,0,1

outvalue "revpan", krevpan

kprev invalue "revpan"


averv reverb2 ga,krev1, khfreq,4,30


anada = 0


outs (averv*kvol1)*(krevpan), (averv*kvol1)*(1-krevpan)

ga = 0

endin




</CsInstruments>

<CsScore>

f1 0 131072 1 "beats.wav" 0 0 0

f2 0 2097152 1 "chinelos_1.wav" 0 0 0

f3 0 2097152 1 "chinelos_2.wav" 0 0 0

f4 0 2097152 1 "Ambulance.wav" 0 0 0

f5 0 16777216 1 "CrowdTalking_2003_21.wav" 0 0 0

f6 0 4194304 1 "accident.wav" 0 0 0

f7 0 4194304 1 "ambulance_1.wav" 0 0 0

f8 0 4194304 1 "ambulance_2.wav" 0 0 0

f9 0 4194304 1 "ambulance_3.wav" 0 0 0

f10 0 4194304 1 "ambulance_3.wav" 0 0 0

f11 0 4194304 1 "ambulance_4.wav" 0 0 0

f12 0 4194304 1 "aplausos.wav" 0 0 0

f13 0 4194304 1 "bip_1.wav" 0 0 0

f14 0 4194304 1 "bips_and_clecks.wav" 0 0 0

f15 0 4194304 1 "buuu.wav" 0 0 0

f16 0 4194304 1 "buuu_2.wav" 0 0 0

f17 0 4194304 1 "estatica_1.wav" 0 0 0

f18 0 4194304 1 "fabrica_3.wav" 0 0 0

f19 0 4194304 1 "falatorio.wav" 0 0 0

f20 0 4194304 1 "falatorio_2.wav" 0 0 0


f40 0 8192 19 .5 .5 270 .5

f30 0 8192 -2 -1116 -1188 -1277 -1356 0.3 0.4 0.6 0.5

f50 0 16384 9 .5 1 0

;r 10 NN


i 150 0 3600


;i 3 0 3600 .4 17 15 40 1


i99 0 3600

i100 0 3600



e


</CsScore>

</CsoundSynthesizer>







































































































































--
*Marcelo Carneiro*
(21) 9382-3621
(21) 3497-0193
Skype: Carneiro3729
http://marceloarcos2.wixsite.com/marcelocarneiro
Csound mailing list Csound@listserv.heanet.ie
<mailto:Csound@listserv.heanet.ie>
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to
https://github.com/csound/csound/issues Discussions of bugs and features
can be posted here

Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
       https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here



--
Marcelo Carneiro
(21) 9382-3621
(21) 3497-0193
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here



--
Marcelo Carneiro
(21) 9382-3621
(21) 3497-0193
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here

Date2017-06-30 19:05
FromGuillermo Senna
SubjectRe: Crashes CsoundQt 0.94 Csound 6.09
It is probably unrelated because everyone here uses Windows and it
happens with different .csd files, but something like 30% of our
students reported similar problems with CsoundQt, v6.08 and Windows 10.
It is really difficult to make people want to use Csound with all those
impediments. And "Run in Term" works so it is not Csound.


On 30/06/17 14:46, Marcelo Carneiro de Lima wrote:
> Yosemite (mac). Actually if I start to Run the code it goes fine until a
> certain point. If I press Stop CsoundQt crashes (most of the time), or
> freezes (sometimes). Other times it stops correctly, but when I try to run
> it again it freezes. I am checking CsoundQt configurations as Joachim
> suggested and will try again...
> Thank you
> Marcelo
>
>
> 2017-06-30 14:38 GMT-03:00 Victor Lazzarini :
>
>> What OS by the way? Can you isolate the crashing instrument?
>>
>> Victor Lazzarini
>> Dean of Arts, Celtic Studies, and Philosophy
>> Maynooth University
>> Ireland
>>
>> On 30 Jun 2017, at 18:32, Marcelo Carneiro de Lima <
>> marcelo.arcos2@GMAIL.COM> wrote:
>>
>> Hi, thank you.
>> I am using Buffers 1024 and 4098 respectively.
>> The module is portaudio (blocking)
>> I was not using MIDI modules, now I am.
>> The MIDI input interface is a Korg NanoKontrol 1 (usb).
>>
>> Thanks for the tips about the code, I will check upon the documentation.
>> Bests
>> Marcelo
>>
>> 2017-06-30 13:36 GMT-03:00 joachim heintz :
>>
>>> hi marcelo -
>>>
>>> some ideas / suggestions / questions:
>>>
>>> - what are the values for Buffer Size (-b) and Hardware Buffer Size (-B)
>>> in Configure > Run?
>>> - what is the realtime audio module in the same panel?
>>> - what is the MIDI input interface? did you choose "use csound MIDI
>>> modules"?
>>>
>>> in general, i would avoid code like this:
>>>
>>> kmid ctrl7 1,1,100,15000
>>> kmid2 ctrl7 1,2,10,1000
>>> outvalue "freq1", kmid
>>> outvalue "band2", kmid2
>>> kfreq1 invalue "freq1"
>>> kband1 invalue "band2"
>>>
>>> because you use the builtin csound midi modules, send the value to the
>>> widgets and send them back to csound.
>>>
>>> csoundqt offers the possibility to directly connect a midi controller
>>> (slider or knob) with a widget: just open the properties of a widget, klick
>>> on "MIDI Learn", move a controller, and you should see that the widget is
>>> now connected to the controller.
>>>
>>> you find more information about the configuration and tips here:
>>> http://csoundqt.github.io/pages/documentation.html
>>> in particular:
>>> http://csoundqt.github.io/pages/configuring-csoundqt.html
>>> http://csoundqt.github.io/pages/tips-and-tricks.html
>>>
>>> hope this helps -
>>>         joachim
>>>
>>>
>>>
>>>
>>> On 30/06/17 17:38, Marcelo Carneiro de Lima wrote:
>>>
>>>> Hi. I keep experiencing crashes almost everytime I run the code below.
>>>> I have debugged it and couldn't find anything that could be causing it.
>>>> I am trying to improvise changing some parameters in real time using a
>>>> NanoKontrol device with widgets and triggering instruments with Live
>>>> Events.
>>>> Thanks.
>>>> Bests
>>>> Marcelo
>>>>
>>>> MacMini, i7 quad, 16gb, Yosemite.
>>>>
>>>> 
>>>>
>>>> 
>>>>
>>>> ; Select audio/midi flags here according to platform
>>>>
>>>> -odac ;;;realtime audio out
>>>>
>>>> -iadc ;;;uncomment -iadc if realtime audio input is needed too
>>>>
>>>> ; For Non-realtime ouput leave only the line below:
>>>>
>>>> ; -o tone.wav -W ;;; for file output any platform
>>>>
>>>> 
>>>>
>>>> 
>>>>
>>>>
>>>> sr = 48000
>>>>
>>>> ksmps = 256
>>>>
>>>> 0dbfs = 1
>>>>
>>>> nchnls = 2
>>>>
>>>>
>>>> ;git1 ftgen 1,0,131072,1,"beats.wav",0,0,0
>>>>
>>>> ;git2 ftgen 2,0,1024,19,.5,.5,270,.5
>>>>
>>>> ;git3 ftgen 3,0,131072,1,"chinelos_1.wav",0,0,0
>>>>
>>>> ;git4 ftgen 4,0,131072,1,"chinelos_2.wav",0,0,0
>>>>
>>>> ga init 0
>>>>
>>>> ga1 init 0
>>>>
>>>> gkfreq1 init 0
>>>>
>>>> gkfreq2 init 0
>>>>
>>>> gkband1 init 0
>>>>
>>>> gkband2 init 0
>>>>
>>>> gkdens1 init 0
>>>>
>>>> gktran1 init 0
>>>>
>>>> gkoct1 init 0
>>>>
>>>> gkgband init 0
>>>>
>>>>
>>>> gkwarp init 0
>>>>
>>>> gksamp init 0
>>>>
>>>> gkampli init 0
>>>>
>>>> gitime init 0
>>>>
>>>>
>>>> gkvol1 init 0
>>>>
>>>> gkvol2 init 0
>>>>
>>>> gkvol3 init 0
>>>>
>>>> ;gaply init 0
>>>>
>>>>
>>>> ;########################################################
>>>>
>>>> instr 150
>>>>
>>>>
>>>>
>>>> ;########### FILTRO 1 ####################
>>>>
>>>>
>>>> kmid ctrl7 1,1,100,15000
>>>>
>>>> kmid2 ctrl7 1,2,10,1000
>>>>
>>>>
>>>>
>>>>
>>>> outvalue "freq1", kmid
>>>>
>>>> outvalue "band2", kmid2
>>>>
>>>>
>>>> kfreq1 invalue "freq1"
>>>>
>>>> kband1 invalue "band2"
>>>>
>>>>
>>>> ;########### FILTRO 2 ####################
>>>>
>>>>
>>>> kmid3 ctrl7 1,3,100,15000
>>>>
>>>> kmid4 ctrl7 1,4,10,1000
>>>>
>>>>
>>>>
>>>> outvalue "freq3", kmid3
>>>>
>>>> outvalue "band3", kmid4
>>>>
>>>> kfreq2 invalue "freq3"
>>>>
>>>> kband3 invalue "band3"
>>>>
>>>> ;########### GRAOS ######################
>>>>
>>>>
>>>> kdens ctrl7 1,5,10,100
>>>>
>>>> ktran ctrl7 1,6,-2,4
>>>>
>>>> koct ctrl7 1,7,0,10
>>>>
>>>> kbandg ctrl7 1,8,0,10
>>>>
>>>>
>>>> outvalue "dens", kdens
>>>>
>>>> outvalue "tran", ktran
>>>>
>>>> outvalue "oct", koct
>>>>
>>>> outvalue "bandg", kbandg
>>>>
>>>>
>>>>
>>>> kdens1 invalue "dens"
>>>>
>>>> ktran1 invalue "tran"
>>>>
>>>> koct1 invalue "oct"
>>>>
>>>> kbandg1 invalue "bandg"
>>>>
>>>>
>>>> ;############## WARP ###################
>>>>
>>>>
>>>> kwarp ctrl7 1,10,0,2
>>>>
>>>> ksamp ctrl7 1,11,0.2,3
>>>>
>>>> kampli ctrl7 1,12,0,1.1
>>>>
>>>> itime ctrl7 1,32,0,1
>>>>
>>>>
>>>>
>>>> outvalue "warp", kwarp
>>>>
>>>> outvalue "samp", ksamp
>>>>
>>>> outvalue "ampli", kampli
>>>>
>>>> outvalue "time", itime
>>>>
>>>>
>>>> kwarpin invalue "warp"
>>>>
>>>> ksampin invalue "samp"
>>>>
>>>> kampli1 invalue "ampli"
>>>>
>>>> itime2 invalue "time"
>>>>
>>>>
>>>>
>>>> ;################ VOLUME ################
>>>>
>>>> ;volume3
>>>>
>>>>
>>>> kvol3 ctrl7 3,12,0.001,2
>>>>
>>>> outvalue "vol3",kvol3
>>>>
>>>> kvolume3 invalue "vol3"
>>>>
>>>>
>>>> ;volume 2
>>>>
>>>>
>>>> kvol2 ctrl7 3,11,0.001,1
>>>>
>>>> outvalue "vol2",kvol2
>>>>
>>>> kvolume2 invalue "vol2"
>>>>
>>>>
>>>> ;volume 1
>>>>
>>>>
>>>> kvol1 ctrl7 3,10,0.001,1
>>>>
>>>> outvalue "vol1",kvol1
>>>>
>>>> kvolume1 invalue "vol1"
>>>>
>>>>
>>>> ;########### GLOBAL ####################
>>>>
>>>>
>>>> gkfreq1 = kfreq1
>>>>
>>>> gkfreq2 = kfreq2
>>>>
>>>> gkband1 = kband1
>>>>
>>>> gkband2 = kband3
>>>>
>>>>
>>>> gkdens1 = kdens1
>>>>
>>>> gktran1 = ktran1
>>>>
>>>> gkoct1 = koct1
>>>>
>>>> gkgband = kbandg1
>>>>
>>>>
>>>> gkwarp = kwarpin
>>>>
>>>> gksamp = ksampin
>>>>
>>>> gkampli = kampli1
>>>>
>>>> gitime = itime2
>>>>
>>>>
>>>> gkvol1 = kvolume1
>>>>
>>>> gkvol2 = kvolume2
>>>>
>>>> gkvol3 = kvolume3
>>>>
>>>>
>>>> endin
>>>>
>>>>
>>>> instr 1
>>>>
>>>>
>>>> ir filenchnls p4
>>>>
>>>>
>>>> if ir == 1 then
>>>>
>>>> asig diskin p4, 1
>>>>
>>>> elseif ir == 2 then
>>>>
>>>> asig,asig2 diskin p4, 1
>>>>
>>>> asig = asig + asig2
>>>>
>>>>
>>>> asig3 balance asig, asig
>>>>
>>>> endif
>>>>
>>>>
>>>> afilt butterbp asig3, gkfreq1, gkband1
>>>>
>>>> anada oscil 0,0,50
>>>>
>>>> outs (afilt*gkvol1)*.7, (afilt*gkvol1)*.8
>>>>
>>>> endin
>>>>
>>>>
>>>> instr 2
>>>>
>>>>
>>>>
>>>> isamp = sr/ftlen(3)
>>>>
>>>> a1 phasor isamp*p5
>>>>
>>>> iamp = p4
>>>>
>>>> iolaps = 150
>>>>
>>>> ifna = p6
>>>>
>>>> ifnb = 40
>>>>
>>>> itotdur = p3
>>>>
>>>> ;kton ctrl7 6,7,0,15000 ;all the way down to 0 Hz
>>>>
>>>> asig fog iamp,gkdens1,gktran1,a1,gkoct1,gkgband,.01,.5,.002, iolaps,
>>>> ifna,ifnb,itotdur
>>>>
>>>>
>>>> afilt butterbp asig, gkfreq2, gkband2
>>>>
>>>> ;asig tone asig, kton ;half-power point at 500 Hz
>>>>
>>>>
>>>> kpan ctrl7 3,1,0,1
>>>>
>>>> outvalue "pan", kpan
>>>>
>>>> kpanv invalue "pan"
>>>>
>>>>
>>>> asig=asig*(gkvol2*.9)
>>>>
>>>> afilt=afilt*gkvol2
>>>>
>>>>
>>>> outs (asig+afilt)*(1-kpanv),(asig+afilt)*kpanv
>>>>
>>>> ga = asig+afilt
>>>>
>>>> gkfreq2 = 0
>>>>
>>>> gkband2 = 0
>>>>
>>>> gkdens1 = 0
>>>>
>>>> gktran1 = 0
>>>>
>>>> gkoct1 = 0
>>>>
>>>> gkgband = 0
>>>>
>>>>
>>>> endin
>>>>
>>>>
>>>> instr 3
>>>>
>>>> iamp = p4
>>>>
>>>> ifn1 = p5
>>>>
>>>> ibeg = p6
>>>>
>>>> iwsize = sr/10
>>>>
>>>> ioverlap = p7
>>>>
>>>> irandw = iwsize*0.2
>>>>
>>>> ifnb = p8
>>>>
>>>> itime = p9
>>>>
>>>> ;iwarp = p10
>>>>
>>>> ;isamp = p11
>>>>
>>>>
>>>> ir filenchnls p10
>>>>
>>>> print ir
>>>>
>>>> if ir <= 1 then
>>>>
>>>>
>>>>
>>>>
>>>> awarp1,acr1 sndwarp iamp,
>>>> gkwarp,gksamp,ifn1,ibeg,iwsize,irandw,ioverlap,ifnb,gitime
>>>>
>>>>
>>>> abal1 balance awarp1,acr1
>>>>
>>>> abal1 =abal1*.8
>>>>
>>>> abal1 dcblock abal1
>>>>
>>>> outs abal1*.8, abal1*.9
>>>>
>>>>
>>>>
>>>> elseif ir == 2 then
>>>>
>>>>
>>>> awarp1,awarp2,acr1,acr2 sndwarpst iamp,
>>>> gkwarp,gksamp,ifn1,ibeg,iwsize,irandw,ioverlap,ifnb,gitime
>>>>
>>>>
>>>> abal1 balance awarp1, acr1
>>>>
>>>> abal2 balance awarp2, acr2
>>>>
>>>> abal1 = abal1*.8
>>>>
>>>> abal2 = abal2*.7
>>>>
>>>> abal1 dcblock abal1
>>>>
>>>> abal2 dcblock abal2
>>>>
>>>> outs abal1*.62, abal2*.5
>>>>
>>>> endif
>>>>
>>>>
>>>> ga1 = abal1 + abal2
>>>>
>>>>
>>>> gkwarp = 0
>>>>
>>>> gksamp = 0
>>>>
>>>> gkampli = 0
>>>>
>>>> gitime = 0
>>>>
>>>> endin
>>>>
>>>>
>>>> instr 100
>>>>
>>>> krevtime2 ctrl7 1,16,0,2
>>>>
>>>> outvalue "revtime2",krevtime2
>>>>
>>>> krev1 invalue "revtime2"
>>>>
>>>> khdiff2 ctrl7 1,34,0,1
>>>>
>>>> outvalue "hfreq2",khdiff2
>>>>
>>>> khfreq2 invalue "hfreq2"
>>>>
>>>> krevvol2 ctrl7 1,17,0,0.5
>>>>
>>>> outvalue "revvol2",krevvol2
>>>>
>>>> kvol1 invalue "revvol2"
>>>>
>>>> krevpan2 ctrl7 1,18,0,1
>>>>
>>>> outvalue "revpan2", krevpan2
>>>>
>>>> kprev invalue "revpan2"
>>>>
>>>>
>>>> averv reverb2 ga1,krev1, khfreq2,4,30
>>>>
>>>> anada = 0
>>>>
>>>> outs (averv*kvol1)*(krevpan2), (averv*kvol1)*(1-krevpan2)
>>>>
>>>> ga1 = 0
>>>>
>>>> endin
>>>>
>>>> instr 99
>>>>
>>>> krevtime ctrl7 1,13,0,2
>>>>
>>>> outvalue "revtime",krevtime
>>>>
>>>> krev1 invalue "revtime"
>>>>
>>>> khdiff ctrl7 1,33,0,1
>>>>
>>>> outvalue "hfreq",khdiff
>>>>
>>>> khfreq invalue "hfreq"
>>>>
>>>> krevvol ctrl7 1,14,0,0.5
>>>>
>>>> outvalue "revvol",krevvol
>>>>
>>>> kvol1 invalue "revvol"
>>>>
>>>> krevpan ctrl7 1,15,0,1
>>>>
>>>> outvalue "revpan", krevpan
>>>>
>>>> kprev invalue "revpan"
>>>>
>>>>
>>>> averv reverb2 ga,krev1, khfreq,4,30
>>>>
>>>>
>>>> anada = 0
>>>>
>>>>
>>>> outs (averv*kvol1)*(krevpan), (averv*kvol1)*(1-krevpan)
>>>>
>>>> ga = 0
>>>>
>>>> endin
>>>>
>>>>
>>>>
>>>>
>>>> 
>>>>
>>>> 
>>>>
>>>> f1 0 131072 1 "beats.wav" 0 0 0
>>>>
>>>> f2 0 2097152 1 "chinelos_1.wav" 0 0 0
>>>>
>>>> f3 0 2097152 1 "chinelos_2.wav" 0 0 0
>>>>
>>>> f4 0 2097152 1 "Ambulance.wav" 0 0 0
>>>>
>>>> f5 0 16777216 1 "CrowdTalking_2003_21.wav" 0 0 0
>>>>
>>>> f6 0 4194304 1 "accident.wav" 0 0 0
>>>>
>>>> f7 0 4194304 1 "ambulance_1.wav" 0 0 0
>>>>
>>>> f8 0 4194304 1 "ambulance_2.wav" 0 0 0
>>>>
>>>> f9 0 4194304 1 "ambulance_3.wav" 0 0 0
>>>>
>>>> f10 0 4194304 1 "ambulance_3.wav" 0 0 0
>>>>
>>>> f11 0 4194304 1 "ambulance_4.wav" 0 0 0
>>>>
>>>> f12 0 4194304 1 "aplausos.wav" 0 0 0
>>>>
>>>> f13 0 4194304 1 "bip_1.wav" 0 0 0
>>>>
>>>> f14 0 4194304 1 "bips_and_clecks.wav" 0 0 0
>>>>
>>>> f15 0 4194304 1 "buuu.wav" 0 0 0
>>>>
>>>> f16 0 4194304 1 "buuu_2.wav" 0 0 0
>>>>
>>>> f17 0 4194304 1 "estatica_1.wav" 0 0 0
>>>>
>>>> f18 0 4194304 1 "fabrica_3.wav" 0 0 0
>>>>
>>>> f19 0 4194304 1 "falatorio.wav" 0 0 0
>>>>
>>>> f20 0 4194304 1 "falatorio_2.wav" 0 0 0
>>>>
>>>>
>>>> f40 0 8192 19 .5 .5 270 .5
>>>>
>>>> f30 0 8192 -2 -1116 -1188 -1277 -1356 0.3 0.4 0.6 0.5
>>>>
>>>> f50 0 16384 9 .5 1 0
>>>>
>>>> ;r 10 NN
>>>>
>>>>
>>>> i 150 0 3600
>>>>
>>>>
>>>> ;i 3 0 3600 .4 17 15 40 1
>>>>
>>>>
>>>> i99 0 3600
>>>>
>>>> i100 0 3600
>>>>
>>>>
>>>>
>>>> e
>>>>
>>>>
>>>> 
>>>>
>>>> 
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>> ​
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>> --
>>>> *Marcelo Carneiro*
>>>> (21) 9382-3621
>>>> (21) 3497-0193
>>>> Skype: Carneiro3729
>>>> http://marceloarcos2.wixsite.com/marcelocarneiro
>>>> Csound mailing list Csound@listserv.heanet.ie
>>>> 
>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to
>>>> https://github.com/csound/csound/issues Discussions of bugs and features
>>>> can be posted here
>>>>
>>> Csound mailing list
>>> Csound@listserv.heanet.ie
>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>> Send bugs reports to
>>>        https://github.com/csound/csound/issues
>>> Discussions of bugs and features can be posted here
>>>
>>
>>
>> --
>> *Marcelo Carneiro*
>> (21) 9382-3621
>> (21) 3497-0193
>> Skype: Carneiro3729
>> http://marceloarcos2.wixsite.com/marcelocarneiro
>> Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/
>> cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/
>> csound/issues Discussions of bugs and features can be posted here
>>
>> Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/
>> cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/
>> csound/issues Discussions of bugs and features can be posted here
>>
>
>

Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Date2017-06-30 20:47
FromVictor Lazzarini
SubjectRe: Crashes CsoundQt 0.94 Csound 6.09
Ok, we should check this as we are trying to release a 6.09 bugfix. If you could identify the point, it would be helpful.

I suspect it is not to do with configurations.

Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy
Maynooth University
Ireland

On 30 Jun 2017, at 18:46, Marcelo Carneiro de Lima <marcelo.arcos2@GMAIL.COM> wrote:

Yosemite (mac). Actually if I start to Run the code it goes fine until a certain point. If I press Stop CsoundQt crashes (most of the time), or freezes (sometimes). Other times it stops correctly, but when I try to run it again it freezes. I am checking CsoundQt configurations as Joachim suggested and will try again...
Thank you
Marcelo


2017-06-30 14:38 GMT-03:00 Victor Lazzarini <Victor.Lazzarini@nuim.ie>:
What OS by the way? Can you isolate the crashing instrument?

Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy
Maynooth University
Ireland

On 30 Jun 2017, at 18:32, Marcelo Carneiro de Lima <marcelo.arcos2@GMAIL.COM> wrote:

Hi, thank you.
I am using Buffers 1024 and 4098 respectively. 
The module is portaudio (blocking)
I was not using MIDI modules, now I am. 
The MIDI input interface is a Korg NanoKontrol 1 (usb).

Thanks for the tips about the code, I will check upon the documentation.
Bests
Marcelo

2017-06-30 13:36 GMT-03:00 joachim heintz <jh@joachimheintz.de>:
hi marcelo -

some ideas / suggestions / questions:

- what are the values for Buffer Size (-b) and Hardware Buffer Size (-B) in Configure > Run?
- what is the realtime audio module in the same panel?
- what is the MIDI input interface? did you choose "use csound MIDI modules"?

in general, i would avoid code like this:

kmid ctrl7 1,1,100,15000
kmid2 ctrl7 1,2,10,1000
outvalue "freq1", kmid
outvalue "band2", kmid2
kfreq1 invalue "freq1"
kband1 invalue "band2"

because you use the builtin csound midi modules, send the value to the widgets and send them back to csound.

csoundqt offers the possibility to directly connect a midi controller (slider or knob) with a widget: just open the properties of a widget, klick on "MIDI Learn", move a controller, and you should see that the widget is now connected to the controller.

you find more information about the configuration and tips here:
http://csoundqt.github.io/pages/documentation.html
in particular:
http://csoundqt.github.io/pages/configuring-csoundqt.html
http://csoundqt.github.io/pages/tips-and-tricks.html

hope this helps -
        joachim




On 30/06/17 17:38, Marcelo Carneiro de Lima wrote:
Hi. I keep experiencing crashes almost everytime I run the code below.
I have debugged it and couldn't find anything that could be causing it.
I am trying to improvise changing some parameters in real time using a
NanoKontrol device with widgets and triggering instruments with Live Events.
Thanks.
Bests
Marcelo

MacMini, i7 quad, 16gb, Yosemite.

<CsoundSynthesizer>

<CsOptions>

; Select audio/midi flags here according to platform

-odac ;;;realtime audio out

-iadc ;;;uncomment -iadc if realtime audio input is needed too

; For Non-realtime ouput leave only the line below:

; -o tone.wav -W ;;; for file output any platform

</CsOptions>

<CsInstruments>


sr = 48000

ksmps = 256

0dbfs = 1

nchnls = 2


;git1 ftgen 1,0,131072,1,"beats.wav",0,0,0

;git2 ftgen 2,0,1024,19,.5,.5,270,.5

;git3 ftgen 3,0,131072,1,"chinelos_1.wav",0,0,0

;git4 ftgen 4,0,131072,1,"chinelos_2.wav",0,0,0

ga init 0

ga1 init 0

gkfreq1 init 0

gkfreq2 init 0

gkband1 init 0

gkband2 init 0

gkdens1 init 0

gktran1 init 0

gkoct1 init 0

gkgband init 0


gkwarp init 0

gksamp init 0

gkampli init 0

gitime init 0


gkvol1 init 0

gkvol2 init 0

gkvol3 init 0

;gaply init 0


;########################################################

instr 150



;########### FILTRO 1 ####################


kmid ctrl7 1,1,100,15000

kmid2 ctrl7 1,2,10,1000




outvalue "freq1", kmid

outvalue "band2", kmid2


kfreq1 invalue "freq1"

kband1 invalue "band2"


;########### FILTRO 2 ####################


kmid3 ctrl7 1,3,100,15000

kmid4 ctrl7 1,4,10,1000



outvalue "freq3", kmid3

outvalue "band3", kmid4

kfreq2 invalue "freq3"

kband3 invalue "band3"

;########### GRAOS ######################


kdens ctrl7 1,5,10,100

ktran ctrl7 1,6,-2,4

koct ctrl7 1,7,0,10

kbandg ctrl7 1,8,0,10


outvalue "dens", kdens

outvalue "tran", ktran

outvalue "oct", koct

outvalue "bandg", kbandg



kdens1 invalue "dens"

ktran1 invalue "tran"

koct1 invalue "oct"

kbandg1 invalue "bandg"


;############## WARP ###################


kwarp ctrl7 1,10,0,2

ksamp ctrl7 1,11,0.2,3

kampli ctrl7 1,12,0,1.1

itime ctrl7 1,32,0,1



outvalue "warp", kwarp

outvalue "samp", ksamp

outvalue "ampli", kampli

outvalue "time", itime


kwarpin invalue "warp"

ksampin invalue "samp"

kampli1 invalue "ampli"

itime2 invalue "time"



;################ VOLUME ################

;volume3


kvol3 ctrl7 3,12,0.001,2

outvalue "vol3",kvol3

kvolume3 invalue "vol3"


;volume 2


kvol2 ctrl7 3,11,0.001,1

outvalue "vol2",kvol2

kvolume2 invalue "vol2"


;volume 1


kvol1 ctrl7 3,10,0.001,1

outvalue "vol1",kvol1

kvolume1 invalue "vol1"


;########### GLOBAL ####################


gkfreq1 = kfreq1

gkfreq2 = kfreq2

gkband1 = kband1

gkband2 = kband3


gkdens1 = kdens1

gktran1 = ktran1

gkoct1 = koct1

gkgband = kbandg1


gkwarp = kwarpin

gksamp = ksampin

gkampli = kampli1

gitime = itime2


gkvol1 = kvolume1

gkvol2 = kvolume2

gkvol3 = kvolume3


endin


instr 1


ir filenchnls p4


if ir == 1 then

asig diskin p4, 1

elseif ir == 2 then

asig,asig2 diskin p4, 1

asig = asig + asig2


asig3 balance asig, asig

endif


afilt butterbp asig3, gkfreq1, gkband1

anada oscil 0,0,50

outs (afilt*gkvol1)*.7, (afilt*gkvol1)*.8

endin


instr 2



isamp = sr/ftlen(3)

a1 phasor isamp*p5

iamp = p4

iolaps = 150

ifna = p6

ifnb = 40

itotdur = p3

;kton ctrl7 6,7,0,15000 ;all the way down to 0 Hz

asig fog iamp,gkdens1,gktran1,a1,gkoct1,gkgband,.01,.5,.002, iolaps,
ifna,ifnb,itotdur


afilt butterbp asig, gkfreq2, gkband2

;asig tone asig, kton ;half-power point at 500 Hz


kpan ctrl7 3,1,0,1

outvalue "pan", kpan

kpanv invalue "pan"


asig=asig*(gkvol2*.9)

afilt=afilt*gkvol2


outs (asig+afilt)*(1-kpanv),(asig+afilt)*kpanv

ga = asig+afilt

gkfreq2 = 0

gkband2 = 0

gkdens1 = 0

gktran1 = 0

gkoct1 = 0

gkgband = 0


endin


instr 3

iamp = p4

ifn1 = p5

ibeg = p6

iwsize = sr/10

ioverlap = p7

irandw = iwsize*0.2

ifnb = p8

itime = p9

;iwarp = p10

;isamp = p11


ir filenchnls p10

print ir

if ir <= 1 then




awarp1,acr1 sndwarp iamp,
gkwarp,gksamp,ifn1,ibeg,iwsize,irandw,ioverlap,ifnb,gitime


abal1 balance awarp1,acr1

abal1 =abal1*.8

abal1 dcblock abal1

outs abal1*.8, abal1*.9



elseif ir == 2 then


awarp1,awarp2,acr1,acr2 sndwarpst iamp,
gkwarp,gksamp,ifn1,ibeg,iwsize,irandw,ioverlap,ifnb,gitime


abal1 balance awarp1, acr1

abal2 balance awarp2, acr2

abal1 = abal1*.8

abal2 = abal2*.7

abal1 dcblock abal1

abal2 dcblock abal2

outs abal1*.62, abal2*.5

endif


ga1 = abal1 + abal2


gkwarp = 0

gksamp = 0

gkampli = 0

gitime = 0

endin


instr 100

krevtime2 ctrl7 1,16,0,2

outvalue "revtime2",krevtime2

krev1 invalue "revtime2"

khdiff2 ctrl7 1,34,0,1

outvalue "hfreq2",khdiff2

khfreq2 invalue "hfreq2"

krevvol2 ctrl7 1,17,0,0.5

outvalue "revvol2",krevvol2

kvol1 invalue "revvol2"

krevpan2 ctrl7 1,18,0,1

outvalue "revpan2", krevpan2

kprev invalue "revpan2"


averv reverb2 ga1,krev1, khfreq2,4,30

anada = 0

outs (averv*kvol1)*(krevpan2), (averv*kvol1)*(1-krevpan2)

ga1 = 0

endin

instr 99

krevtime ctrl7 1,13,0,2

outvalue "revtime",krevtime

krev1 invalue "revtime"

khdiff ctrl7 1,33,0,1

outvalue "hfreq",khdiff

khfreq invalue "hfreq"

krevvol ctrl7 1,14,0,0.5

outvalue "revvol",krevvol

kvol1 invalue "revvol"

krevpan ctrl7 1,15,0,1

outvalue "revpan", krevpan

kprev invalue "revpan"


averv reverb2 ga,krev1, khfreq,4,30


anada = 0


outs (averv*kvol1)*(krevpan), (averv*kvol1)*(1-krevpan)

ga = 0

endin




</CsInstruments>

<CsScore>

f1 0 131072 1 "beats.wav" 0 0 0

f2 0 2097152 1 "chinelos_1.wav" 0 0 0

f3 0 2097152 1 "chinelos_2.wav" 0 0 0

f4 0 2097152 1 "Ambulance.wav" 0 0 0

f5 0 16777216 1 "CrowdTalking_2003_21.wav" 0 0 0

f6 0 4194304 1 "accident.wav" 0 0 0

f7 0 4194304 1 "ambulance_1.wav" 0 0 0

f8 0 4194304 1 "ambulance_2.wav" 0 0 0

f9 0 4194304 1 "ambulance_3.wav" 0 0 0

f10 0 4194304 1 "ambulance_3.wav" 0 0 0

f11 0 4194304 1 "ambulance_4.wav" 0 0 0

f12 0 4194304 1 "aplausos.wav" 0 0 0

f13 0 4194304 1 "bip_1.wav" 0 0 0

f14 0 4194304 1 "bips_and_clecks.wav" 0 0 0

f15 0 4194304 1 "buuu.wav" 0 0 0

f16 0 4194304 1 "buuu_2.wav" 0 0 0

f17 0 4194304 1 "estatica_1.wav" 0 0 0

f18 0 4194304 1 "fabrica_3.wav" 0 0 0

f19 0 4194304 1 "falatorio.wav" 0 0 0

f20 0 4194304 1 "falatorio_2.wav" 0 0 0


f40 0 8192 19 .5 .5 270 .5

f30 0 8192 -2 -1116 -1188 -1277 -1356 0.3 0.4 0.6 0.5

f50 0 16384 9 .5 1 0

;r 10 NN


i 150 0 3600


;i 3 0 3600 .4 17 15 40 1


i99 0 3600

i100 0 3600



e


</CsScore>

</CsoundSynthesizer>







































































































































--
*Marcelo Carneiro*
(21) 9382-3621
(21) 3497-0193
Skype: Carneiro3729
http://marceloarcos2.wixsite.com/marcelocarneiro
Csound mailing list Csound@listserv.heanet.ie
<mailto:Csound@listserv.heanet.ie>
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to
https://github.com/csound/csound/issues Discussions of bugs and features
can be posted here

Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
       https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here



--
Marcelo Carneiro
(21) 9382-3621
(21) 3497-0193
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here



--
Marcelo Carneiro
(21) 9382-3621
(21) 3497-0193
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here

Date2017-06-30 20:51
FromVictor Lazzarini
SubjectRe: Crashes CsoundQt 0.94 Csound 6.09
I guess on Windows WinXsound then is a better bet, but you lose interaction then.
It is a shame that it is not stable as in MacOS and Linux. It would be good to have it fixed
though.

Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy
Maynooth University
Ireland

> On 30 Jun 2017, at 19:05, Guillermo Senna  wrote:
> 
> It is probably unrelated because everyone here uses Windows and it
> happens with different .csd files, but something like 30% of our
> students reported similar problems with CsoundQt, v6.08 and Windows 10.
> It is really difficult to make people want to use Csound with all those
> impediments. And "Run in Term" works so it is not Csound.
> 
> 
>> On 30/06/17 14:46, Marcelo Carneiro de Lima wrote:
>> Yosemite (mac). Actually if I start to Run the code it goes fine until a
>> certain point. If I press Stop CsoundQt crashes (most of the time), or
>> freezes (sometimes). Other times it stops correctly, but when I try to run
>> it again it freezes. I am checking CsoundQt configurations as Joachim
>> suggested and will try again...
>> Thank you
>> Marcelo
>> 
>> 
>> 2017-06-30 14:38 GMT-03:00 Victor Lazzarini :
>> 
>>> What OS by the way? Can you isolate the crashing instrument?
>>> 
>>> Victor Lazzarini
>>> Dean of Arts, Celtic Studies, and Philosophy
>>> Maynooth University
>>> Ireland
>>> 
>>> On 30 Jun 2017, at 18:32, Marcelo Carneiro de Lima <
>>> marcelo.arcos2@GMAIL.COM> wrote:
>>> 
>>> Hi, thank you.
>>> I am using Buffers 1024 and 4098 respectively.
>>> The module is portaudio (blocking)
>>> I was not using MIDI modules, now I am.
>>> The MIDI input interface is a Korg NanoKontrol 1 (usb).
>>> 
>>> Thanks for the tips about the code, I will check upon the documentation.
>>> Bests
>>> Marcelo
>>> 
>>> 2017-06-30 13:36 GMT-03:00 joachim heintz :
>>> 
>>>> hi marcelo -
>>>> 
>>>> some ideas / suggestions / questions:
>>>> 
>>>> - what are the values for Buffer Size (-b) and Hardware Buffer Size (-B)
>>>> in Configure > Run?
>>>> - what is the realtime audio module in the same panel?
>>>> - what is the MIDI input interface? did you choose "use csound MIDI
>>>> modules"?
>>>> 
>>>> in general, i would avoid code like this:
>>>> 
>>>> kmid ctrl7 1,1,100,15000
>>>> kmid2 ctrl7 1,2,10,1000
>>>> outvalue "freq1", kmid
>>>> outvalue "band2", kmid2
>>>> kfreq1 invalue "freq1"
>>>> kband1 invalue "band2"
>>>> 
>>>> because you use the builtin csound midi modules, send the value to the
>>>> widgets and send them back to csound.
>>>> 
>>>> csoundqt offers the possibility to directly connect a midi controller
>>>> (slider or knob) with a widget: just open the properties of a widget, klick
>>>> on "MIDI Learn", move a controller, and you should see that the widget is
>>>> now connected to the controller.
>>>> 
>>>> you find more information about the configuration and tips here:
>>>> http://csoundqt.github.io/pages/documentation.html
>>>> in particular:
>>>> http://csoundqt.github.io/pages/configuring-csoundqt.html
>>>> http://csoundqt.github.io/pages/tips-and-tricks.html
>>>> 
>>>> hope this helps -
>>>>        joachim
>>>> 
>>>> 
>>>> 
>>>> 
>>>>> On 30/06/17 17:38, Marcelo Carneiro de Lima wrote:
>>>>> 
>>>>> Hi. I keep experiencing crashes almost everytime I run the code below.
>>>>> I have debugged it and couldn't find anything that could be causing it.
>>>>> I am trying to improvise changing some parameters in real time using a
>>>>> NanoKontrol device with widgets and triggering instruments with Live
>>>>> Events.
>>>>> Thanks.
>>>>> Bests
>>>>> Marcelo
>>>>> 
>>>>> MacMini, i7 quad, 16gb, Yosemite.
>>>>> 
>>>>> 
>>>>> 
>>>>> 
>>>>> 
>>>>> ; Select audio/midi flags here according to platform
>>>>> 
>>>>> -odac ;;;realtime audio out
>>>>> 
>>>>> -iadc ;;;uncomment -iadc if realtime audio input is needed too
>>>>> 
>>>>> ; For Non-realtime ouput leave only the line below:
>>>>> 
>>>>> ; -o tone.wav -W ;;; for file output any platform
>>>>> 
>>>>> 
>>>>> 
>>>>> 
>>>>> 
>>>>> 
>>>>> sr = 48000
>>>>> 
>>>>> ksmps = 256
>>>>> 
>>>>> 0dbfs = 1
>>>>> 
>>>>> nchnls = 2
>>>>> 
>>>>> 
>>>>> ;git1 ftgen 1,0,131072,1,"beats.wav",0,0,0
>>>>> 
>>>>> ;git2 ftgen 2,0,1024,19,.5,.5,270,.5
>>>>> 
>>>>> ;git3 ftgen 3,0,131072,1,"chinelos_1.wav",0,0,0
>>>>> 
>>>>> ;git4 ftgen 4,0,131072,1,"chinelos_2.wav",0,0,0
>>>>> 
>>>>> ga init 0
>>>>> 
>>>>> ga1 init 0
>>>>> 
>>>>> gkfreq1 init 0
>>>>> 
>>>>> gkfreq2 init 0
>>>>> 
>>>>> gkband1 init 0
>>>>> 
>>>>> gkband2 init 0
>>>>> 
>>>>> gkdens1 init 0
>>>>> 
>>>>> gktran1 init 0
>>>>> 
>>>>> gkoct1 init 0
>>>>> 
>>>>> gkgband init 0
>>>>> 
>>>>> 
>>>>> gkwarp init 0
>>>>> 
>>>>> gksamp init 0
>>>>> 
>>>>> gkampli init 0
>>>>> 
>>>>> gitime init 0
>>>>> 
>>>>> 
>>>>> gkvol1 init 0
>>>>> 
>>>>> gkvol2 init 0
>>>>> 
>>>>> gkvol3 init 0
>>>>> 
>>>>> ;gaply init 0
>>>>> 
>>>>> 
>>>>> ;########################################################
>>>>> 
>>>>> instr 150
>>>>> 
>>>>> 
>>>>> 
>>>>> ;########### FILTRO 1 ####################
>>>>> 
>>>>> 
>>>>> kmid ctrl7 1,1,100,15000
>>>>> 
>>>>> kmid2 ctrl7 1,2,10,1000
>>>>> 
>>>>> 
>>>>> 
>>>>> 
>>>>> outvalue "freq1", kmid
>>>>> 
>>>>> outvalue "band2", kmid2
>>>>> 
>>>>> 
>>>>> kfreq1 invalue "freq1"
>>>>> 
>>>>> kband1 invalue "band2"
>>>>> 
>>>>> 
>>>>> ;########### FILTRO 2 ####################
>>>>> 
>>>>> 
>>>>> kmid3 ctrl7 1,3,100,15000
>>>>> 
>>>>> kmid4 ctrl7 1,4,10,1000
>>>>> 
>>>>> 
>>>>> 
>>>>> outvalue "freq3", kmid3
>>>>> 
>>>>> outvalue "band3", kmid4
>>>>> 
>>>>> kfreq2 invalue "freq3"
>>>>> 
>>>>> kband3 invalue "band3"
>>>>> 
>>>>> ;########### GRAOS ######################
>>>>> 
>>>>> 
>>>>> kdens ctrl7 1,5,10,100
>>>>> 
>>>>> ktran ctrl7 1,6,-2,4
>>>>> 
>>>>> koct ctrl7 1,7,0,10
>>>>> 
>>>>> kbandg ctrl7 1,8,0,10
>>>>> 
>>>>> 
>>>>> outvalue "dens", kdens
>>>>> 
>>>>> outvalue "tran", ktran
>>>>> 
>>>>> outvalue "oct", koct
>>>>> 
>>>>> outvalue "bandg", kbandg
>>>>> 
>>>>> 
>>>>> 
>>>>> kdens1 invalue "dens"
>>>>> 
>>>>> ktran1 invalue "tran"
>>>>> 
>>>>> koct1 invalue "oct"
>>>>> 
>>>>> kbandg1 invalue "bandg"
>>>>> 
>>>>> 
>>>>> ;############## WARP ###################
>>>>> 
>>>>> 
>>>>> kwarp ctrl7 1,10,0,2
>>>>> 
>>>>> ksamp ctrl7 1,11,0.2,3
>>>>> 
>>>>> kampli ctrl7 1,12,0,1.1
>>>>> 
>>>>> itime ctrl7 1,32,0,1
>>>>> 
>>>>> 
>>>>> 
>>>>> outvalue "warp", kwarp
>>>>> 
>>>>> outvalue "samp", ksamp
>>>>> 
>>>>> outvalue "ampli", kampli
>>>>> 
>>>>> outvalue "time", itime
>>>>> 
>>>>> 
>>>>> kwarpin invalue "warp"
>>>>> 
>>>>> ksampin invalue "samp"
>>>>> 
>>>>> kampli1 invalue "ampli"
>>>>> 
>>>>> itime2 invalue "time"
>>>>> 
>>>>> 
>>>>> 
>>>>> ;################ VOLUME ################
>>>>> 
>>>>> ;volume3
>>>>> 
>>>>> 
>>>>> kvol3 ctrl7 3,12,0.001,2
>>>>> 
>>>>> outvalue "vol3",kvol3
>>>>> 
>>>>> kvolume3 invalue "vol3"
>>>>> 
>>>>> 
>>>>> ;volume 2
>>>>> 
>>>>> 
>>>>> kvol2 ctrl7 3,11,0.001,1
>>>>> 
>>>>> outvalue "vol2",kvol2
>>>>> 
>>>>> kvolume2 invalue "vol2"
>>>>> 
>>>>> 
>>>>> ;volume 1
>>>>> 
>>>>> 
>>>>> kvol1 ctrl7 3,10,0.001,1
>>>>> 
>>>>> outvalue "vol1",kvol1
>>>>> 
>>>>> kvolume1 invalue "vol1"
>>>>> 
>>>>> 
>>>>> ;########### GLOBAL ####################
>>>>> 
>>>>> 
>>>>> gkfreq1 = kfreq1
>>>>> 
>>>>> gkfreq2 = kfreq2
>>>>> 
>>>>> gkband1 = kband1
>>>>> 
>>>>> gkband2 = kband3
>>>>> 
>>>>> 
>>>>> gkdens1 = kdens1
>>>>> 
>>>>> gktran1 = ktran1
>>>>> 
>>>>> gkoct1 = koct1
>>>>> 
>>>>> gkgband = kbandg1
>>>>> 
>>>>> 
>>>>> gkwarp = kwarpin
>>>>> 
>>>>> gksamp = ksampin
>>>>> 
>>>>> gkampli = kampli1
>>>>> 
>>>>> gitime = itime2
>>>>> 
>>>>> 
>>>>> gkvol1 = kvolume1
>>>>> 
>>>>> gkvol2 = kvolume2
>>>>> 
>>>>> gkvol3 = kvolume3
>>>>> 
>>>>> 
>>>>> endin
>>>>> 
>>>>> 
>>>>> instr 1
>>>>> 
>>>>> 
>>>>> ir filenchnls p4
>>>>> 
>>>>> 
>>>>> if ir == 1 then
>>>>> 
>>>>> asig diskin p4, 1
>>>>> 
>>>>> elseif ir == 2 then
>>>>> 
>>>>> asig,asig2 diskin p4, 1
>>>>> 
>>>>> asig = asig + asig2
>>>>> 
>>>>> 
>>>>> asig3 balance asig, asig
>>>>> 
>>>>> endif
>>>>> 
>>>>> 
>>>>> afilt butterbp asig3, gkfreq1, gkband1
>>>>> 
>>>>> anada oscil 0,0,50
>>>>> 
>>>>> outs (afilt*gkvol1)*.7, (afilt*gkvol1)*.8
>>>>> 
>>>>> endin
>>>>> 
>>>>> 
>>>>> instr 2
>>>>> 
>>>>> 
>>>>> 
>>>>> isamp = sr/ftlen(3)
>>>>> 
>>>>> a1 phasor isamp*p5
>>>>> 
>>>>> iamp = p4
>>>>> 
>>>>> iolaps = 150
>>>>> 
>>>>> ifna = p6
>>>>> 
>>>>> ifnb = 40
>>>>> 
>>>>> itotdur = p3
>>>>> 
>>>>> ;kton ctrl7 6,7,0,15000 ;all the way down to 0 Hz
>>>>> 
>>>>> asig fog iamp,gkdens1,gktran1,a1,gkoct1,gkgband,.01,.5,.002, iolaps,
>>>>> ifna,ifnb,itotdur
>>>>> 
>>>>> 
>>>>> afilt butterbp asig, gkfreq2, gkband2
>>>>> 
>>>>> ;asig tone asig, kton ;half-power point at 500 Hz
>>>>> 
>>>>> 
>>>>> kpan ctrl7 3,1,0,1
>>>>> 
>>>>> outvalue "pan", kpan
>>>>> 
>>>>> kpanv invalue "pan"
>>>>> 
>>>>> 
>>>>> asig=asig*(gkvol2*.9)
>>>>> 
>>>>> afilt=afilt*gkvol2
>>>>> 
>>>>> 
>>>>> outs (asig+afilt)*(1-kpanv),(asig+afilt)*kpanv
>>>>> 
>>>>> ga = asig+afilt
>>>>> 
>>>>> gkfreq2 = 0
>>>>> 
>>>>> gkband2 = 0
>>>>> 
>>>>> gkdens1 = 0
>>>>> 
>>>>> gktran1 = 0
>>>>> 
>>>>> gkoct1 = 0
>>>>> 
>>>>> gkgband = 0
>>>>> 
>>>>> 
>>>>> endin
>>>>> 
>>>>> 
>>>>> instr 3
>>>>> 
>>>>> iamp = p4
>>>>> 
>>>>> ifn1 = p5
>>>>> 
>>>>> ibeg = p6
>>>>> 
>>>>> iwsize = sr/10
>>>>> 
>>>>> ioverlap = p7
>>>>> 
>>>>> irandw = iwsize*0.2
>>>>> 
>>>>> ifnb = p8
>>>>> 
>>>>> itime = p9
>>>>> 
>>>>> ;iwarp = p10
>>>>> 
>>>>> ;isamp = p11
>>>>> 
>>>>> 
>>>>> ir filenchnls p10
>>>>> 
>>>>> print ir
>>>>> 
>>>>> if ir <= 1 then
>>>>> 
>>>>> 
>>>>> 
>>>>> 
>>>>> awarp1,acr1 sndwarp iamp,
>>>>> gkwarp,gksamp,ifn1,ibeg,iwsize,irandw,ioverlap,ifnb,gitime
>>>>> 
>>>>> 
>>>>> abal1 balance awarp1,acr1
>>>>> 
>>>>> abal1 =abal1*.8
>>>>> 
>>>>> abal1 dcblock abal1
>>>>> 
>>>>> outs abal1*.8, abal1*.9
>>>>> 
>>>>> 
>>>>> 
>>>>> elseif ir == 2 then
>>>>> 
>>>>> 
>>>>> awarp1,awarp2,acr1,acr2 sndwarpst iamp,
>>>>> gkwarp,gksamp,ifn1,ibeg,iwsize,irandw,ioverlap,ifnb,gitime
>>>>> 
>>>>> 
>>>>> abal1 balance awarp1, acr1
>>>>> 
>>>>> abal2 balance awarp2, acr2
>>>>> 
>>>>> abal1 = abal1*.8
>>>>> 
>>>>> abal2 = abal2*.7
>>>>> 
>>>>> abal1 dcblock abal1
>>>>> 
>>>>> abal2 dcblock abal2
>>>>> 
>>>>> outs abal1*.62, abal2*.5
>>>>> 
>>>>> endif
>>>>> 
>>>>> 
>>>>> ga1 = abal1 + abal2
>>>>> 
>>>>> 
>>>>> gkwarp = 0
>>>>> 
>>>>> gksamp = 0
>>>>> 
>>>>> gkampli = 0
>>>>> 
>>>>> gitime = 0
>>>>> 
>>>>> endin
>>>>> 
>>>>> 
>>>>> instr 100
>>>>> 
>>>>> krevtime2 ctrl7 1,16,0,2
>>>>> 
>>>>> outvalue "revtime2",krevtime2
>>>>> 
>>>>> krev1 invalue "revtime2"
>>>>> 
>>>>> khdiff2 ctrl7 1,34,0,1
>>>>> 
>>>>> outvalue "hfreq2",khdiff2
>>>>> 
>>>>> khfreq2 invalue "hfreq2"
>>>>> 
>>>>> krevvol2 ctrl7 1,17,0,0.5
>>>>> 
>>>>> outvalue "revvol2",krevvol2
>>>>> 
>>>>> kvol1 invalue "revvol2"
>>>>> 
>>>>> krevpan2 ctrl7 1,18,0,1
>>>>> 
>>>>> outvalue "revpan2", krevpan2
>>>>> 
>>>>> kprev invalue "revpan2"
>>>>> 
>>>>> 
>>>>> averv reverb2 ga1,krev1, khfreq2,4,30
>>>>> 
>>>>> anada = 0
>>>>> 
>>>>> outs (averv*kvol1)*(krevpan2), (averv*kvol1)*(1-krevpan2)
>>>>> 
>>>>> ga1 = 0
>>>>> 
>>>>> endin
>>>>> 
>>>>> instr 99
>>>>> 
>>>>> krevtime ctrl7 1,13,0,2
>>>>> 
>>>>> outvalue "revtime",krevtime
>>>>> 
>>>>> krev1 invalue "revtime"
>>>>> 
>>>>> khdiff ctrl7 1,33,0,1
>>>>> 
>>>>> outvalue "hfreq",khdiff
>>>>> 
>>>>> khfreq invalue "hfreq"
>>>>> 
>>>>> krevvol ctrl7 1,14,0,0.5
>>>>> 
>>>>> outvalue "revvol",krevvol
>>>>> 
>>>>> kvol1 invalue "revvol"
>>>>> 
>>>>> krevpan ctrl7 1,15,0,1
>>>>> 
>>>>> outvalue "revpan", krevpan
>>>>> 
>>>>> kprev invalue "revpan"
>>>>> 
>>>>> 
>>>>> averv reverb2 ga,krev1, khfreq,4,30
>>>>> 
>>>>> 
>>>>> anada = 0
>>>>> 
>>>>> 
>>>>> outs (averv*kvol1)*(krevpan), (averv*kvol1)*(1-krevpan)
>>>>> 
>>>>> ga = 0
>>>>> 
>>>>> endin
>>>>> 
>>>>> 
>>>>> 
>>>>> 
>>>>> 
>>>>> 
>>>>> 
>>>>> 
>>>>> f1 0 131072 1 "beats.wav" 0 0 0
>>>>> 
>>>>> f2 0 2097152 1 "chinelos_1.wav" 0 0 0
>>>>> 
>>>>> f3 0 2097152 1 "chinelos_2.wav" 0 0 0
>>>>> 
>>>>> f4 0 2097152 1 "Ambulance.wav" 0 0 0
>>>>> 
>>>>> f5 0 16777216 1 "CrowdTalking_2003_21.wav" 0 0 0
>>>>> 
>>>>> f6 0 4194304 1 "accident.wav" 0 0 0
>>>>> 
>>>>> f7 0 4194304 1 "ambulance_1.wav" 0 0 0
>>>>> 
>>>>> f8 0 4194304 1 "ambulance_2.wav" 0 0 0
>>>>> 
>>>>> f9 0 4194304 1 "ambulance_3.wav" 0 0 0
>>>>> 
>>>>> f10 0 4194304 1 "ambulance_3.wav" 0 0 0
>>>>> 
>>>>> f11 0 4194304 1 "ambulance_4.wav" 0 0 0
>>>>> 
>>>>> f12 0 4194304 1 "aplausos.wav" 0 0 0
>>>>> 
>>>>> f13 0 4194304 1 "bip_1.wav" 0 0 0
>>>>> 
>>>>> f14 0 4194304 1 "bips_and_clecks.wav" 0 0 0
>>>>> 
>>>>> f15 0 4194304 1 "buuu.wav" 0 0 0
>>>>> 
>>>>> f16 0 4194304 1 "buuu_2.wav" 0 0 0
>>>>> 
>>>>> f17 0 4194304 1 "estatica_1.wav" 0 0 0
>>>>> 
>>>>> f18 0 4194304 1 "fabrica_3.wav" 0 0 0
>>>>> 
>>>>> f19 0 4194304 1 "falatorio.wav" 0 0 0
>>>>> 
>>>>> f20 0 4194304 1 "falatorio_2.wav" 0 0 0
>>>>> 
>>>>> 
>>>>> f40 0 8192 19 .5 .5 270 .5
>>>>> 
>>>>> f30 0 8192 -2 -1116 -1188 -1277 -1356 0.3 0.4 0.6 0.5
>>>>> 
>>>>> f50 0 16384 9 .5 1 0
>>>>> 
>>>>> ;r 10 NN
>>>>> 
>>>>> 
>>>>> i 150 0 3600
>>>>> 
>>>>> 
>>>>> ;i 3 0 3600 .4 17 15 40 1
>>>>> 
>>>>> 
>>>>> i99 0 3600
>>>>> 
>>>>> i100 0 3600
>>>>> 
>>>>> 
>>>>> 
>>>>> e
>>>>> 
>>>>> 
>>>>> 
>>>>> 
>>>>> 
>>>>> 
>>>>> 
>>>>> 
>>>>> 
>>>>> 
>>>>> 
>>>>> ​
>>>>> 
>>>>> 
>>>>> 
>>>>> 
>>>>> 
>>>>> 
>>>>> 
>>>>> 
>>>>> 
>>>>> 
>>>>> 
>>>>> 
>>>>> 
>>>>> 
>>>>> 
>>>>> 
>>>>> 
>>>>> 
>>>>> 
>>>>> 
>>>>> 
>>>>> 
>>>>> 
>>>>> 
>>>>> 
>>>>> 
>>>>> 
>>>>> 
>>>>> 
>>>>> 
>>>>> 
>>>>> 
>>>>> 
>>>>> 
>>>>> 
>>>>> 
>>>>> 
>>>>> 
>>>>> 
>>>>> 
>>>>> 
>>>>> 
>>>>> 
>>>>> 
>>>>> 
>>>>> 
>>>>> 
>>>>> 
>>>>> 
>>>>> 
>>>>> 
>>>>> 
>>>>> 
>>>>> 
>>>>> 
>>>>> 
>>>>> 
>>>>> 
>>>>> 
>>>>> 
>>>>> 
>>>>> 
>>>>> 
>>>>> 
>>>>> 
>>>>> 
>>>>> 
>>>>> 
>>>>> 
>>>>> 
>>>>> 
>>>>> 
>>>>> 
>>>>> 
>>>>> 
>>>>> 
>>>>> 
>>>>> 
>>>>> 
>>>>> 
>>>>> 
>>>>> 
>>>>> 
>>>>> 
>>>>> 
>>>>> 
>>>>> 
>>>>> 
>>>>> 
>>>>> 
>>>>> 
>>>>> 
>>>>> 
>>>>> 
>>>>> 
>>>>> 
>>>>> 
>>>>> 
>>>>> 
>>>>> 
>>>>> 
>>>>> 
>>>>> 
>>>>> 
>>>>> 
>>>>> 
>>>>> 
>>>>> 
>>>>> 
>>>>> 
>>>>> 
>>>>> 
>>>>> 
>>>>> 
>>>>> 
>>>>> 
>>>>> 
>>>>> 
>>>>> 
>>>>> 
>>>>> 
>>>>> 
>>>>> 
>>>>> 
>>>>> 
>>>>> 
>>>>> 
>>>>> 
>>>>> --
>>>>> *Marcelo Carneiro*
>>>>> (21) 9382-3621
>>>>> (21) 3497-0193
>>>>> Skype: Carneiro3729
>>>>> http://marceloarcos2.wixsite.com/marcelocarneiro
>>>>> Csound mailing list Csound@listserv.heanet.ie
>>>>> 
>>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to
>>>>> https://github.com/csound/csound/issues Discussions of bugs and features
>>>>> can be posted here
>>>>> 
>>>> Csound mailing list
>>>> Csound@listserv.heanet.ie
>>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
>>>> Send bugs reports to
>>>>       https://github.com/csound/csound/issues
>>>> Discussions of bugs and features can be posted here
>>>> 
>>> 
>>> 
>>> --
>>> *Marcelo Carneiro*
>>> (21) 9382-3621
>>> (21) 3497-0193
>>> Skype: Carneiro3729
>>> http://marceloarcos2.wixsite.com/marcelocarneiro
>>> Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/
>>> cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/
>>> csound/issues Discussions of bugs and features can be posted here
>>> 
>>> Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/
>>> cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/
>>> csound/issues Discussions of bugs and features can be posted here
>>> 
>> 
>> 
> 
> Csound mailing list
> Csound@listserv.heanet.ie
> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
> Send bugs reports to
>        https://github.com/csound/csound/issues
> Discussions of bugs and features can be posted here

Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Date2017-07-01 00:29
FromTarmo Johannes
SubjectRe: Crashes CsoundQt 0.94 Csound 6.09

Hi Guillermo,

 

I am now responsible for developing CsoundQt and I agree - it is harder to get it work properly on Windows than on Linux or OSX, partly because I guess for Andrés and myself, Windows is not the "native" platform and it is somehow more tricky.

 

Also I feel that there is has been much less constructive and helping feedback from Windows users that I can also understand - usually the background of Linux or OSX people is more technical but maybe I am wrong.

 

What I silently wish and hope that more people on Windows would start building CsoundQt, testing and sending feedback during development phase - it is not that hard but the instructions should be made much clearer and updated. Anyway - it is a community project and the time put into it by serveral people pays off.

 

Michael Gogins has done great job preparing the Windows installers, I am myself also learning about Windows builds more and more and the operating system itself, so I believe it is getting better - I agree 100% that the crashes should go away.

 

In short:

 

would you or/and your students care to try the test build for Csound 6.09.1:

https://www.dropbox.com/s/levud2ztktka9f1/Setup_Csound6_x64_6.09.1-vst.exe?dl=0 ?

 

There is one problem about copy/paste that should have been fixed here:

http://tarmo.uuu.ee/varia/failid/cs/CsoundQt/CsoundQt-d-cs6-clipboard-ok.zip

Please extract it, copy into the Csoundx64/bin folder and run it from there.

 

Hope it works better and no more crashes on exit any more!

 

Also please encourage of your stundets to join the CsoundQt mailing list:

https://sourceforge.net/projects/qutecsound/lists/qutecsound-users

about specific porblems of CsoundQt

 

Thanks!

tarmo

 

 

On Friday, June 30, 2017 03:05:08 PM you wrote:

> It is probably unrelated because everyone here uses Windows and it

> happens with different .csd files, but something like 30% of our

> students reported similar problems with CsoundQt, v6.08 and Windows 10.

> It is really difficult to make people want to use Csound with all those

> impediments. And "Run in Term" works so it is not Csound.

>

> On 30/06/17 14:46, Marcelo Carneiro de Lima wrote:

> > Yosemite (mac). Actually if I start to Run the code it goes fine until a

> > certain point. If I press Stop CsoundQt crashes (most of the time), or

> > freezes (sometimes). Other times it stops correctly, but when I try to run

> > it again it freezes. I am checking CsoundQt configurations as Joachim

> > suggested and will try again...

> > Thank you

> > Marcelo

> >

> > 2017-06-30 14:38 GMT-03:00 Victor Lazzarini <Victor.Lazzarini@nuim.ie>:

> >> What OS by the way? Can you isolate the crashing instrument?

> >>

> >> Victor Lazzarini

> >> Dean of Arts, Celtic Studies, and Philosophy

> >> Maynooth University

> >> Ireland

> >>

> >> On 30 Jun 2017, at 18:32, Marcelo Carneiro de Lima <

> >> marcelo.arcos2@GMAIL.COM> wrote:

> >>

> >> Hi, thank you.

> >> I am using Buffers 1024 and 4098 respectively.

> >> The module is portaudio (blocking)

> >> I was not using MIDI modules, now I am.

> >> The MIDI input interface is a Korg NanoKontrol 1 (usb).

> >>

> >> Thanks for the tips about the code, I will check upon the documentation.

> >> Bests

> >> Marcelo

> >>

> >> 2017-06-30 13:36 GMT-03:00 joachim heintz <jh@joachimheintz.de>:

> >>> hi marcelo -

> >>>

> >>> some ideas / suggestions / questions:

> >>>

> >>> - what are the values for Buffer Size (-b) and Hardware Buffer Size (-B)

> >>> in Configure > Run?

> >>> - what is the realtime audio module in the same panel?

> >>> - what is the MIDI input interface? did you choose "use csound MIDI

> >>> modules"?

> >>>

> >>> in general, i would avoid code like this:

> >>>

> >>> kmid ctrl7 1,1,100,15000

> >>> kmid2 ctrl7 1,2,10,1000

> >>> outvalue "freq1", kmid

> >>> outvalue "band2", kmid2

> >>> kfreq1 invalue "freq1"

> >>> kband1 invalue "band2"

> >>>

> >>> because you use the builtin csound midi modules, send the value to the

> >>> widgets and send them back to csound.

> >>>

> >>> csoundqt offers the possibility to directly connect a midi controller

> >>> (slider or knob) with a widget: just open the properties of a widget,

> >>> klick

> >>> on "MIDI Learn", move a controller, and you should see that the widget

> >>> is

> >>> now connected to the controller.

> >>>

> >>> you find more information about the configuration and tips here:

> >>> http://csoundqt.github.io/pages/documentation.html

> >>> in particular:

> >>> http://csoundqt.github.io/pages/configuring-csoundqt.html

> >>> http://csoundqt.github.io/pages/tips-and-tricks.html

> >>>

> >>> hope this helps -

> >>>

> >>> joachim

> >>>

> >>> On 30/06/17 17:38, Marcelo Carneiro de Lima wrote:

> >>>> Hi. I keep experiencing crashes almost everytime I run the code below.

> >>>> I have debugged it and couldn't find anything that could be causing it.

> >>>> I am trying to improvise changing some parameters in real time using a

> >>>> NanoKontrol device with widgets and triggering instruments with Live

> >>>> Events.

> >>>> Thanks.

> >>>> Bests

> >>>> Marcelo

> >>>>

> >>>> MacMini, i7 quad, 16gb, Yosemite.

> >>>>

> >>>> <CsoundSynthesizer>

> >>>>

> >>>> <CsOptions>

> >>>>

> >>>> ; Select audio/midi flags here according to platform

> >>>>

> >>>> -odac ;;;realtime audio out

> >>>>

> >>>> -iadc ;;;uncomment -iadc if realtime audio input is needed too

> >>>>

> >>>> ; For Non-realtime ouput leave only the line below:

> >>>>

> >>>> ; -o tone.wav -W ;;; for file output any platform

> >>>>

> >>>> </CsOptions>

> >>>>

> >>>> <CsInstruments>

> >>>>

> >>>>

> >>>> sr = 48000

> >>>>

> >>>> ksmps = 256

> >>>>

> >>>> 0dbfs = 1

> >>>>

> >>>> nchnls = 2

> >>>>

> >>>>

> >>>> ;git1 ftgen 1,0,131072,1,"beats.wav",0,0,0

> >>>>

> >>>> ;git2 ftgen 2,0,1024,19,.5,.5,270,.5

> >>>>

> >>>> ;git3 ftgen 3,0,131072,1,"chinelos_1.wav",0,0,0

> >>>>

> >>>> ;git4 ftgen 4,0,131072,1,"chinelos_2.wav",0,0,0

> >>>>

> >>>> ga init 0

> >>>>

> >>>> ga1 init 0

> >>>>

> >>>> gkfreq1 init 0

> >>>>

> >>>> gkfreq2 init 0

> >>>>

> >>>> gkband1 init 0

> >>>>

> >>>> gkband2 init 0

> >>>>

> >>>> gkdens1 init 0

> >>>>

> >>>> gktran1 init 0

> >>>>

> >>>> gkoct1 init 0

> >>>>

> >>>> gkgband init 0

> >>>>

> >>>>

> >>>> gkwarp init 0

> >>>>

> >>>> gksamp init 0

> >>>>

> >>>> gkampli init 0

> >>>>

> >>>> gitime init 0

> >>>>

> >>>>

> >>>> gkvol1 init 0

> >>>>

> >>>> gkvol2 init 0

> >>>>

> >>>> gkvol3 init 0

> >>>>

> >>>> ;gaply init 0

> >>>>

> >>>>

> >>>> ;########################################################

> >>>>

> >>>> instr 150

> >>>>

> >>>>

> >>>>

> >>>> ;########### FILTRO 1 ####################

> >>>>

> >>>>

> >>>> kmid ctrl7 1,1,100,15000

> >>>>

> >>>> kmid2 ctrl7 1,2,10,1000

> >>>>

> >>>>

> >>>>

> >>>>

> >>>> outvalue "freq1", kmid

> >>>>

> >>>> outvalue "band2", kmid2

> >>>>

> >>>>

> >>>> kfreq1 invalue "freq1"

> >>>>

> >>>> kband1 invalue "band2"

> >>>>

> >>>>

> >>>> ;########### FILTRO 2 ####################

> >>>>

> >>>>

> >>>> kmid3 ctrl7 1,3,100,15000

> >>>>

> >>>> kmid4 ctrl7 1,4,10,1000

> >>>>

> >>>>

> >>>>

> >>>> outvalue "freq3", kmid3

> >>>>

> >>>> outvalue "band3", kmid4

> >>>>

> >>>> kfreq2 invalue "freq3"

> >>>>

> >>>> kband3 invalue "band3"

> >>>>

> >>>> ;########### GRAOS ######################

> >>>>

> >>>>

> >>>> kdens ctrl7 1,5,10,100

> >>>>

> >>>> ktran ctrl7 1,6,-2,4

> >>>>

> >>>> koct ctrl7 1,7,0,10

> >>>>

> >>>> kbandg ctrl7 1,8,0,10

> >>>>

> >>>>

> >>>> outvalue "dens", kdens

> >>>>

> >>>> outvalue "tran", ktran

> >>>>

> >>>> outvalue "oct", koct

> >>>>

> >>>> outvalue "bandg", kbandg

> >>>>

> >>>>

> >>>>

> >>>> kdens1 invalue "dens"

> >>>>

> >>>> ktran1 invalue "tran"

> >>>>

> >>>> koct1 invalue "oct"

> >>>>

> >>>> kbandg1 invalue "bandg"

> >>>>

> >>>>

> >>>> ;############## WARP ###################

> >>>>

> >>>>

> >>>> kwarp ctrl7 1,10,0,2

> >>>>

> >>>> ksamp ctrl7 1,11,0.2,3

> >>>>

> >>>> kampli ctrl7 1,12,0,1.1

> >>>>

> >>>> itime ctrl7 1,32,0,1

> >>>>

> >>>>

> >>>>

> >>>> outvalue "warp", kwarp

> >>>>

> >>>> outvalue "samp", ksamp

> >>>>

> >>>> outvalue "ampli", kampli

> >>>>

> >>>> outvalue "time", itime

> >>>>

> >>>>

> >>>> kwarpin invalue "warp"

> >>>>

> >>>> ksampin invalue "samp"

> >>>>

> >>>> kampli1 invalue "ampli"

> >>>>

> >>>> itime2 invalue "time"

> >>>>

> >>>>

> >>>>

> >>>> ;################ VOLUME ################

> >>>>

> >>>> ;volume3

> >>>>

> >>>>

> >>>> kvol3 ctrl7 3,12,0.001,2

> >>>>

> >>>> outvalue "vol3",kvol3

> >>>>

> >>>> kvolume3 invalue "vol3"

> >>>>

> >>>>

> >>>> ;volume 2

> >>>>

> >>>>

> >>>> kvol2 ctrl7 3,11,0.001,1

> >>>>

> >>>> outvalue "vol2",kvol2

> >>>>

> >>>> kvolume2 invalue "vol2"

> >>>>

> >>>>

> >>>> ;volume 1

> >>>>

> >>>>

> >>>> kvol1 ctrl7 3,10,0.001,1

> >>>>

> >>>> outvalue "vol1",kvol1

> >>>>

> >>>> kvolume1 invalue "vol1"

> >>>>

> >>>>

> >>>> ;########### GLOBAL ####################

> >>>>

> >>>>

> >>>> gkfreq1 = kfreq1

> >>>>

> >>>> gkfreq2 = kfreq2

> >>>>

> >>>> gkband1 = kband1

> >>>>

> >>>> gkband2 = kband3

> >>>>

> >>>>

> >>>> gkdens1 = kdens1

> >>>>

> >>>> gktran1 = ktran1

> >>>>

> >>>> gkoct1 = koct1

> >>>>

> >>>> gkgband = kbandg1

> >>>>

> >>>>

> >>>> gkwarp = kwarpin

> >>>>

> >>>> gksamp = ksampin

> >>>>

> >>>> gkampli = kampli1

> >>>>

> >>>> gitime = itime2

> >>>>

> >>>>

> >>>> gkvol1 = kvolume1

> >>>>

> >>>> gkvol2 = kvolume2

> >>>>

> >>>> gkvol3 = kvolume3

> >>>>

> >>>>

> >>>> endin

> >>>>

> >>>>

> >>>> instr 1

> >>>>

> >>>>

> >>>> ir filenchnls p4

> >>>>

> >>>>

> >>>> if ir == 1 then

> >>>>

> >>>> asig diskin p4, 1

> >>>>

> >>>> elseif ir == 2 then

> >>>>

> >>>> asig,asig2 diskin p4, 1

> >>>>

> >>>> asig = asig + asig2

> >>>>

> >>>>

> >>>> asig3 balance asig, asig

> >>>>

> >>>> endif

> >>>>

> >>>>

> >>>> afilt butterbp asig3, gkfreq1, gkband1

> >>>>

> >>>> anada oscil 0,0,50

> >>>>

> >>>> outs (afilt*gkvol1)*.7, (afilt*gkvol1)*.8

> >>>>

> >>>> endin

> >>>>

> >>>>

> >>>> instr 2

> >>>>

> >>>>

> >>>>

> >>>> isamp = sr/ftlen(3)

> >>>>

> >>>> a1 phasor isamp*p5

> >>>>

> >>>> iamp = p4

> >>>>

> >>>> iolaps = 150

> >>>>

> >>>> ifna = p6

> >>>>

> >>>> ifnb = 40

> >>>>

> >>>> itotdur = p3

> >>>>

> >>>> ;kton ctrl7 6,7,0,15000 ;all the way down to 0 Hz

> >>>>

> >>>> asig fog iamp,gkdens1,gktran1,a1,gkoct1,gkgband,.01,.5,.002, iolaps,

> >>>> ifna,ifnb,itotdur

> >>>>

> >>>>

> >>>> afilt butterbp asig, gkfreq2, gkband2

> >>>>

> >>>> ;asig tone asig, kton ;half-power point at 500 Hz

> >>>>

> >>>>

> >>>> kpan ctrl7 3,1,0,1

> >>>>

> >>>> outvalue "pan", kpan

> >>>>

> >>>> kpanv invalue "pan"

> >>>>

> >>>>

> >>>> asig=asig*(gkvol2*.9)

> >>>>

> >>>> afilt=afilt*gkvol2

> >>>>

> >>>>

> >>>> outs (asig+afilt)*(1-kpanv),(asig+afilt)*kpanv

> >>>>

> >>>> ga = asig+afilt

> >>>>

> >>>> gkfreq2 = 0

> >>>>

> >>>> gkband2 = 0

> >>>>

> >>>> gkdens1 = 0

> >>>>

> >>>> gktran1 = 0

> >>>>

> >>>> gkoct1 = 0

> >>>>

> >>>> gkgband = 0

> >>>>

> >>>>

> >>>> endin

> >>>>

> >>>>

> >>>> instr 3

> >>>>

> >>>> iamp = p4

> >>>>

> >>>> ifn1 = p5

> >>>>

> >>>> ibeg = p6

> >>>>

> >>>> iwsize = sr/10

> >>>>

> >>>> ioverlap = p7

> >>>>

> >>>> irandw = iwsize*0.2

> >>>>

> >>>> ifnb = p8

> >>>>

> >>>> itime = p9

> >>>>

> >>>> ;iwarp = p10

> >>>>

> >>>> ;isamp = p11

> >>>>

> >>>>

> >>>> ir filenchnls p10

> >>>>

> >>>> print ir

> >>>>

> >>>> if ir <= 1 then

> >>>>

> >>>>

> >>>>

> >>>>

> >>>> awarp1,acr1 sndwarp iamp,

> >>>> gkwarp,gksamp,ifn1,ibeg,iwsize,irandw,ioverlap,ifnb,gitime

> >>>>

> >>>>

> >>>> abal1 balance awarp1,acr1

> >>>>

> >>>> abal1 =abal1*.8

> >>>>

> >>>> abal1 dcblock abal1

> >>>>

> >>>> outs abal1*.8, abal1*.9

> >>>>

> >>>>

> >>>>

> >>>> elseif ir == 2 then

> >>>>

> >>>>

> >>>> awarp1,awarp2,acr1,acr2 sndwarpst iamp,

> >>>> gkwarp,gksamp,ifn1,ibeg,iwsize,irandw,ioverlap,ifnb,gitime

> >>>>

> >>>>

> >>>> abal1 balance awarp1, acr1

> >>>>

> >>>> abal2 balance awarp2, acr2

> >>>>

> >>>> abal1 = abal1*.8

> >>>>

> >>>> abal2 = abal2*.7

> >>>>

> >>>> abal1 dcblock abal1

> >>>>

> >>>> abal2 dcblock abal2

> >>>>

> >>>> outs abal1*.62, abal2*.5

> >>>>

> >>>> endif

> >>>>

> >>>>

> >>>> ga1 = abal1 + abal2

> >>>>

> >>>>

> >>>> gkwarp = 0

> >>>>

> >>>> gksamp = 0

> >>>>

> >>>> gkampli = 0

> >>>>

> >>>> gitime = 0

> >>>>

> >>>> endin

> >>>>

> >>>>

> >>>> instr 100

> >>>>

> >>>> krevtime2 ctrl7 1,16,0,2

> >>>>

> >>>> outvalue "revtime2",krevtime2

> >>>>

> >>>> krev1 invalue "revtime2"

> >>>>

> >>>> khdiff2 ctrl7 1,34,0,1

> >>>>

> >>>> outvalue "hfreq2",khdiff2

> >>>>

> >>>> khfreq2 invalue "hfreq2"

> >>>>

> >>>> krevvol2 ctrl7 1,17,0,0.5

> >>>>

> >>>> outvalue "revvol2",krevvol2

> >>>>

> >>>> kvol1 invalue "revvol2"

> >>>>

> >>>> krevpan2 ctrl7 1,18,0,1

> >>>>

> >>>> outvalue "revpan2", krevpan2

> >>>>

> >>>> kprev invalue "revpan2"

> >>>>

> >>>>

> >>>> averv reverb2 ga1,krev1, khfreq2,4,30

> >>>>

> >>>> anada = 0

> >>>>

> >>>> outs (averv*kvol1)*(krevpan2), (averv*kvol1)*(1-krevpan2)

> >>>>

> >>>> ga1 = 0

> >>>>

> >>>> endin

> >>>>

> >>>> instr 99

> >>>>

> >>>> krevtime ctrl7 1,13,0,2

> >>>>

> >>>> outvalue "revtime",krevtime

> >>>>

> >>>> krev1 invalue "revtime"

> >>>>

> >>>> khdiff ctrl7 1,33,0,1

> >>>>

> >>>> outvalue "hfreq",khdiff

> >>>>

> >>>> khfreq invalue "hfreq"

> >>>>

> >>>> krevvol ctrl7 1,14,0,0.5

> >>>>

> >>>> outvalue "revvol",krevvol

> >>>>

> >>>> kvol1 invalue "revvol"

> >>>>

> >>>> krevpan ctrl7 1,15,0,1

> >>>>

> >>>> outvalue "revpan", krevpan

> >>>>

> >>>> kprev invalue "revpan"

> >>>>

> >>>>

> >>>> averv reverb2 ga,krev1, khfreq,4,30

> >>>>

> >>>>

> >>>> anada = 0

> >>>>

> >>>>

> >>>> outs (averv*kvol1)*(krevpan), (averv*kvol1)*(1-krevpan)

> >>>>

> >>>> ga = 0

> >>>>

> >>>> endin

> >>>>

> >>>>

> >>>>

> >>>>

> >>>> </CsInstruments>

> >>>>

> >>>> <CsScore>

> >>>>

> >>>> f1 0 131072 1 "beats.wav" 0 0 0

> >>>>

> >>>> f2 0 2097152 1 "chinelos_1.wav" 0 0 0

> >>>>

> >>>> f3 0 2097152 1 "chinelos_2.wav" 0 0 0

> >>>>

> >>>> f4 0 2097152 1 "Ambulance.wav" 0 0 0

> >>>>

> >>>> f5 0 16777216 1 "CrowdTalking_2003_21.wav" 0 0 0

> >>>>

> >>>> f6 0 4194304 1 "accident.wav" 0 0 0

> >>>>

> >>>> f7 0 4194304 1 "ambulance_1.wav" 0 0 0

> >>>>

> >>>> f8 0 4194304 1 "ambulance_2.wav" 0 0 0

> >>>>

> >>>> f9 0 4194304 1 "ambulance_3.wav" 0 0 0

> >>>>

> >>>> f10 0 4194304 1 "ambulance_3.wav" 0 0 0

> >>>>

> >>>> f11 0 4194304 1 "ambulance_4.wav" 0 0 0

> >>>>

> >>>> f12 0 4194304 1 "aplausos.wav" 0 0 0

> >>>>

> >>>> f13 0 4194304 1 "bip_1.wav" 0 0 0

> >>>>

> >>>> f14 0 4194304 1 "bips_and_clecks.wav" 0 0 0

> >>>>

> >>>> f15 0 4194304 1 "buuu.wav" 0 0 0

> >>>>

> >>>> f16 0 4194304 1 "buuu_2.wav" 0 0 0

> >>>>

> >>>> f17 0 4194304 1 "estatica_1.wav" 0 0 0

> >>>>

> >>>> f18 0 4194304 1 "fabrica_3.wav" 0 0 0

> >>>>

> >>>> f19 0 4194304 1 "falatorio.wav" 0 0 0

> >>>>

> >>>> f20 0 4194304 1 "falatorio_2.wav" 0 0 0

> >>>>

> >>>>

> >>>> f40 0 8192 19 .5 .5 270 .5

> >>>>

> >>>> f30 0 8192 -2 -1116 -1188 -1277 -1356 0.3 0.4 0.6 0.5

> >>>>

> >>>> f50 0 16384 9 .5 1 0

> >>>>

> >>>> ;r 10 NN

> >>>>

> >>>>

> >>>> i 150 0 3600

> >>>>

> >>>>

> >>>> ;i 3 0 3600 .4 17 15 40 1

> >>>>

> >>>>

> >>>> i99 0 3600

> >>>>

> >>>> i100 0 3600

> >>>>

> >>>>

> >>>>

> >>>> e

> >>>>

> >>>>

> >>>> </CsScore>

> >>>>

> >>>> </CsoundSynthesizer>

> >>>>

> >>>>

> >>>>

> >>>>

> >>>>

> >>>>

> >>>> ​

> >>>>

> >>>>

> >>>>

> >>>>

> >>>>

> >>>>

> >>>>

> >>>>

> >>>>

> >>>>

> >>>>

> >>>>

> >>>>

> >>>>

> >>>>

> >>>>

> >>>>

> >>>>

> >>>>

> >>>>

> >>>>

> >>>>

> >>>>

> >>>>

> >>>>

> >>>>

> >>>>

> >>>>

> >>>>

> >>>>

> >>>>

> >>>>

> >>>>

> >>>>

> >>>>

> >>>>

> >>>>

> >>>>

> >>>>

> >>>>

> >>>>

> >>>>

> >>>>

> >>>>

> >>>>

> >>>>

> >>>>

> >>>>

> >>>>

> >>>>

> >>>>

> >>>>

> >>>>

> >>>>

> >>>>

> >>>>

> >>>>

> >>>>

> >>>>

> >>>>

> >>>>

> >>>>

> >>>>

> >>>>

> >>>>

> >>>>

> >>>>

> >>>>

> >>>>

> >>>>

> >>>>

> >>>>

> >>>>

> >>>>

> >>>>

> >>>>

> >>>>

> >>>>

> >>>>

> >>>>

> >>>>

> >>>>

> >>>>

> >>>>

> >>>>

> >>>>

> >>>>

> >>>>

> >>>>

> >>>>

> >>>>

> >>>>

> >>>>

> >>>>

> >>>>

> >>>>

> >>>>

> >>>>

> >>>>

> >>>>

> >>>>

> >>>>

> >>>>

> >>>>

> >>>>

> >>>>

> >>>>

> >>>>

> >>>>

> >>>>

> >>>>

> >>>>

> >>>>

> >>>>

> >>>>

> >>>>

> >>>>

> >>>>

> >>>>

> >>>>

> >>>>

> >>>>

> >>>>

> >>>>

> >>>>

> >>>>

> >>>>

> >>>>

> >>>> --

> >>>> *Marcelo Carneiro*

> >>>> (21) 9382-3621

> >>>> (21) 3497-0193

> >>>> Skype: Carneiro3729

> >>>> http://marceloarcos2.wixsite.com/marcelocarneiro

> >>>> Csound mailing list Csound@listserv.heanet.ie

> >>>> <mailto:Csound@listserv.heanet.ie>

> >>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to

> >>>> https://github.com/csound/csound/issues Discussions of bugs and

> >>>> features

> >>>> can be posted here

> >>>

> >>> Csound mailing list

> >>> Csound@listserv.heanet.ie

> >>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND

> >>> Send bugs reports to

> >>>

> >>> https://github.com/csound/csound/issues

> >>>

> >>> Discussions of bugs and features can be posted here

> >>

> >> --

> >> *Marcelo Carneiro*

> >> (21) 9382-3621

> >> (21) 3497-0193

> >> Skype: Carneiro3729

> >> http://marceloarcos2.wixsite.com/marcelocarneiro

> >> Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/

> >> cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/

> >> csound/issues Discussions of bugs and features can be posted here

> >>

> >> Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/

> >> cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/

> >> csound/issues Discussions of bugs and features can be posted here

>

> Csound mailing list

> Csound@listserv.heanet.ie

> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND

> Send bugs reports to

> https://github.com/csound/csound/issues

> Discussions of bugs and features can be posted here

 


Date2017-07-01 16:49
FromMarcelo Carneiro de Lima
SubjectRe: Crashes CsoundQt 0.94 Csound 6.09
Attachments=?UTF-8?Q?Captura_de_Tela_2017=2D07=2D01_a=CC=80s_12=2E44=2E55=2Epng?=  =?UTF-8?Q?Captura_de_Tela_2017=2D07=2D01_a=CC=80s_12=2E45=2E11=2Epng?=  
Hi all, I have reconfigured CsoundQt Run tab as Joachim suggested and it started to get better. Now it doesn't crash all the time. Thanks for that!
I still trying the former code for the midi controller and widgets though...

I am still having problems with sndwarp and sndwarpst in "real time" (by this I mean changing warp, itimemode, and sample parameters with the midi controller). As I wrote before, I am triggering all my three instruments with Live Events, but for the warp (sndwarp and sndwarpst) sections this is not always working. The problem is that sometimes I have responses (I mean amplitude levels which good enough for hearing), sometimes I have none (amplitude levels at 0dbfs, or 0.00000...something). It takes a long time before the warp section can "play" again which is really not good for improvisation.
I am always coping this section to another csd file to debug it, and when I think everything is fine and transfer the debugged code to the main one (the one with the other two -audio- instruments), the problem comes up all over again. I am thinking if it could be some problems with those instruments interactions. I don't know though...
I am attaching again the code below. I am also attaching two pictures: one from the Configure Panel (Run tab), and the other from the war Live Events sheet.
Bests
Marcelo
p.s. the <outc> and <outq> opcodes are being used to send my real time improvisation/performance to Reaper... For testing I use <outs>...

<CsoundSynthesizer>

<CsOptions>

; Select audio/midi flags here according to platform

-odac ;;;realtime audio out

-iadc ;;;uncomment -iadc if realtime audio input is needed too

; For Non-realtime ouput leave only the line below:

; -o tone.wav -W ;;; for file output any platform

</CsOptions>

<CsInstruments>


sr = 48000

ksmps = 512

0dbfs = 1

nchnls = 8


;git1 ftgen 1,0,131072,1,"beats.wav",0,0,0

;git2 ftgen 2,0,1024,19,.5,.5,270,.5

;git3 ftgen 3,0,131072,1,"chinelos_1.wav",0,0,0

;git4 ftgen 4,0,131072,1,"chinelos_2.wav",0,0,0

ga init 0

ga1 init 0

gkfreq1 init 0

gkfreq2 init 0

gkband1 init 0

gkband2 init 0

gkdens1 init 0

gktran1 init 0

gkoct1 init 0

gkgband init 0


gkwarp init 0

gksamp init 0

gkampli init 0

gitime init 0


gkvol1 init 0

gkvol2 init 0

gkvol3 init 0

;gaply init 0


;########################################################

instr 150



;########### FILTRO 1 ####################


kmid ctrl7 1,1,100,15000

kmid2 ctrl7 1,2,10,1000




outvalue "freq1", kmid

outvalue "band2", kmid2


kfreq1 invalue "freq1"

kband1 invalue "band2"


;########### FILTRO 2 ####################


kmid3 ctrl7 1,3,100,15000

kmid4 ctrl7 1,4,10,1000



outvalue "freq3", kmid3

outvalue "band3", kmid4

kfreq2 invalue "freq3"

kband3 invalue "band3"

;########### GRAOS ######################


kdens ctrl7 1,5,10,100

ktran ctrl7 1,6,-2,4

koct ctrl7 1,7,0,10

kbandg ctrl7 1,8,0,10


outvalue "dens", kdens

outvalue "tran", ktran

outvalue "oct", koct

outvalue "bandg", kbandg



kdens1 invalue "dens"

ktran1 invalue "tran"

koct1 invalue "oct"

kbandg1 invalue "bandg"


;############## WARP ###################


kwarp ctrl7 1,10,0,2

ksamp ctrl7 1,11,0.2,3

kampli ctrl7 1,12,0,1.1

itime ctrl7 1,32,0,1



outvalue "warp", kwarp

outvalue "samp", ksamp

outvalue "ampli", kampli

outvalue "time", itime


kwarpin invalue "warp"

ksampin invalue "samp"

kampli1 invalue "ampli"

itime2 invalue "time"



;################ VOLUME ################

;volume3


kvol3 ctrl7 3,12,0.001,2

outvalue "vol3",kvol3

kvolume3 invalue "vol3"


;volume 2


kvol2 ctrl7 3,11,0.001,1

outvalue "vol2",kvol2

kvolume2 invalue "vol2"


;volume 1


kvol1 ctrl7 3,10,0.001,1

outvalue "vol1",kvol1

kvolume1 invalue "vol1"


;########### GLOBAL ####################


gkfreq1 = kfreq1

gkfreq2 = kfreq2

gkband1 = kband1

gkband2 = kband3


gkdens1 = kdens1

gktran1 = ktran1

gkoct1 = koct1

gkgband = kbandg1


gkwarp = kwarpin

gksamp = ksampin

gkampli = kampli1

gitime = itime2


gkvol1 = kvolume1

gkvol2 = kvolume2

gkvol3 = kvolume3


endin


instr 1


ir filenchnls p4


if ir == 1 then

asig diskin p4, 1

elseif ir == 2 then

asig,asig2 diskin p4, 1

asig = asig + asig2


asig3 balance asig, asig

endif


afilt butterbp asig3, gkfreq1, gkband1

anada oscil 0,0,50

outs (afilt*gkvol1)*.7, (afilt*gkvol1)*.8

endin


instr 2



isamp = sr/ftlen(3)

a1 phasor isamp*p5

iamp = p4

iolaps = 150

ifna = p6

ifnb = 40

itotdur = p3

;kton ctrl7 6,7,0,15000 ;all the way down to 0 Hz

asig fog iamp,gkdens1,gktran1,a1,gkoct1,gkgband,.01,.5,.002, iolaps, ifna,ifnb,itotdur


afilt butterbp asig, gkfreq2, gkband2

;asig tone asig, kton ;half-power point at 500 Hz


kpan ctrl7 3,1,0,1

outvalue "pan", kpan

kpanv invalue "pan"

kpan2 ctrl7 3,2,0,1

outvalue "pan2", kpan2

kpanv2 invalue "pan2"


asig=asig*(gkvol2*.9)

afilt=afilt*gkvol2


outq3 (asig+afilt)*(kpanv)

outq4 (asig+afilt)*kpanv2

ga = asig+afilt

gkfreq2 = 0

gkband2 = 0

gkdens1 = 0

gktran1 = 0

gkoct1 = 0

gkgband = 0


endin


instr 3

iamp = p4

ifn1 = p5

ibeg = p6

iwsize = sr/10

ioverlap = p7

irandw = iwsize*0.2

ifnb = p8

;itime = p9

;iwarp = p10

;isamp = p11


ir filenchnls p10

print ir

if ir <= 1 then




awarp1,acr1 sndwarp gkampli, gkwarp,gksamp,ifn1,ibeg,iwsize,irandw,ioverlap,ifnb,gitime


abal1 balance awarp1,acr1

abal1 =abal1

abal1 dcblock abal1

anada = 0

outc anada, anada, anada, anada, anada, anada, (abal1*gkvol3)*.9, abal1*gkvol3

ga1 = abal1


elseif ir == 2 then


awarp1,awarp2,acr1,acr2 sndwarpst gkampli, gkwarp,gksamp,ifn1,ibeg,iwsize,irandw,ioverlap,ifnb,gitime


abal1 balance awarp1, acr1

abal2 balance awarp2, acr2

abal1 = abal1

abal2 = abal2

abal1 dcblock abal1

abal2 dcblock abal2

anada = 0

outc anada, anada, anada, abal1*gkvol3, anada, anada, (abal2*gkvol3)*.9



ga1 = abal1 + abal2

endif


gkwarp = 0

gksamp = 0

gkampli = 0

gitime = 0

endin


instr 100

krevtime2 ctrl7 1,16,0,2

outvalue "revtime2",krevtime2

krev1 invalue "revtime2"

khdiff2 ctrl7 1,34,0,1

outvalue "hfreq2",khdiff2

khfreq2 invalue "hfreq2"

krevvol2 ctrl7 1,17,0,0.5

outvalue "revvol2",krevvol2

kvol1 invalue "revvol2"

krevpan2 ctrl7 1,18,0,1

outvalue "revpan2", krevpan2

kprev invalue "revpan2"


averv reverb2 ga1,krev1, khfreq2,4,30

anada = 0

outc anada,anada,anada,anada, (averv*kvol1)*(krevpan2), (averv*kvol1)*(1-krevpan2)

ga1 = 0

endin

instr 99

krevtime ctrl7 1,13,0,2

outvalue "revtime",krevtime

krev1 invalue "revtime"

khdiff ctrl7 1,33,0,1

outvalue "hfreq",khdiff

khfreq invalue "hfreq"

krevvol ctrl7 1,14,0,0.5

outvalue "revvol",krevvol

kvol1 invalue "revvol"

krevpan ctrl7 1,15,0,1

outvalue "revpan", krevpan

kprev invalue "revpan"


averv reverb2 ga,krev1, khfreq,4,30


anada = 0


outc anada, anada, anada,anada,anada,anada,(averv*kvol1)*(krevpan), (averv*kvol1)*(1-krevpan)

ga = 0

endin




</CsInstruments>

<CsScore>

f1 0 131072 1 "beats.wav" 0 0 0

f2 0 2097152 1 "chinelos_1.wav" 0 0 0

f3 0 2097152 1 "chinelos_2.wav" 0 0 0

f4 0 2097152 1 "Ambulance.wav" 0 0 0

f5 0 16777216 1 "CrowdTalking_2003_21.wav" 0 0 0

f6 0 4194304 1 "accident.wav" 0 0 0

f7 0 4194304 1 "ambulance_1.wav" 0 0 0

f8 0 4194304 1 "ambulance_2.wav" 0 0 0

f9 0 4194304 1 "ambulance_3.wav" 0 0 0

f10 0 4194304 1 "ambulance_3.wav" 0 0 0

f11 0 4194304 1 "ambulance_4.wav" 0 0 0

f12 0 4194304 1 "aplausos.wav" 0 0 0

f13 0 4194304 1 "bip_1.wav" 0 0 0

f14 0 4194304 1 "bips_and_clecks.wav" 0 0 0

f15 0 4194304 1 "buuu.wav" 0 0 0

f16 0 4194304 1 "buuu_2.wav" 0 0 0

f17 0 4194304 1 "estatica_1.wav" 0 0 0

f18 0 4194304 1 "fabrica_3.wav" 0 0 0

f19 0 4194304 1 "falatorio.wav" 0 0 0

f20 0 4194304 1 "falatorio_2.wav" 0 0 0


f40 0 8192 19 .5 .5 270 .5

f30 0 8192 -2 -1116 -1188 -1277 -1356 0.3 0.4 0.6 0.5

f50 0 16384 9 .5 1 0

;r 10 NN


i 150 0 3600


;i 3 0 3600 .4 17 15 40 1


i99 0 3600

i100 0 3600



e


</CsScore>

</CsoundSynthesizer>




















































































































































2017-06-30 20:29 GMT-03:00 Tarmo Johannes <trmjhnns@gmail.com>:

Hi Guillermo,

 

I am now responsible for developing CsoundQt and I agree - it is harder to get it work properly on Windows than on Linux or OSX, partly because I guess for Andrés and myself, Windows is not the "native" platform and it is somehow more tricky.

 

Also I feel that there is has been much less constructive and helping feedback from Windows users that I can also understand - usually the background of Linux or OSX people is more technical but maybe I am wrong.

 

What I silently wish and hope that more people on Windows would start building CsoundQt, testing and sending feedback during development phase - it is not that hard but the instructions should be made much clearer and updated. Anyway - it is a community project and the time put into it by serveral people pays off.

 

Michael Gogins has done great job preparing the Windows installers, I am myself also learning about Windows builds more and more and the operating system itself, so I believe it is getting better - I agree 100% that the crashes should go away.

 

In short:

 

would you or/and your students care to try the test build for Csound 6.09.1:

https://www.dropbox.com/s/levud2ztktka9f1/Setup_Csound6_x64_6.09.1-vst.exe?dl=0 ?

 

There is one problem about copy/paste that should have been fixed here:

http://tarmo.uuu.ee/varia/failid/cs/CsoundQt/CsoundQt-d-cs6-clipboard-ok.zip

Please extract it, copy into the Csoundx64/bin folder and run it from there.

 

Hope it works better and no more crashes on exit any more!

 

Also please encourage of your stundets to join the CsoundQt mailing list:

https://sourceforge.net/projects/qutecsound/lists/qutecsound-users

about specific porblems of CsoundQt

 

Thanks!

tarmo

 

 

On Friday, June 30, 2017 03:05:08 PM you wrote:

> It is probably unrelated because everyone here uses Windows and it

> happens with different .csd files, but something like 30% of our

> students reported similar problems with CsoundQt, v6.08 and Windows 10.

> It is really difficult to make people want to use Csound with all those

> impediments. And "Run in Term" works so it is not Csound.

>

> On 30/06/17 14:46, Marcelo Carneiro de Lima wrote:

> > Yosemite (mac). Actually if I start to Run the code it goes fine until a

> > certain point. If I press Stop CsoundQt crashes (most of the time), or

> > freezes (sometimes). Other times it stops correctly, but when I try to run

> > it again it freezes. I am checking CsoundQt configurations as Joachim

> > suggested and will try again...

> > Thank you

> > Marcelo

> >

> > 2017-06-30 14:38 GMT-03:00 Victor Lazzarini <Victor.Lazzarini@nuim.ie>:

> >> What OS by the way? Can you isolate the crashing instrument?

> >>

> >> Victor Lazzarini

> >> Dean of Arts, Celtic Studies, and Philosophy

> >> Maynooth University

> >> Ireland

> >>

> >> On 30 Jun 2017, at 18:32, Marcelo Carneiro de Lima <

> >> marcelo.arcos2@GMAIL.COM> wrote:

> >>

> >> Hi, thank you.

> >> I am using Buffers 1024 and 4098 respectively.

> >> The module is portaudio (blocking)

> >> I was not using MIDI modules, now I am.

> >> The MIDI input interface is a Korg NanoKontrol 1 (usb).

> >>

> >> Thanks for the tips about the code, I will check upon the documentation.

> >> Bests

> >> Marcelo

> >>

> >> 2017-06-30 13:36 GMT-03:00 joachim heintz <jh@joachimheintz.de>:

> >>> hi marcelo -

> >>>

> >>> some ideas / suggestions / questions:

> >>>

> >>> - what are the values for Buffer Size (-b) and Hardware Buffer Size (-B)

> >>> in Configure > Run?

> >>> - what is the realtime audio module in the same panel?

> >>> - what is the MIDI input interface? did you choose "use csound MIDI

> >>> modules"?

> >>>

> >>> in general, i would avoid code like this:

> >>>

> >>> kmid ctrl7 1,1,100,15000

> >>> kmid2 ctrl7 1,2,10,1000

> >>> outvalue "freq1", kmid

> >>> outvalue "band2", kmid2

> >>> kfreq1 invalue "freq1"

> >>> kband1 invalue "band2"

> >>>

> >>> because you use the builtin csound midi modules, send the value to the

> >>> widgets and send them back to csound.

> >>>

> >>> csoundqt offers the possibility to directly connect a midi controller

> >>> (slider or knob) with a widget: just open the properties of a widget,

> >>> klick

> >>> on "MIDI Learn", move a controller, and you should see that the widget

> >>> is

> >>> now connected to the controller.

> >>>

> >>> you find more information about the configuration and tips here:

> >>> http://csoundqt.github.io/pages/documentation.html

> >>> in particular:

> >>> http://csoundqt.github.io/pages/configuring-csoundqt.html

> >>> http://csoundqt.github.io/pages/tips-and-tricks.html

> >>>

> >>> hope this helps -

> >>>

> >>> joachim

> >>>

> >>> On 30/06/17 17:38, Marcelo Carneiro de Lima wrote:

> >>>> Hi. I keep experiencing crashes almost everytime I run the code below.

> >>>> I have debugged it and couldn't find anything that could be causing it.

> >>>> I am trying to improvise changing some parameters in real time using a

> >>>> NanoKontrol device with widgets and triggering instruments with Live

> >>>> Events.

> >>>> Thanks.

> >>>> Bests

> >>>> Marcelo

> >>>>

> >>>> MacMini, i7 quad, 16gb, Yosemite.

> >>>>

> >>>> <CsoundSynthesizer>

> >>>>

> >>>> <CsOptions>

> >>>>

> >>>> ; Select audio/midi flags here according to platform

> >>>>

> >>>> -odac ;;;realtime audio out

> >>>>

> >>>> -iadc ;;;uncomment -iadc if realtime audio input is needed too

> >>>>

> >>>> ; For Non-realtime ouput leave only the line below:

> >>>>

> >>>> ; -o tone.wav -W ;;; for file output any platform

> >>>>

> >>>> </CsOptions>

> >>>>

> >>>> <CsInstruments>

> >>>>

> >>>>

> >>>> sr = 48000

> >>>>

> >>>> ksmps = 256

> >>>>

> >>>> 0dbfs = 1

> >>>>

> >>>> nchnls = 2

> >>>>

> >>>>

> >>>> ;git1 ftgen 1,0,131072,1,"beats.wav",0,0,0

> >>>>

> >>>> ;git2 ftgen 2,0,1024,19,.5,.5,270,.5

> >>>>

> >>>> ;git3 ftgen 3,0,131072,1,"chinelos_1.wav",0,0,0

> >>>>

> >>>> ;git4 ftgen 4,0,131072,1,"chinelos_2.wav",0,0,0

> >>>>

> >>>> ga init 0

> >>>>

> >>>> ga1 init 0

> >>>>

> >>>> gkfreq1 init 0

> >>>>

> >>>> gkfreq2 init 0

> >>>>

> >>>> gkband1 init 0

> >>>>

> >>>> gkband2 init 0

> >>>>

> >>>> gkdens1 init 0

> >>>>

> >>>> gktran1 init 0

> >>>>

> >>>> gkoct1 init 0

> >>>>

> >>>> gkgband init 0

> >>>>

> >>>>

> >>>> gkwarp init 0

> >>>>

> >>>> gksamp init 0

> >>>>

> >>>> gkampli init 0

> >>>>

> >>>> gitime init 0

> >>>>

> >>>>

> >>>> gkvol1 init 0

> >>>>

> >>>> gkvol2 init 0

> >>>>

> >>>> gkvol3 init 0

> >>>>

> >>>> ;gaply init 0

> >>>>

> >>>>

> >>>> ;########################################################

> >>>>

> >>>> instr 150

> >>>>

> >>>>

> >>>>

> >>>> ;########### FILTRO 1 ####################

> >>>>

> >>>>

> >>>> kmid ctrl7 1,1,100,15000

> >>>>

> >>>> kmid2 ctrl7 1,2,10,1000

> >>>>

> >>>>

> >>>>

> >>>>

> >>>> outvalue "freq1", kmid

> >>>>

> >>>> outvalue "band2", kmid2

> >>>>

> >>>>

> >>>> kfreq1 invalue "freq1"

> >>>>

> >>>> kband1 invalue "band2"

> >>>>

> >>>>

> >>>> ;########### FILTRO 2 ####################

> >>>>

> >>>>

> >>>> kmid3 ctrl7 1,3,100,15000

> >>>>

> >>>> kmid4 ctrl7 1,4,10,1000

> >>>>

> >>>>

> >>>>

> >>>> outvalue "freq3", kmid3

> >>>>

> >>>> outvalue "band3", kmid4

> >>>>

> >>>> kfreq2 invalue "freq3"

> >>>>

> >>>> kband3 invalue "band3"

> >>>>

> >>>> ;########### GRAOS ######################

> >>>>

> >>>>

> >>>> kdens ctrl7 1,5,10,100

> >>>>

> >>>> ktran ctrl7 1,6,-2,4

> >>>>

> >>>> koct ctrl7 1,7,0,10

> >>>>

> >>>> kbandg ctrl7 1,8,0,10

> >>>>

> >>>>

> >>>> outvalue "dens", kdens

> >>>>

> >>>> outvalue "tran", ktran

> >>>>

> >>>> outvalue "oct", koct

> >>>>

> >>>> outvalue "bandg", kbandg

> >>>>

> >>>>

> >>>>

> >>>> kdens1 invalue "dens"

> >>>>

> >>>> ktran1 invalue "tran"

> >>>>

> >>>> koct1 invalue "oct"

> >>>>

> >>>> kbandg1 invalue "bandg"

> >>>>

> >>>>

> >>>> ;############## WARP ###################

> >>>>

> >>>>

> >>>> kwarp ctrl7 1,10,0,2

> >>>>

> >>>> ksamp ctrl7 1,11,0.2,3

> >>>>

> >>>> kampli ctrl7 1,12,0,1.1

> >>>>

> >>>> itime ctrl7 1,32,0,1

> >>>>

> >>>>

> >>>>

> >>>> outvalue "warp", kwarp

> >>>>

> >>>> outvalue "samp", ksamp

> >>>>

> >>>> outvalue "ampli", kampli

> >>>>

> >>>> outvalue "time", itime

> >>>>

> >>>>

> >>>> kwarpin invalue "warp"

> >>>>

> >>>> ksampin invalue "samp"

> >>>>

> >>>> kampli1 invalue "ampli"

> >>>>

> >>>> itime2 invalue "time"

> >>>>

> >>>>

> >>>>

> >>>> ;################ VOLUME ################

> >>>>

> >>>> ;volume3

> >>>>

> >>>>

> >>>> kvol3 ctrl7 3,12,0.001,2

> >>>>

> >>>> outvalue "vol3",kvol3

> >>>>

> >>>> kvolume3 invalue "vol3"

> >>>>

> >>>>

> >>>> ;volume 2

> >>>>

> >>>>

> >>>> kvol2 ctrl7 3,11,0.001,1

> >>>>

> >>>> outvalue "vol2",kvol2

> >>>>

> >>>> kvolume2 invalue "vol2"

> >>>>

> >>>>

> >>>> ;volume 1

> >>>>

> >>>>

> >>>> kvol1 ctrl7 3,10,0.001,1

> >>>>

> >>>> outvalue "vol1",kvol1

> >>>>

> >>>> kvolume1 invalue "vol1"

> >>>>

> >>>>

> >>>> ;########### GLOBAL ####################

> >>>>

> >>>>

> >>>> gkfreq1 = kfreq1

> >>>>

> >>>> gkfreq2 = kfreq2

> >>>>

> >>>> gkband1 = kband1

> >>>>

> >>>> gkband2 = kband3

> >>>>

> >>>>

> >>>> gkdens1 = kdens1

> >>>>

> >>>> gktran1 = ktran1

> >>>>

> >>>> gkoct1 = koct1

> >>>>

> >>>> gkgband = kbandg1

> >>>>

> >>>>

> >>>> gkwarp = kwarpin

> >>>>

> >>>> gksamp = ksampin

> >>>>

> >>>> gkampli = kampli1

> >>>>

> >>>> gitime = itime2

> >>>>

> >>>>

> >>>> gkvol1 = kvolume1

> >>>>

> >>>> gkvol2 = kvolume2

> >>>>

> >>>> gkvol3 = kvolume3

> >>>>

> >>>>

> >>>> endin

> >>>>

> >>>>

> >>>> instr 1

> >>>>

> >>>>

> >>>> ir filenchnls p4

> >>>>

> >>>>

> >>>> if ir == 1 then

> >>>>

> >>>> asig diskin p4, 1

> >>>>

> >>>> elseif ir == 2 then

> >>>>

> >>>> asig,asig2 diskin p4, 1

> >>>>

> >>>> asig = asig + asig2

> >>>>

> >>>>

> >>>> asig3 balance asig, asig

> >>>>

> >>>> endif

> >>>>

> >>>>

> >>>> afilt butterbp asig3, gkfreq1, gkband1

> >>>>

> >>>> anada oscil 0,0,50

> >>>>

> >>>> outs (afilt*gkvol1)*.7, (afilt*gkvol1)*.8

> >>>>

> >>>> endin

> >>>>

> >>>>

> >>>> instr 2

> >>>>

> >>>>

> >>>>

> >>>> isamp = sr/ftlen(3)

> >>>>

> >>>> a1 phasor isamp*p5

> >>>>

> >>>> iamp = p4

> >>>>

> >>>> iolaps = 150

> >>>>

> >>>> ifna = p6

> >>>>

> >>>> ifnb = 40

> >>>>

> >>>> itotdur = p3

> >>>>

> >>>> ;kton ctrl7 6,7,0,15000 ;all the way down to 0 Hz

> >>>>

> >>>> asig fog iamp,gkdens1,gktran1,a1,gkoct1,gkgband,.01,.5,.002, iolaps,

> >>>> ifna,ifnb,itotdur

> >>>>

> >>>>

> >>>> afilt butterbp asig, gkfreq2, gkband2

> >>>>

> >>>> ;asig tone asig, kton ;half-power point at 500 Hz

> >>>>

> >>>>

> >>>> kpan ctrl7 3,1,0,1

> >>>>

> >>>> outvalue "pan", kpan

> >>>>

> >>>> kpanv invalue "pan"

> >>>>

> >>>>

> >>>> asig=asig*(gkvol2*.9)

> >>>>

> >>>> afilt=afilt*gkvol2

> >>>>

> >>>>

> >>>> outs (asig+afilt)*(1-kpanv),(asig+afilt)*kpanv

> >>>>

> >>>> ga = asig+afilt

> >>>>

> >>>> gkfreq2 = 0

> >>>>

> >>>> gkband2 = 0

> >>>>

> >>>> gkdens1 = 0

> >>>>

> >>>> gktran1 = 0

> >>>>

> >>>> gkoct1 = 0

> >>>>

> >>>> gkgband = 0

> >>>>

> >>>>

> >>>> endin

> >>>>

> >>>>

> >>>> instr 3

> >>>>

> >>>> iamp = p4

> >>>>

> >>>> ifn1 = p5

> >>>>

> >>>> ibeg = p6

> >>>>

> >>>> iwsize = sr/10

> >>>>

> >>>> ioverlap = p7

> >>>>

> >>>> irandw = iwsize*0.2

> >>>>

> >>>> ifnb = p8

> >>>>

> >>>> itime = p9

> >>>>

> >>>> ;iwarp = p10

> >>>>

> >>>> ;isamp = p11

> >>>>

> >>>>

> >>>> ir filenchnls p10

> >>>>

> >>>> print ir

> >>>>

> >>>> if ir <= 1 then

> >>>>

> >>>>

> >>>>

> >>>>

> >>>> awarp1,acr1 sndwarp iamp,

> >>>> gkwarp,gksamp,ifn1,ibeg,iwsize,irandw,ioverlap,ifnb,gitime

> >>>>

> >>>>

> >>>> abal1 balance awarp1,acr1

> >>>>

> >>>> abal1 =abal1*.8

> >>>>

> >>>> abal1 dcblock abal1

> >>>>

> >>>> outs abal1*.8, abal1*.9

> >>>>

> >>>>

> >>>>

> >>>> elseif ir == 2 then

> >>>>

> >>>>

> >>>> awarp1,awarp2,acr1,acr2 sndwarpst iamp,

> >>>> gkwarp,gksamp,ifn1,ibeg,iwsize,irandw,ioverlap,ifnb,gitime

> >>>>

> >>>>

> >>>> abal1 balance awarp1, acr1

> >>>>

> >>>> abal2 balance awarp2, acr2

> >>>>

> >>>> abal1 = abal1*.8

> >>>>

> >>>> abal2 = abal2*.7

> >>>>

> >>>> abal1 dcblock abal1

> >>>>

> >>>> abal2 dcblock abal2

> >>>>

> >>>> outs abal1*.62, abal2*.5

> >>>>

> >>>> endif

> >>>>

> >>>>

> >>>> ga1 = abal1 + abal2

> >>>>

> >>>>

> >>>> gkwarp = 0

> >>>>

> >>>> gksamp = 0

> >>>>

> >>>> gkampli = 0

> >>>>

> >>>> gitime = 0

> >>>>

> >>>> endin

> >>>>

> >>>>

> >>>> instr 100

> >>>>

> >>>> krevtime2 ctrl7 1,16,0,2

> >>>>

> >>>> outvalue "revtime2",krevtime2

> >>>>

> >>>> krev1 invalue "revtime2"

> >>>>

> >>>> khdiff2 ctrl7 1,34,0,1

> >>>>

> >>>> outvalue "hfreq2",khdiff2

> >>>>

> >>>> khfreq2 invalue "hfreq2"

> >>>>

> >>>> krevvol2 ctrl7 1,17,0,0.5

> >>>>

> >>>> outvalue "revvol2",krevvol2

> >>>>

> >>>> kvol1 invalue "revvol2"

> >>>>

> >>>> krevpan2 ctrl7 1,18,0,1

> >>>>

> >>>> outvalue "revpan2", krevpan2

> >>>>

> >>>> kprev invalue "revpan2"

> >>>>

> >>>>

> >>>> averv reverb2 ga1,krev1, khfreq2,4,30

> >>>>

> >>>> anada = 0

> >>>>

> >>>> outs (averv*kvol1)*(krevpan2), (averv*kvol1)*(1-krevpan2)

> >>>>

> >>>> ga1 = 0

> >>>>

> >>>> endin

> >>>>

> >>>> instr 99

> >>>>

> >>>> krevtime ctrl7 1,13,0,2

> >>>>

> >>>> outvalue "revtime",krevtime

> >>>>

> >>>> krev1 invalue "revtime"

> >>>>

> >>>> khdiff ctrl7 1,33,0,1

> >>>>

> >>>> outvalue "hfreq",khdiff

> >>>>

> >>>> khfreq invalue "hfreq"

> >>>>

> >>>> krevvol ctrl7 1,14,0,0.5

> >>>>

> >>>> outvalue "revvol",krevvol

> >>>>

> >>>> kvol1 invalue "revvol"

> >>>>

> >>>> krevpan ctrl7 1,15,0,1

> >>>>

> >>>> outvalue "revpan", krevpan

> >>>>

> >>>> kprev invalue "revpan"

> >>>>

> >>>>

> >>>> averv reverb2 ga,krev1, khfreq,4,30

> >>>>

> >>>>

> >>>> anada = 0

> >>>>

> >>>>

> >>>> outs (averv*kvol1)*(krevpan), (averv*kvol1)*(1-krevpan)

> >>>>

> >>>> ga = 0

> >>>>

> >>>> endin

> >>>>

> >>>>

> >>>>

> >>>>

> >>>> </CsInstruments>

> >>>>

> >>>> <CsScore>

> >>>>

> >>>> f1 0 131072 1 "beats.wav" 0 0 0

> >>>>

> >>>> f2 0 2097152 1 "chinelos_1.wav" 0 0 0

> >>>>

> >>>> f3 0 2097152 1 "chinelos_2.wav" 0 0 0

> >>>>

> >>>> f4 0 2097152 1 "Ambulance.wav" 0 0 0

> >>>>

> >>>> f5 0 16777216 1 "CrowdTalking_2003_21.wav" 0 0 0

> >>>>

> >>>> f6 0 4194304 1 "accident.wav" 0 0 0

> >>>>

> >>>> f7 0 4194304 1 "ambulance_1.wav" 0 0 0

> >>>>

> >>>> f8 0 4194304 1 "ambulance_2.wav" 0 0 0

> >>>>

> >>>> f9 0 4194304 1 "ambulance_3.wav" 0 0 0

> >>>>

> >>>> f10 0 4194304 1 "ambulance_3.wav" 0 0 0

> >>>>

> >>>> f11 0 4194304 1 "ambulance_4.wav" 0 0 0

> >>>>

> >>>> f12 0 4194304 1 "aplausos.wav" 0 0 0

> >>>>

> >>>> f13 0 4194304 1 "bip_1.wav" 0 0 0

> >>>>

> >>>> f14 0 4194304 1 "bips_and_clecks.wav" 0 0 0

> >>>>

> >>>> f15 0 4194304 1 "buuu.wav" 0 0 0

> >>>>

> >>>> f16 0 4194304 1 "buuu_2.wav" 0 0 0

> >>>>

> >>>> f17 0 4194304 1 "estatica_1.wav" 0 0 0

> >>>>

> >>>> f18 0 4194304 1 "fabrica_3.wav" 0 0 0

> >>>>

> >>>> f19 0 4194304 1 "falatorio.wav" 0 0 0

> >>>>

> >>>> f20 0 4194304 1 "falatorio_2.wav" 0 0 0

> >>>>

> >>>>

> >>>> f40 0 8192 19 .5 .5 270 .5

> >>>>

> >>>> f30 0 8192 -2 -1116 -1188 -1277 -1356 0.3 0.4 0.6 0.5

> >>>>

> >>>> f50 0 16384 9 .5 1 0

> >>>>

> >>>> ;r 10 NN

> >>>>

> >>>>

> >>>> i 150 0 3600

> >>>>

> >>>>

> >>>> ;i 3 0 3600 .4 17 15 40 1

> >>>>

> >>>>

> >>>> i99 0 3600

> >>>>

> >>>> i100 0 3600

> >>>>

> >>>>

> >>>>

> >>>> e

> >>>>

> >>>>

> >>>> </CsScore>

> >>>>

> >>>> </CsoundSynthesizer>

> >>>>

> >>>>

> >>>>

> >>>>

> >>>>

> >>>>

> >>>> ​

> >>>>

> >>>>

> >>>>

> >>>>

> >>>>

> >>>>

> >>>>

> >>>>

> >>>>

> >>>>

> >>>>

> >>>>

> >>>>

> >>>>

> >>>>

> >>>>

> >>>>

> >>>>

> >>>>

> >>>>

> >>>>

> >>>>

> >>>>

> >>>>

> >>>>

> >>>>

> >>>>

> >>>>

> >>>>

> >>>>

> >>>>

> >>>>

> >>>>

> >>>>

> >>>>

> >>>>

> >>>>

> >>>>

> >>>>

> >>>>

> >>>>

> >>>>

> >>>>

> >>>>

> >>>>

> >>>>

> >>>>

> >>>>

> >>>>

> >>>>

> >>>>

> >>>>

> >>>>

> >>>>

> >>>>

> >>>>

> >>>>

> >>>>

> >>>>

> >>>>

> >>>>

> >>>>

> >>>>

> >>>>

> >>>>

> >>>>

> >>>>

> >>>>

> >>>>

> >>>>

> >>>>

> >>>>

> >>>>

> >>>>

> >>>>

> >>>>

> >>>>

> >>>>

> >>>>

> >>>>

> >>>>

> >>>>

> >>>>

> >>>>

> >>>>

> >>>>

> >>>>

> >>>>

> >>>>

> >>>>

> >>>>

> >>>>

> >>>>

> >>>>

> >>>>

> >>>>

> >>>>

> >>>>

> >>>>

> >>>>

> >>>>

> >>>>

> >>>>

> >>>>

> >>>>

> >>>>

> >>>>

> >>>>

> >>>>

> >>>>

> >>>>

> >>>>

> >>>>

> >>>>

> >>>>

> >>>>

> >>>>

> >>>>

> >>>>

> >>>>

> >>>>

> >>>>

> >>>>

> >>>>

> >>>>

> >>>>

> >>>>

> >>>>

> >>>> --

> >>>> *Marcelo Carneiro*

> >>>> (21) 9382-3621

> >>>> (21) 3497-0193

> >>>> Skype: Carneiro3729

> >>>> http://marceloarcos2.wixsite.com/marcelocarneiro

> >>>> Csound mailing list Csound@listserv.heanet.ie

> >>>> <mailto:Csound@listserv.heanet.ie>

> >>>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to

> >>>> https://github.com/csound/csound/issues Discussions of bugs and

> >>>> features

> >>>> can be posted here

> >>>

> >>> Csound mailing list

> >>> Csound@listserv.heanet.ie

> >>> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND

> >>> Send bugs reports to

> >>>

> >>> https://github.com/csound/csound/issues

> >>>

> >>> Discussions of bugs and features can be posted here

> >>

> >> --

> >> *Marcelo Carneiro*

> >> (21) 9382-3621

> >> (21) 3497-0193

> >> Skype: Carneiro3729

> >> http://marceloarcos2.wixsite.com/marcelocarneiro

> >> Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/

> >> cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/

> >> csound/issues Discussions of bugs and features can be posted here

> >>

> >> Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/

> >> cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/

> >> csound/issues Discussions of bugs and features can be posted here

>

> Csound mailing list

> Csound@listserv.heanet.ie

> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND

> Send bugs reports to

> https://github.com/csound/csound/issues

> Discussions of bugs and features can be posted here

 

Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here



--
Marcelo Carneiro
(21) 9382-3621
(21) 3497-0193
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here

Date2017-07-01 23:47
FromGuillermo Senna
SubjectRe: Crashes CsoundQt 0.94 Csound 6.09
Hi Tarmo,

Please forgive me if my previous email sounded like I was going after
the developers. I can only imagine how hard it must be to build
multiplatform software that works well for everyone. I think what you're
doing is great and I'm grateful for all the time you devote to CsoundQt.

Now, I'm not a Windows user myself, but over here almost everyone is.
I'll send an email to the students that had problems to see if they are
willing to try that test build.

I don't think I can convince anyone to join the mailing list. Our
University has a more traditional/classical curriculum and
-unfortunately for me- there is very little "technical" people among the
students. On top of that, we speak Spanish.

Anyway, thanks again and I'll let you know how the test build worked for
them!


On 30/06/17 20:29, Tarmo Johannes wrote:
> Hi Guillermo,
>
> I am now responsible for developing CsoundQt and I agree -  it is harder to get it 
> work properly on Windows than on Linux or OSX, partly because I guess for Andrés 
> and myself, Windows is not the "native" platform and it is somehow more tricky.
>
> Also I feel that there is has been much less constructive and helping feedback from 
> Windows users that I can also understand - usually the background of  Linux or OSX 
> people is more technical but maybe I am wrong.
>
> What I silently wish and hope that more people on Windows would start building 
> CsoundQt, testing and sending feedback during development phase - it is not that 
> hard but the instructions should be made much clearer and updated. Anyway - it is 
> a community project and the time put into it by serveral people pays off.
>
> Michael Gogins has done great job preparing the Windows installers, I am myself 
> also learning about Windows builds more and more and the operating system itself, 
> so I believe it is getting better -  I agree 100% that the crashes should go away.
>
> In short:
>
> would you or/and your students care to try the test build for Csound 6.09.1:
> https://www.dropbox.com/s/levud2ztktka9f1/Setup_Csound6_x64_6.09.1-vst.exe?dl=0 ?
>
> There is one problem about copy/paste that should have been fixed here:
> http://tarmo.uuu.ee/varia/failid/cs/CsoundQt/CsoundQt-d-cs6-clipboard-ok.zip
> Please extract it, copy into the Csoundx64/bin folder and run it from there.
>
> Hope it works better and no more crashes on exit any more!
>
> Also please encourage of your stundets to join the CsoundQt mailing list:
> https://sourceforge.net/projects/qutecsound/lists/qutecsound-users
> about specific porblems of CsoundQt
>
> Thanks!
> tarmo
>
>
> On Friday, June 30, 2017 03:05:08 PM you wrote:
>> It is probably unrelated because everyone here uses Windows and it
>> happens with different .csd files, but something like 30% of our
>> students reported similar problems with CsoundQt, v6.08 and Windows 10.
>> It is really difficult to make people want to use Csound with all those
>> impediments. And "Run in Term" works so it is not Csound.
>>
>> On 30/06/17 14:46, Marcelo Carneiro de Lima wrote:
>>> Yosemite (mac). Actually if I start to Run the code it goes fine until a
>>> certain point. If I press Stop CsoundQt crashes (most of the time), or
>>> freezes (sometimes). Other times it stops correctly, but when I try to run
>>> it again it freezes. I am checking CsoundQt configurations as Joachim
>>> suggested and will try again...
>>> Thank you
>>> Marcelo
>>>
>>> 2017-06-30 14:38 GMT-03:00 Victor Lazzarini :
>>>> What OS by the way? Can you isolate the crashing instrument?
>>>>
>>>> Victor Lazzarini
>>>> Dean of Arts, Celtic Studies, and Philosophy
>>>> Maynooth University
>>>> Ireland
>>>>
>>>> On 30 Jun 2017, at 18:32, Marcelo Carneiro de Lima <
>>>> marcelo.arcos2@GMAIL.COM> wrote:
>>>>
>>>> Hi, thank you.
>>>> I am using Buffers 1024 and 4098 respectively.
>>>> The module is portaudio (blocking)
>>>> I was not using MIDI modules, now I am.
>>>> The MIDI input interface is a Korg NanoKontrol 1 (usb).
>>>>
>>>> Thanks for the tips about the code, I will check upon the documentation.
>>>> Bests
>>>> Marcelo
>>>>
>>>> 2017-06-30 13:36 GMT-03:00 joachim heintz :
>>>>> hi marcelo -
>>>>>
>>>>> some ideas / suggestions / questions:
>>>>>
>>>>> - what are the values for Buffer Size (-b) and Hardware Buffer Size (-B)
>>>>> in Configure > Run?
>>>>> - what is the realtime audio module in the same panel?
>>>>> - what is the MIDI input interface? did you choose "use csound MIDI
>>>>> modules"?
>>>>>
>>>>> in general, i would avoid code like this:
>>>>>
>>>>> kmid ctrl7 1,1,100,15000
>>>>> kmid2 ctrl7 1,2,10,1000
> Csound mailing list
> Csound@listserv.heanet.ie
> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
> Send bugs reports to
>         https://github.com/csound/csound/issues
> Discussions of bugs and features can be posted here

Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here