Csound Csound-dev Csound-tekno Search About

[Csnd] diskgrain and random pop in one channel

Date2009-05-03 17:06
Frompeiman khosravi
Subject[Csnd] diskgrain and random pop in one channel
Hello,

for some strange reason I am getting a horrible pop in the left channel every time I use the csd bellow (basically the diskgrain opcode. Regardless of what soundfile I use... I believe this instrument was working faultlessly in the past.

I am on osx using the latest csound float (installed with the installer).

Any ideas are appreciated.

Thanks in advance
Peiman

;
; ""
; by peiman khosravi
;
;
; Generated by blue 0.125.0 (http://csounds.com/stevenyi/blue/index.html)
;

<CsoundSynthesizer>

<CsInstruments>
sr=96000
ksmps=10
nchnls=2

gitenvelop_2 ftgen 0, 0, 32768, -20, 2

instr 2 ;Diskgrain
Sfname strget p5
ipitch = semitone(p4)
iolaps = p8
igrsize = p9
krand  randi .001, p11
kgrsize = igrsize ;+krand
kgrsize limit   kgrsize,igrsize-.01, igrsize
ifreq = iolaps/igrsize
ips = 1/iolaps
istr = p6  /* timescale */
a1, a2 diskgrain Sfname, 32000, ifreq, ipitch, kgrsize, ips*istr, gitenvelop_2 , iolaps+1
outs a1, a2
endin


</CsInstruments>

<CsScore>

i2 0.0 10 0.0 "/Volumes/Peiman120GB/sounds/gongWarp/gong-0_1-warp.aif" 1.0 0 2 0.48946387 2.84603020.0
e

</CsScore>

</CsoundSynthesizer>

Date2009-05-03 17:28
Fromvictor
Subject[Csnd] Re: diskgrain and random pop in one channel
This looks suspicious: 2.84603020.0
----- Original Message -----
Sent: Sunday, May 03, 2009 5:06 PM
Subject: [Csnd] diskgrain and random pop in one channel

Hello,

for some strange reason I am getting a horrible pop in the left channel every time I use the csd bellow (basically the diskgrain opcode. Regardless of what soundfile I use... I believe this instrument was working faultlessly in the past.

I am on osx using the latest csound float (installed with the installer).

Any ideas are appreciated.

Thanks in advance
Peiman

;
; ""
; by peiman khosravi
;
;
; Generated by blue 0.125.0 (http://csounds.com/stevenyi/blue/index.html)
;

<CsoundSynthesizer>

<CsInstruments>
sr=96000
ksmps=10
nchnls=2

gitenvelop_2 ftgen 0, 0, 32768, -20, 2

instr 2 ;Diskgrain
Sfname strget p5
ipitch = semitone(p4)
iolaps = p8
igrsize = p9
krand  randi .001, p11
kgrsize = igrsize ;+krand
kgrsize limit   kgrsize,igrsize-.01, igrsize
ifreq = iolaps/igrsize
ips = 1/iolaps
istr = p6  /* timescale */
a1, a2 diskgrain Sfname, 32000, ifreq, ipitch, kgrsize, ips*istr, gitenvelop_2 , iolaps+1
outs a1, a2
endin


</CsInstruments>

<CsScore>

i2 0.0 10 0.0 "/Volumes/Peiman120GB/sounds/gongWarp/gong-0_1-warp.aif" 1.0 0 2 0.48946387 2.84603020.0
e

</CsScore>

</CsoundSynthesizer>

Date2009-05-03 17:38
Fromvictor
Subject[Csnd] Re: Re: diskgrain and random pop in one channel
...but there is something wrong with diskgrain.
----- Original Message -----
From: victor
Sent: Sunday, May 03, 2009 5:28 PM
Subject: [Csnd] Re: diskgrain and random pop in one channel

This looks suspicious: 2.84603020.0
----- Original Message -----
Sent: Sunday, May 03, 2009 5:06 PM
Subject: [Csnd] diskgrain and random pop in one channel

Hello,

for some strange reason I am getting a horrible pop in the left channel every time I use the csd bellow (basically the diskgrain opcode. Regardless of what soundfile I use... I believe this instrument was working faultlessly in the past.

I am on osx using the latest csound float (installed with the installer).

Any ideas are appreciated.

Thanks in advance
Peiman

;
; ""
; by peiman khosravi
;
;
; Generated by blue 0.125.0 (http://csounds.com/stevenyi/blue/index.html)
;

<CsoundSynthesizer>

<CsInstruments>
sr=96000
ksmps=10
nchnls=2

gitenvelop_2 ftgen 0, 0, 32768, -20, 2

instr 2 ;Diskgrain
Sfname strget p5
ipitch = semitone(p4)
iolaps = p8
igrsize = p9
krand  randi .001, p11
kgrsize = igrsize ;+krand
kgrsize limit   kgrsize,igrsize-.01, igrsize
ifreq = iolaps/igrsize
ips = 1/iolaps
istr = p6  /* timescale */
a1, a2 diskgrain Sfname, 32000, ifreq, ipitch, kgrsize, ips*istr, gitenvelop_2 , iolaps+1
outs a1, a2
endin


</CsInstruments>

<CsScore>

i2 0.0 10 0.0 "/Volumes/Peiman120GB/sounds/gongWarp/gong-0_1-warp.aif" 1.0 0 2 0.48946387 2.84603020.0
e

</CsScore>

</CsoundSynthesizer>

Date2009-05-03 17:38
Frompeiman khosravi
Subject[Csnd] Re: Re: diskgrain and random pop in one channel
Thanks Victor,

That was indeed a miss type due to incomplete copy and pasting from blue. But changing it doesn't seem to make any difference to the distortion at the beginning of the performance. 

Try this score event (changing the soundfile path of course):

i2 0.0 11.0220384598 -14.872631 "/Volumes/Peiman120GB/sounds/gongWarp/gong rub.wav" 0.8634113 0 8 0.108215176 2.8460302 577.25574

Thanks
Peiman

2009/5/3 victor <Victor.Lazzarini@nuim.ie>
This looks suspicious: 2.84603020.0
----- Original Message -----
Sent: Sunday, May 03, 2009 5:06 PM
Subject: [Csnd] diskgrain and random pop in one channel

Hello,

for some strange reason I am getting a horrible pop in the left channel every time I use the csd bellow (basically the diskgrain opcode. Regardless of what soundfile I use... I believe this instrument was working faultlessly in the past.

I am on osx using the latest csound float (installed with the installer).

Any ideas are appreciated.

Thanks in advance
Peiman

;
; ""
; by peiman khosravi
;
;
; Generated by blue 0.125.0 (http://csounds.com/stevenyi/blue/index.html)
;

<CsoundSynthesizer>

<CsInstruments>
sr=96000
ksmps=10
nchnls=2

gitenvelop_2 ftgen 0, 0, 32768, -20, 2

instr 2 ;Diskgrain
Sfname strget p5
ipitch = semitone(p4)
iolaps = p8
igrsize = p9
krand  randi .001, p11
kgrsize = igrsize ;+krand
kgrsize limit   kgrsize,igrsize-.01, igrsize
ifreq = iolaps/igrsize
ips = 1/iolaps
istr = p6  /* timescale */
a1, a2 diskgrain Sfname, 32000, ifreq, ipitch, kgrsize, ips*istr, gitenvelop_2 , iolaps+1
outs a1, a2
endin


</CsInstruments>

<CsScore>

i2 0.0 10 0.0 "/Volumes/Peiman120GB/sounds/gongWarp/gong-0_1-warp.aif" 1.0 0 2 0.48946387 2.84603020.0
e

</CsScore>

</CsoundSynthesizer>


Date2009-05-03 17:44
Frompeiman khosravi
Subject[Csnd] Re: Re: Re: diskgrain and random pop in one channel
I meant "mistype"!! 

2009/5/3 victor <Victor.Lazzarini@nuim.ie>
...but there is something wrong with diskgrain.
----- Original Message -----
From: victor
Sent: Sunday, May 03, 2009 5:28 PM
Subject: [Csnd] Re: diskgrain and random pop in one channel

This looks suspicious: 2.84603020.0
----- Original Message -----
Sent: Sunday, May 03, 2009 5:06 PM
Subject: [Csnd] diskgrain and random pop in one channel

Hello,

for some strange reason I am getting a horrible pop in the left channel every time I use the csd bellow (basically the diskgrain opcode. Regardless of what soundfile I use... I believe this instrument was working faultlessly in the past.

I am on osx using the latest csound float (installed with the installer).

Any ideas are appreciated.

Thanks in advance
Peiman

;
; ""
; by peiman khosravi
;
;
; Generated by blue 0.125.0 (http://csounds.com/stevenyi/blue/index.html)
;

<CsoundSynthesizer>

<CsInstruments>
sr=96000
ksmps=10
nchnls=2

gitenvelop_2 ftgen 0, 0, 32768, -20, 2

instr 2 ;Diskgrain
Sfname strget p5
ipitch = semitone(p4)
iolaps = p8
igrsize = p9
krand  randi .001, p11
kgrsize = igrsize ;+krand
kgrsize limit   kgrsize,igrsize-.01, igrsize
ifreq = iolaps/igrsize
ips = 1/iolaps
istr = p6  /* timescale */
a1, a2 diskgrain Sfname, 32000, ifreq, ipitch, kgrsize, ips*istr, gitenvelop_2 , iolaps+1
outs a1, a2
endin


</CsInstruments>

<CsScore>

i2 0.0 10 0.0 "/Volumes/Peiman120GB/sounds/gongWarp/gong-0_1-warp.aif" 1.0 0 2 0.48946387 2.84603020.0
e

</CsScore>

</CsoundSynthesizer>


Date2009-05-03 18:24
Fromvictor
Subject[Csnd] Re: Re: Re: Re: diskgrain and random pop in one channel
The fact is that using CVS sources at the moment, there seems to be something
very wrong with diskgrain and syncgrain too. I can't seem to understand what is
wrong (feels just like some silly mistake). It's way too slow and producing the wrong
output. I will see if I can find why. Nothing much has changed in the code, so
that is why it is strange.
 
There was a problem with diskgrain but I have a feeling it was sorted before the last
release.
 
Victor
----- Original Message -----
Sent: Sunday, May 03, 2009 5:44 PM
Subject: [Csnd] Re: Re: Re: diskgrain and random pop in one channel

I meant "mistype"!! 

2009/5/3 victor <Victor.Lazzarini@nuim.ie>
...but there is something wrong with diskgrain.
----- Original Message -----
From: victor
Sent: Sunday, May 03, 2009 5:28 PM
Subject: [Csnd] Re: diskgrain and random pop in one channel

This looks suspicious: 2.84603020.0
----- Original Message -----
Sent: Sunday, May 03, 2009 5:06 PM
Subject: [Csnd] diskgrain and random pop in one channel

Hello,

for some strange reason I am getting a horrible pop in the left channel every time I use the csd bellow (basically the diskgrain opcode. Regardless of what soundfile I use... I believe this instrument was working faultlessly in the past.

I am on osx using the latest csound float (installed with the installer).

Any ideas are appreciated.

Thanks in advance
Peiman

;
; ""
; by peiman khosravi
;
;
; Generated by blue 0.125.0 (http://csounds.com/stevenyi/blue/index.html)
;

<CsoundSynthesizer>

<CsInstruments>
sr=96000
ksmps=10
nchnls=2

gitenvelop_2 ftgen 0, 0, 32768, -20, 2

instr 2 ;Diskgrain
Sfname strget p5
ipitch = semitone(p4)
iolaps = p8
igrsize = p9
krand  randi .001, p11
kgrsize = igrsize ;+krand
kgrsize limit   kgrsize,igrsize-.01, igrsize
ifreq = iolaps/igrsize
ips = 1/iolaps
istr = p6  /* timescale */
a1, a2 diskgrain Sfname, 32000, ifreq, ipitch, kgrsize, ips*istr, gitenvelop_2 , iolaps+1
outs a1, a2
endin


</CsInstruments>

<CsScore>

i2 0.0 10 0.0 "/Volumes/Peiman120GB/sounds/gongWarp/gong-0_1-warp.aif" 1.0 0 2 0.48946387 2.84603020.0
e

</CsScore>

</CsoundSynthesizer>


Date2009-05-03 18:59
Fromvictor
Subject[Csnd] Re: Re: Re: Re: Re: diskgrain and random pop in one channel
I found the bug in CVS. Will discuss a fix with John.
----- Original Message -----
From: victor
Sent: Sunday, May 03, 2009 6:24 PM
Subject: [Csnd] Re: Re: Re: Re: diskgrain and random pop in one channel

The fact is that using CVS sources at the moment, there seems to be something
very wrong with diskgrain and syncgrain too. I can't seem to understand what is
wrong (feels just like some silly mistake). It's way too slow and producing the wrong
output. I will see if I can find why. Nothing much has changed in the code, so
that is why it is strange.
 
There was a problem with diskgrain but I have a feeling it was sorted before the last
release.
 
Victor
----- Original Message -----
Sent: Sunday, May 03, 2009 5:44 PM
Subject: [Csnd] Re: Re: Re: diskgrain and random pop in one channel

I meant "mistype"!! 

2009/5/3 victor <Victor.Lazzarini@nuim.ie>
...but there is something wrong with diskgrain.
----- Original Message -----
From: victor
Sent: Sunday, May 03, 2009 5:28 PM
Subject: [Csnd] Re: diskgrain and random pop in one channel

This looks suspicious: 2.84603020.0
----- Original Message -----
Sent: Sunday, May 03, 2009 5:06 PM
Subject: [Csnd] diskgrain and random pop in one channel

Hello,

for some strange reason I am getting a horrible pop in the left channel every time I use the csd bellow (basically the diskgrain opcode. Regardless of what soundfile I use... I believe this instrument was working faultlessly in the past.

I am on osx using the latest csound float (installed with the installer).

Any ideas are appreciated.

Thanks in advance
Peiman

;
; ""
; by peiman khosravi
;
;
; Generated by blue 0.125.0 (http://csounds.com/stevenyi/blue/index.html)
;

<CsoundSynthesizer>

<CsInstruments>
sr=96000
ksmps=10
nchnls=2

gitenvelop_2 ftgen 0, 0, 32768, -20, 2

instr 2 ;Diskgrain
Sfname strget p5
ipitch = semitone(p4)
iolaps = p8
igrsize = p9
krand  randi .001, p11
kgrsize = igrsize ;+krand
kgrsize limit   kgrsize,igrsize-.01, igrsize
ifreq = iolaps/igrsize
ips = 1/iolaps
istr = p6  /* timescale */
a1, a2 diskgrain Sfname, 32000, ifreq, ipitch, kgrsize, ips*istr, gitenvelop_2 , iolaps+1
outs a1, a2
endin


</CsInstruments>

<CsScore>

i2 0.0 10 0.0 "/Volumes/Peiman120GB/sounds/gongWarp/gong-0_1-warp.aif" 1.0 0 2 0.48946387 2.84603020.0
e

</CsScore>

</CsoundSynthesizer>


Date2009-05-03 19:04
Frompeiman khosravi
Subject[Csnd] Re: Re: Re: Re: Re: Re: diskgrain and random pop in one channel
Thanks very much.

Best
Peiman

2009/5/3 victor <Victor.Lazzarini@nuim.ie>
I found the bug in CVS. Will discuss a fix with John.
----- Original Message -----
From: victor
Sent: Sunday, May 03, 2009 6:24 PM
Subject: [Csnd] Re: Re: Re: Re: diskgrain and random pop in one channel

The fact is that using CVS sources at the moment, there seems to be something
very wrong with diskgrain and syncgrain too. I can't seem to understand what is
wrong (feels just like some silly mistake). It's way too slow and producing the wrong
output. I will see if I can find why. Nothing much has changed in the code, so
that is why it is strange.
 
There was a problem with diskgrain but I have a feeling it was sorted before the last
release.
 
Victor
----- Original Message -----
Sent: Sunday, May 03, 2009 5:44 PM
Subject: [Csnd] Re: Re: Re: diskgrain and random pop in one channel

I meant "mistype"!! 

2009/5/3 victor <Victor.Lazzarini@nuim.ie>
...but there is something wrong with diskgrain.
----- Original Message -----
From: victor
Sent: Sunday, May 03, 2009 5:28 PM
Subject: [Csnd] Re: diskgrain and random pop in one channel

This looks suspicious: 2.84603020.0
----- Original Message -----
Sent: Sunday, May 03, 2009 5:06 PM
Subject: [Csnd] diskgrain and random pop in one channel

Hello,

for some strange reason I am getting a horrible pop in the left channel every time I use the csd bellow (basically the diskgrain opcode. Regardless of what soundfile I use... I believe this instrument was working faultlessly in the past.

I am on osx using the latest csound float (installed with the installer).

Any ideas are appreciated.

Thanks in advance
Peiman

;
; ""
; by peiman khosravi
;
;
; Generated by blue 0.125.0 (http://csounds.com/stevenyi/blue/index.html)
;

<CsoundSynthesizer>

<CsInstruments>
sr=96000
ksmps=10
nchnls=2

gitenvelop_2 ftgen 0, 0, 32768, -20, 2

instr 2 ;Diskgrain
Sfname strget p5
ipitch = semitone(p4)
iolaps = p8
igrsize = p9
krand  randi .001, p11
kgrsize = igrsize ;+krand
kgrsize limit   kgrsize,igrsize-.01, igrsize
ifreq = iolaps/igrsize
ips = 1/iolaps
istr = p6  /* timescale */
a1, a2 diskgrain Sfname, 32000, ifreq, ipitch, kgrsize, ips*istr, gitenvelop_2 , iolaps+1
outs a1, a2
endin


</CsInstruments>

<CsScore>

i2 0.0 10 0.0 "/Volumes/Peiman120GB/sounds/gongWarp/gong-0_1-warp.aif" 1.0 0 2 0.48946387 2.84603020.0
e

</CsScore>

</CsoundSynthesizer>



Date2009-05-03 19:38
Fromvictor
Subject[Csnd] Re: Re: Re: Re: Re: Re: Re: diskgrain and random pop in one channel
Thanks for spotting it.
----- Original Message -----
Sent: Sunday, May 03, 2009 7:04 PM
Subject: [Csnd] Re: Re: Re: Re: Re: Re: diskgrain and random pop in one channel

Thanks very much.

Best
Peiman

2009/5/3 victor <Victor.Lazzarini@nuim.ie>
I found the bug in CVS. Will discuss a fix with John.
----- Original Message -----
From: victor
Sent: Sunday, May 03, 2009 6:24 PM
Subject: [Csnd] Re: Re: Re: Re: diskgrain and random pop in one channel

The fact is that using CVS sources at the moment, there seems to be something
very wrong with diskgrain and syncgrain too. I can't seem to understand what is
wrong (feels just like some silly mistake). It's way too slow and producing the wrong
output. I will see if I can find why. Nothing much has changed in the code, so
that is why it is strange.
 
There was a problem with diskgrain but I have a feeling it was sorted before the last
release.
 
Victor
----- Original Message -----
Sent: Sunday, May 03, 2009 5:44 PM
Subject: [Csnd] Re: Re: Re: diskgrain and random pop in one channel

I meant "mistype"!! 

2009/5/3 victor <Victor.Lazzarini@nuim.ie>
...but there is something wrong with diskgrain.
----- Original Message -----
From: victor
Sent: Sunday, May 03, 2009 5:28 PM
Subject: [Csnd] Re: diskgrain and random pop in one channel

This looks suspicious: 2.84603020.0
----- Original Message -----
Sent: Sunday, May 03, 2009 5:06 PM
Subject: [Csnd] diskgrain and random pop in one channel

Hello,

for some strange reason I am getting a horrible pop in the left channel every time I use the csd bellow (basically the diskgrain opcode. Regardless of what soundfile I use... I believe this instrument was working faultlessly in the past.

I am on osx using the latest csound float (installed with the installer).

Any ideas are appreciated.

Thanks in advance
Peiman

;
; ""
; by peiman khosravi
;
;
; Generated by blue 0.125.0 (http://csounds.com/stevenyi/blue/index.html)
;

<CsoundSynthesizer>

<CsInstruments>
sr=96000
ksmps=10
nchnls=2

gitenvelop_2 ftgen 0, 0, 32768, -20, 2

instr 2 ;Diskgrain
Sfname strget p5
ipitch = semitone(p4)
iolaps = p8
igrsize = p9
krand  randi .001, p11
kgrsize = igrsize ;+krand
kgrsize limit   kgrsize,igrsize-.01, igrsize
ifreq = iolaps/igrsize
ips = 1/iolaps
istr = p6  /* timescale */
a1, a2 diskgrain Sfname, 32000, ifreq, ipitch, kgrsize, ips*istr, gitenvelop_2 , iolaps+1
outs a1, a2
endin


</CsInstruments>

<CsScore>

i2 0.0 10 0.0 "/Volumes/Peiman120GB/sounds/gongWarp/gong-0_1-warp.aif" 1.0 0 2 0.48946387 2.84603020.0
e

</CsScore>

</CsoundSynthesizer>