Csound Csound-dev Csound-tekno Search About

skips octaves?

Date2016-06-29 16:55
From"Joe ."
Subjectskips octaves?

Hey guys. Just playing around, came across this- the stuff after the ;=== break inexplicably skips to a higher octave, or plays both octaves. Same thing if I change the sample rate or the kontrol rate. If I remove the stuff before the ;== break its fine. Is there a bug or am I doing something wrong? Thanks


 



<CsoundSynthesizer>

<CsOptions>

</CsOptions>

<CsInstruments>

sr = 192000

ksmps = 10

nchnls = 2

0dbfs = 2


opcode MarimbaEmulator, a, ii

iAmplitude, iFrequency xin

iAmplitude = ampdb(iAmplitude)

iFrequency = cps2pch(iFrequency, 12)

aEnvelope = transeg:a(iAmplitude, 0.5, -6, 0)

aOut = oscil:a(aEnvelope, iFrequency, -1)

xout aOut

endop


instr 1

aOut = MarimbaEmulator:a(p4, p5)

outs aOut, aOut

endin

</CsInstruments>

<CsScore>

t 0 120

i1 0 0.6 -18 6.07

i1 . . . 7.07

i1 . . . 7.10

i1 0.25 . -24 7.07

i1 . . . 7.10

i1 0.5 . . 7.10

i1 . . . 8.07

i1 0.75 . . 7.10

i1 . . . 8.07

i1 1 0.6 -18 7.07

i1 . . . 7.10

i1 1.25 . -24 7.07

i1 . . . 7.10

i1 1.5 . . 7.10

i1 . . . 8.07

i1 1.75 . . 7.10

i1 . . . 8.07

;======================================

i1 1.5 1 -12 9.03

i1 ^+0.25 . < 9.02

i1 ^+0.25 . -18 9.02


i1 ^+0.5 . -9 9.03

i1 ^+0.25 . < 9.02

i1 ^+0.25 . -15 9.02


i1 ^+0.5 . -12 9.03

i1 ^+0.25 . < 9.02

i1 ^+0.25 . < 9.02

i1 ^+0.5 . -6 9.10

i1 1.5 1 -12 9.03

i1 ^+0.25 . < 9.02

i1 ^+0.25 . -18 9.02


i1 ^+0.5 . -9 9.03

i1 ^+0.25 . < 9.02

i1 ^+0.25 . -15 9.02


i1 ^+0.5 . -12 9.03

i1 ^+0.25 . < 9.02

i1 ^+0.25 . < 9.02

i1 ^+0.5 . -6 9.10

 

</CsScore>

</CsoundSynthesizer>


/* Joe */
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

Date2016-06-29 17:12
From"C. R. Craig"
SubjectRe: skips octaves?
Don’t know if this helps, but you do ask for octave 9 instead of 8 after the ;==== break . . .

Robert

On Jun 29, 2016, at 8:55 AM, Joe . <not007ful@GMAIL.COM> wrote:

Hey guys. Just playing around, came across this- the stuff after the ;=== break inexplicably skips to a higher octave, or plays both octaves. Same thing if I change the sample rate or the kontrol rate. If I remove the stuff before the ;== break its fine. Is there a bug or am I doing something wrong? Thanks

 



<CsoundSynthesizer>
<CsOptions>
</CsOptions>
<CsInstruments>
sr = 192000
ksmps = 10
nchnls = 2
0dbfs = 2

opcode MarimbaEmulator, a, ii
iAmplitude, iFrequency xin
iAmplitude = ampdb(iAmplitude)
iFrequency = cps2pch(iFrequency, 12)
aEnvelope = transeg:a(iAmplitude, 0.5, -6, 0)
aOut = oscil:a(aEnvelope, iFrequency, -1)
xout aOut
endop

instr 1
aOut = MarimbaEmulator:a(p4, p5)
outs aOut, aOut
endin
</CsInstruments>
<CsScore>
t 0 120

i1 0 0.6 -18 6.07
i1 . . . 7.07
i1 . . . 7.10
i1 0.25 . -24 7.07
i1 . . . 7.10
i1 0.5 . . 7.10
i1 . . . 8.07
i1 0.75 . . 7.10
i1 . . . 8.07

i1 1 0.6 -18 7.07
i1 . . . 7.10
i1 1.25 . -24 7.07
i1 . . . 7.10
i1 1.5 . . 7.10
i1 . . . 8.07
i1 1.75 . . 7.10
i1 . . . 8.07
;======================================
i1 1.5 1 -12 9.03
i1 ^+0.25 . < 9.02
i1 ^+0.25 . -18 9.02

i1 ^+0.5 . -9 9.03
i1 ^+0.25 . < 9.02
i1 ^+0.25 . -15 9.02

i1 ^+0.5 . -12 9.03
i1 ^+0.25 . < 9.02
i1 ^+0.25 . < 9.02
i1 ^+0.5 . -6 9.10
i1 1.5 1 -12 9.03
i1 ^+0.25 . < 9.02
i1 ^+0.25 . -18 9.02

i1 ^+0.5 . -9 9.03
i1 ^+0.25 . < 9.02
i1 ^+0.25 . -15 9.02

i1 ^+0.5 . -12 9.03
i1 ^+0.25 . < 9.02
i1 ^+0.25 . < 9.02
i1 ^+0.5 . -6 9.10

 

</CsScore>
</CsoundSynthesizer>

/* Joe */
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


Date2016-06-29 17:17
From"Joe ."
SubjectRe: skips octaves?
yes that is right, it gives 9 and 10, or alternates between the two.  If you run it its pretty clear what the problem is.

/* Joe */

On Thu, Jun 30, 2016 at 12:12 AM, C. R. Craig <robert@craig-woods.net> wrote:
Don’t know if this helps, but you do ask for octave 9 instead of 8 after the ;==== break . . .

Robert

On Jun 29, 2016, at 8:55 AM, Joe . <not007ful@GMAIL.COM> wrote:

Hey guys. Just playing around, came across this- the stuff after the ;=== break inexplicably skips to a higher octave, or plays both octaves. Same thing if I change the sample rate or the kontrol rate. If I remove the stuff before the ;== break its fine. Is there a bug or am I doing something wrong? Thanks

 



<CsoundSynthesizer>
<CsOptions>
</CsOptions>
<CsInstruments>
sr = 192000
ksmps = 10
nchnls = 2
0dbfs = 2

opcode MarimbaEmulator, a, ii
iAmplitude, iFrequency xin
iAmplitude = ampdb(iAmplitude)
iFrequency = cps2pch(iFrequency, 12)
aEnvelope = transeg:a(iAmplitude, 0.5, -6, 0)
aOut = oscil:a(aEnvelope, iFrequency, -1)
xout aOut
endop

instr 1
aOut = MarimbaEmulator:a(p4, p5)
outs aOut, aOut
endin
</CsInstruments>
<CsScore>
t 0 120

i1 0 0.6 -18 6.07
i1 . . . 7.07
i1 . . . 7.10
i1 0.25 . -24 7.07
i1 . . . 7.10
i1 0.5 . . 7.10
i1 . . . 8.07
i1 0.75 . . 7.10
i1 . . . 8.07

i1 1 0.6 -18 7.07
i1 . . . 7.10
i1 1.25 . -24 7.07
i1 . . . 7.10
i1 1.5 . . 7.10
i1 . . . 8.07
i1 1.75 . . 7.10
i1 . . . 8.07
;======================================
i1 1.5 1 -12 9.03
i1 ^+0.25 . < 9.02
i1 ^+0.25 . -18 9.02

i1 ^+0.5 . -9 9.03
i1 ^+0.25 . < 9.02
i1 ^+0.25 . -15 9.02

i1 ^+0.5 . -12 9.03
i1 ^+0.25 . < 9.02
i1 ^+0.25 . < 9.02
i1 ^+0.5 . -6 9.10
i1 1.5 1 -12 9.03
i1 ^+0.25 . < 9.02
i1 ^+0.25 . -18 9.02

i1 ^+0.5 . -9 9.03
i1 ^+0.25 . < 9.02
i1 ^+0.25 . -15 9.02

i1 ^+0.5 . -12 9.03
i1 ^+0.25 . < 9.02
i1 ^+0.25 . < 9.02
i1 ^+0.5 . -6 9.10

 

</CsScore>
</CsoundSynthesizer>

/* Joe */
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

Date2016-06-29 18:21
Fromjpff
SubjectRe: skips octaves?
Qck response without engaging my mind --- run wit -t0option and look at te 
actual score used after sorting

On Wed, 29 Jun 2016, Joe . wrote:

> 
> Hey guys. Just playing around, came across this- the stuff after the ;===
> break inexplicably skips to a higher octave, or plays both octaves. Same thing
> if I change the sample rate or the kontrol rate. If I remove the stuff before
> the ;== break its fine. Is there a bug or am I doing something wrong? Thanks
> 
> 
>  
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> sr = 192000
> 
> ksmps = 10
> 
> nchnls = 2
> 
> 0dbfs = 2
> 
> 
> opcode MarimbaEmulator, a, ii
> 
> iAmplitude, iFrequency xin
> 
> iAmplitude = ampdb(iAmplitude)
> 
> iFrequency = cps2pch(iFrequency, 12)
> 
> aEnvelope = transeg:a(iAmplitude, 0.5, -6, 0)
> 
> aOut = oscil:a(aEnvelope, iFrequency, -1)
> 
> xout aOut
> 
> endop
> 
> 
> instr 1
> 
> aOut = MarimbaEmulator:a(p4, p5)
> 
> outs aOut, aOut
> 
> endin
> 
> 
> 
> 
> 
> t 0 120
> 
> i1 0 0.6 -18 6.07
> 
> i1 . . . 7.07
> 
> i1 . . . 7.10
> 
> i1 0.25 . -24 7.07
> 
> i1 . . . 7.10
> 
> i1 0.5 . . 7.10
> 
> i1 . . . 8.07
> 
> i1 0.75 . . 7.10
> 
> i1 . . . 8.07
> 
> i1 1 0.6 -18 7.07
> 
> i1 . . . 7.10
> 
> i1 1.25 . -24 7.07
> 
> i1 . . . 7.10
> 
> i1 1.5 . . 7.10
> 
> i1 . . . 8.07
> 
> i1 1.75 . . 7.10
> 
> i1 . . . 8.07
> 
> ;======================================
> 
> i1 1.5 1 -12 9.03
> 
> i1 ^+0.25 . < 9.02
> 
> i1 ^+0.25 . -18 9.02
> 
> 
> i1 ^+0.5 . -9 9.03
> 
> i1 ^+0.25 . < 9.02
> 
> i1 ^+0.25 . -15 9.02
> 
> 
> i1 ^+0.5 . -12 9.03
> 
> i1 ^+0.25 . < 9.02
> 
> i1 ^+0.25 . < 9.02
> 
> i1 ^+0.5 . -6 9.10
> 
> i1 1.5 1 -12 9.03
> 
> i1 ^+0.25 . < 9.02
> 
> i1 ^+0.25 . -18 9.02
> 
> 
> i1 ^+0.5 . -9 9.03
> 
> i1 ^+0.25 . < 9.02
> 
> i1 ^+0.25 . -15 9.02
> 
> 
> i1 ^+0.5 . -12 9.03
> 
> i1 ^+0.25 . < 9.02
> 
> i1 ^+0.25 . < 9.02
> 
> i1 ^+0.5 . -6 9.10
> 
>  
> 
> 
> 
> 
> 
> 
> /* Joe */
> 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

Date2016-06-29 18:41
Fromjpff
SubjectRe: skips octaves?
/PS please stop sending code as HTML -- too hard to cut/paste to run, and 
the double newline.....

On Wed, 29 Jun 2016, Joe . wrote:

> 
> Hey guys. Just playing around, came across this- the stuff after the ;===
> break inexplicably skips to a higher octave, or plays both octaves. Same thing
> if I change the sample rate or the kontrol rate. If I remove the stuff before
> the ;== break its fine. Is there a bug or am I doing something wrong? Thanks
> 
> 
>  
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> sr = 192000
> 
> ksmps = 10
> 
> nchnls = 2
> 
> 0dbfs = 2
> 
> 
> opcode MarimbaEmulator, a, ii
> 
> iAmplitude, iFrequency xin
> 
> iAmplitude = ampdb(iAmplitude)
> 
> iFrequency = cps2pch(iFrequency, 12)
> 
> aEnvelope = transeg:a(iAmplitude, 0.5, -6, 0)
> 
> aOut = oscil:a(aEnvelope, iFrequency, -1)
> 
> xout aOut
> 
> endop
> 
> 
> instr 1
> 
> aOut = MarimbaEmulator:a(p4, p5)
> 
> outs aOut, aOut
> 
> endin
> 
> 
> 
> 
> 
> t 0 120
> 
> i1 0 0.6 -18 6.07
> 
> i1 . . . 7.07
> 
> i1 . . . 7.10
> 
> i1 0.25 . -24 7.07
> 
> i1 . . . 7.10
> 
> i1 0.5 . . 7.10
> 
> i1 . . . 8.07
> 
> i1 0.75 . . 7.10
> 
> i1 . . . 8.07
> 
> i1 1 0.6 -18 7.07
> 
> i1 . . . 7.10
> 
> i1 1.25 . -24 7.07
> 
> i1 . . . 7.10
> 
> i1 1.5 . . 7.10
> 
> i1 . . . 8.07
> 
> i1 1.75 . . 7.10
> 
> i1 . . . 8.07
> 
> ;======================================
> 
> i1 1.5 1 -12 9.03
> 
> i1 ^+0.25 . < 9.02
> 
> i1 ^+0.25 . -18 9.02
> 
> 
> i1 ^+0.5 . -9 9.03
> 
> i1 ^+0.25 . < 9.02
> 
> i1 ^+0.25 . -15 9.02
> 
> 
> i1 ^+0.5 . -12 9.03
> 
> i1 ^+0.25 . < 9.02
> 
> i1 ^+0.25 . < 9.02
> 
> i1 ^+0.5 . -6 9.10
> 
> i1 1.5 1 -12 9.03
> 
> i1 ^+0.25 . < 9.02
> 
> i1 ^+0.25 . -18 9.02
> 
> 
> i1 ^+0.5 . -9 9.03
> 
> i1 ^+0.25 . < 9.02
> 
> i1 ^+0.25 . -15 9.02
> 
> 
> i1 ^+0.5 . -12 9.03
> 
> i1 ^+0.25 . < 9.02
> 
> i1 ^+0.25 . < 9.02
> 
> i1 ^+0.5 . -6 9.10
> 
>  
> 
> 
> 
> 
> 
> 
> /* Joe */
> 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

Date2016-06-29 18:50
FromSteven Yi
SubjectRe: skips octaves?
I ran the example here and it sounds as I expected to my ear.  Using a
"print iFrequency" before and after the cps2pch call gets:

SECTION 1:
new alloc for instr 1:
instr 1:  iFrequency = 7.100
instr 1:  iFrequency = 233.082
new alloc for instr 1:
instr 1:  iFrequency = 7.070
instr 1:  iFrequency = 195.998
new alloc for instr 1:
instr 1:  iFrequency = 6.070
instr 1:  iFrequency = 97.999
B  0.000 ..  0.250 T  0.125 TT  0.125 M:  0.33019  0.33019
new alloc for instr 1:
instr 1:  iFrequency = 7.100
instr 1:  iFrequency = 233.082
new alloc for instr 1:
instr 1:  iFrequency = 7.070
instr 1:  iFrequency = 195.998
B  0.250 ..  0.500 T  0.250 TT  0.250 M:  0.13804  0.13804
new alloc for instr 1:
instr 1:  iFrequency = 8.070
instr 1:  iFrequency = 391.996
new alloc for instr 1:
instr 1:  iFrequency = 7.100
instr 1:  iFrequency = 233.082
B  0.500 ..  0.750 T  0.375 TT  0.375 M:  0.12244  0.12244
instr 1:  iFrequency = 8.070
instr 1:  iFrequency = 391.996
instr 1:  iFrequency = 7.100
instr 1:  iFrequency = 233.082
B  0.750 ..  1.000 T  0.500 TT  0.500 M:  0.14572  0.14572
instr 1:  iFrequency = 7.100
instr 1:  iFrequency = 233.082
instr 1:  iFrequency = 7.070
instr 1:  iFrequency = 195.998
B  1.000 ..  1.250 T  0.625 TT  0.625 M:  0.26191  0.26191
instr 1:  iFrequency = 7.100
instr 1:  iFrequency = 233.082
instr 1:  iFrequency = 7.070
instr 1:  iFrequency = 195.998
B  1.250 ..  1.500 T  0.750 TT  0.750 M:  0.11737  0.11737
instr 1:  iFrequency = 8.070
instr 1:  iFrequency = 391.996
instr 1:  iFrequency = 7.100
instr 1:  iFrequency = 233.082
instr 1:  iFrequency = 9.030
instr 1:  iFrequency = 622.254
new alloc for instr 1:
instr 1:  iFrequency = 9.030
instr 1:  iFrequency = 622.254
B  1.500 ..  1.750 T  0.875 TT  0.875 M:  0.60299  0.60299
instr 1:  iFrequency = 8.070
instr 1:  iFrequency = 391.996
instr 1:  iFrequency = 7.100
instr 1:  iFrequency = 233.082
new alloc for instr 1:
instr 1:  iFrequency = 9.020
instr 1:  iFrequency = 587.330
new alloc for instr 1:
instr 1:  iFrequency = 9.020
instr 1:  iFrequency = 587.330
B  1.750 ..  2.000 T  1.000 TT  1.000 M:  0.34867  0.34867
instr 1:  iFrequency = 9.020
instr 1:  iFrequency = 587.330
instr 1:  iFrequency = 9.020
instr 1:  iFrequency = 587.330
B  2.000 ..  2.500 T  1.250 TT  1.250 M:  0.23619  0.23619
instr 1:  iFrequency = 9.030
instr 1:  iFrequency = 622.254
instr 1:  iFrequency = 9.030
instr 1:  iFrequency = 622.254
B  2.500 ..  2.750 T  1.375 TT  1.375 M:  0.71127  0.71127
instr 1:  iFrequency = 9.020
instr 1:  iFrequency = 587.330
instr 1:  iFrequency = 9.020
instr 1:  iFrequency = 587.330
B  2.750 ..  3.000 T  1.500 TT  1.500 M:  0.61638  0.61638
instr 1:  iFrequency = 9.020
instr 1:  iFrequency = 587.330
instr 1:  iFrequency = 9.020
instr 1:  iFrequency = 587.330
B  3.000 ..  3.500 T  1.750 TT  1.750 M:  0.25820  0.25820
instr 1:  iFrequency = 9.030
instr 1:  iFrequency = 622.254
instr 1:  iFrequency = 9.030
instr 1:  iFrequency = 622.254
B  3.500 ..  3.750 T  1.875 TT  1.875 M:  0.50744  0.50744
instr 1:  iFrequency = 9.020
instr 1:  iFrequency = 587.330
instr 1:  iFrequency = 9.020
instr 1:  iFrequency = 587.330
B  3.750 ..  4.000 T  2.000 TT  2.000 M:  0.66399  0.66399
instr 1:  iFrequency = 9.020
instr 1:  iFrequency = 587.330
instr 1:  iFrequency = 9.020
instr 1:  iFrequency = 587.330
B  4.000 ..  4.500 T  2.250 TT  2.250 M:  0.57427  0.57427
instr 1:  iFrequency = 9.100
instr 1:  iFrequency = 932.328
instr 1:  iFrequency = 9.100
instr 1:  iFrequency = 932.328
B  4.500 ..  4.750 T  2.375 TT  2.375 M:  1.00202  1.00202
B  4.750 ..  5.000 T  2.500 TT  2.500 M:  0.22216  0.22216
B  5.000 ..  5.500 T  2.750 TT  2.750 M:  0.04743  0.04743

I'm using a version of Csound I compiled on May 6th.  What version of
Csound are you using Joe?

On Wed, Jun 29, 2016 at 1:41 PM, jpff  wrote:
> /PS please stop sending code as HTML -- too hard to cut/paste to run, and
> the double newline.....
>
> On Wed, 29 Jun 2016, Joe . wrote:
>
>>
>> Hey guys. Just playing around, came across this- the stuff after the ;===
>> break inexplicably skips to a higher octave, or plays both octaves. Same
>> thing
>> if I change the sample rate or the kontrol rate. If I remove the stuff
>> before
>> the ;== break its fine. Is there a bug or am I doing something wrong?
>> Thanks
>>
>>
>>
>>
>>
>>
>> 
>>
>> 
>>
>> 
>>
>> 
>>
>> sr = 192000
>>
>> ksmps = 10
>>
>> nchnls = 2
>>
>> 0dbfs = 2
>>
>>
>> opcode MarimbaEmulator, a, ii
>>
>> iAmplitude, iFrequency xin
>>
>> iAmplitude = ampdb(iAmplitude)
>>
>> iFrequency = cps2pch(iFrequency, 12)
>>
>> aEnvelope = transeg:a(iAmplitude, 0.5, -6, 0)
>>
>> aOut = oscil:a(aEnvelope, iFrequency, -1)
>>
>> xout aOut
>>
>> endop
>>
>>
>> instr 1
>>
>> aOut = MarimbaEmulator:a(p4, p5)
>>
>> outs aOut, aOut
>>
>> endin
>>
>> 
>>
>> 
>>
>> t 0 120
>>
>> i1 0 0.6 -18 6.07
>>
>> i1 . . . 7.07
>>
>> i1 . . . 7.10
>>
>> i1 0.25 . -24 7.07
>>
>> i1 . . . 7.10
>>
>> i1 0.5 . . 7.10
>>
>> i1 . . . 8.07
>>
>> i1 0.75 . . 7.10
>>
>> i1 . . . 8.07
>>
>> i1 1 0.6 -18 7.07
>>
>> i1 . . . 7.10
>>
>> i1 1.25 . -24 7.07
>>
>> i1 . . . 7.10
>>
>> i1 1.5 . . 7.10
>>
>> i1 . . . 8.07
>>
>> i1 1.75 . . 7.10
>>
>> i1 . . . 8.07
>>
>> ;======================================
>>
>> i1 1.5 1 -12 9.03
>>
>> i1 ^+0.25 . < 9.02
>>
>> i1 ^+0.25 . -18 9.02
>>
>>
>> i1 ^+0.5 . -9 9.03
>>
>> i1 ^+0.25 . < 9.02
>>
>> i1 ^+0.25 . -15 9.02
>>
>>
>> i1 ^+0.5 . -12 9.03
>>
>> i1 ^+0.25 . < 9.02
>>
>> i1 ^+0.25 . < 9.02
>>
>> i1 ^+0.5 . -6 9.10
>>
>> i1 1.5 1 -12 9.03
>>
>> i1 ^+0.25 . < 9.02
>>
>> i1 ^+0.25 . -18 9.02
>>
>>
>> i1 ^+0.5 . -9 9.03
>>
>> i1 ^+0.25 . < 9.02
>>
>> i1 ^+0.25 . -15 9.02
>>
>>
>> i1 ^+0.5 . -12 9.03
>>
>> i1 ^+0.25 . < 9.02
>>
>> i1 ^+0.25 . < 9.02
>>
>> i1 ^+0.5 . -6 9.10
>>
>>
>>
>> 
>>
>> 
>>
>>
>> /* Joe */
>> 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

Date2016-06-30 04:14
From"Joe ."
SubjectRe: skips octaves?
Attachmentstest.wav  
I rendered the output I get and attached it below. I'm just using Csound 6, haven't compiled from the latest releases. 

/* Joe */

On Thu, Jun 30, 2016 at 1:50 AM, Steven Yi <stevenyi@gmail.com> wrote:
I ran the example here and it sounds as I expected to my ear.  Using a
"print iFrequency" before and after the cps2pch call gets:

SECTION 1:
new alloc for instr 1:
instr 1:  iFrequency = 7.100
instr 1:  iFrequency = 233.082
new alloc for instr 1:
instr 1:  iFrequency = 7.070
instr 1:  iFrequency = 195.998
new alloc for instr 1:
instr 1:  iFrequency = 6.070
instr 1:  iFrequency = 97.999
B  0.000 ..  0.250 T  0.125 TT  0.125 M:  0.33019  0.33019
new alloc for instr 1:
instr 1:  iFrequency = 7.100
instr 1:  iFrequency = 233.082
new alloc for instr 1:
instr 1:  iFrequency = 7.070
instr 1:  iFrequency = 195.998
B  0.250 ..  0.500 T  0.250 TT  0.250 M:  0.13804  0.13804
new alloc for instr 1:
instr 1:  iFrequency = 8.070
instr 1:  iFrequency = 391.996
new alloc for instr 1:
instr 1:  iFrequency = 7.100
instr 1:  iFrequency = 233.082
B  0.500 ..  0.750 T  0.375 TT  0.375 M:  0.12244  0.12244
instr 1:  iFrequency = 8.070
instr 1:  iFrequency = 391.996
instr 1:  iFrequency = 7.100
instr 1:  iFrequency = 233.082
B  0.750 ..  1.000 T  0.500 TT  0.500 M:  0.14572  0.14572
instr 1:  iFrequency = 7.100
instr 1:  iFrequency = 233.082
instr 1:  iFrequency = 7.070
instr 1:  iFrequency = 195.998
B  1.000 ..  1.250 T  0.625 TT  0.625 M:  0.26191  0.26191
instr 1:  iFrequency = 7.100
instr 1:  iFrequency = 233.082
instr 1:  iFrequency = 7.070
instr 1:  iFrequency = 195.998
B  1.250 ..  1.500 T  0.750 TT  0.750 M:  0.11737  0.11737
instr 1:  iFrequency = 8.070
instr 1:  iFrequency = 391.996
instr 1:  iFrequency = 7.100
instr 1:  iFrequency = 233.082
instr 1:  iFrequency = 9.030
instr 1:  iFrequency = 622.254
new alloc for instr 1:
instr 1:  iFrequency = 9.030
instr 1:  iFrequency = 622.254
B  1.500 ..  1.750 T  0.875 TT  0.875 M:  0.60299  0.60299
instr 1:  iFrequency = 8.070
instr 1:  iFrequency = 391.996
instr 1:  iFrequency = 7.100
instr 1:  iFrequency = 233.082
new alloc for instr 1:
instr 1:  iFrequency = 9.020
instr 1:  iFrequency = 587.330
new alloc for instr 1:
instr 1:  iFrequency = 9.020
instr 1:  iFrequency = 587.330
B  1.750 ..  2.000 T  1.000 TT  1.000 M:  0.34867  0.34867
instr 1:  iFrequency = 9.020
instr 1:  iFrequency = 587.330
instr 1:  iFrequency = 9.020
instr 1:  iFrequency = 587.330
B  2.000 ..  2.500 T  1.250 TT  1.250 M:  0.23619  0.23619
instr 1:  iFrequency = 9.030
instr 1:  iFrequency = 622.254
instr 1:  iFrequency = 9.030
instr 1:  iFrequency = 622.254
B  2.500 ..  2.750 T  1.375 TT  1.375 M:  0.71127  0.71127
instr 1:  iFrequency = 9.020
instr 1:  iFrequency = 587.330
instr 1:  iFrequency = 9.020
instr 1:  iFrequency = 587.330
B  2.750 ..  3.000 T  1.500 TT  1.500 M:  0.61638  0.61638
instr 1:  iFrequency = 9.020
instr 1:  iFrequency = 587.330
instr 1:  iFrequency = 9.020
instr 1:  iFrequency = 587.330
B  3.000 ..  3.500 T  1.750 TT  1.750 M:  0.25820  0.25820
instr 1:  iFrequency = 9.030
instr 1:  iFrequency = 622.254
instr 1:  iFrequency = 9.030
instr 1:  iFrequency = 622.254
B  3.500 ..  3.750 T  1.875 TT  1.875 M:  0.50744  0.50744
instr 1:  iFrequency = 9.020
instr 1:  iFrequency = 587.330
instr 1:  iFrequency = 9.020
instr 1:  iFrequency = 587.330
B  3.750 ..  4.000 T  2.000 TT  2.000 M:  0.66399  0.66399
instr 1:  iFrequency = 9.020
instr 1:  iFrequency = 587.330
instr 1:  iFrequency = 9.020
instr 1:  iFrequency = 587.330
B  4.000 ..  4.500 T  2.250 TT  2.250 M:  0.57427  0.57427
instr 1:  iFrequency = 9.100
instr 1:  iFrequency = 932.328
instr 1:  iFrequency = 9.100
instr 1:  iFrequency = 932.328
B  4.500 ..  4.750 T  2.375 TT  2.375 M:  1.00202  1.00202
B  4.750 ..  5.000 T  2.500 TT  2.500 M:  0.22216  0.22216
B  5.000 ..  5.500 T  2.750 TT  2.750 M:  0.04743  0.04743

I'm using a version of Csound I compiled on May 6th.  What version of
Csound are you using Joe?

On Wed, Jun 29, 2016 at 1:41 PM, jpff <jpff@codemist.co.uk> wrote:
> /PS please stop sending code as HTML -- too hard to cut/paste to run, and
> the double newline.....
>
> On Wed, 29 Jun 2016, Joe . wrote:
>
>>
>> Hey guys. Just playing around, came across this- the stuff after the ;===
>> break inexplicably skips to a higher octave, or plays both octaves. Same
>> thing
>> if I change the sample rate or the kontrol rate. If I remove the stuff
>> before
>> the ;== break its fine. Is there a bug or am I doing something wrong?
>> Thanks
>>
>>
>>
>>
>>
>>
>> <CsoundSynthesizer>
>>
>> <CsOptions>
>>
>> </CsOptions>
>>
>> <CsInstruments>
>>
>> sr = 192000
>>
>> ksmps = 10
>>
>> nchnls = 2
>>
>> 0dbfs = 2
>>
>>
>> opcode MarimbaEmulator, a, ii
>>
>> iAmplitude, iFrequency xin
>>
>> iAmplitude = ampdb(iAmplitude)
>>
>> iFrequency = cps2pch(iFrequency, 12)
>>
>> aEnvelope = transeg:a(iAmplitude, 0.5, -6, 0)
>>
>> aOut = oscil:a(aEnvelope, iFrequency, -1)
>>
>> xout aOut
>>
>> endop
>>
>>
>> instr 1
>>
>> aOut = MarimbaEmulator:a(p4, p5)
>>
>> outs aOut, aOut
>>
>> endin
>>
>> </CsInstruments>
>>
>> <CsScore>
>>
>> t 0 120
>>
>> i1 0 0.6 -18 6.07
>>
>> i1 . . . 7.07
>>
>> i1 . . . 7.10
>>
>> i1 0.25 . -24 7.07
>>
>> i1 . . . 7.10
>>
>> i1 0.5 . . 7.10
>>
>> i1 . . . 8.07
>>
>> i1 0.75 . . 7.10
>>
>> i1 . . . 8.07
>>
>> i1 1 0.6 -18 7.07
>>
>> i1 . . . 7.10
>>
>> i1 1.25 . -24 7.07
>>
>> i1 . . . 7.10
>>
>> i1 1.5 . . 7.10
>>
>> i1 . . . 8.07
>>
>> i1 1.75 . . 7.10
>>
>> i1 . . . 8.07
>>
>> ;======================================
>>
>> i1 1.5 1 -12 9.03
>>
>> i1 ^+0.25 . < 9.02
>>
>> i1 ^+0.25 . -18 9.02
>>
>>
>> i1 ^+0.5 . -9 9.03
>>
>> i1 ^+0.25 . < 9.02
>>
>> i1 ^+0.25 . -15 9.02
>>
>>
>> i1 ^+0.5 . -12 9.03
>>
>> i1 ^+0.25 . < 9.02
>>
>> i1 ^+0.25 . < 9.02
>>
>> i1 ^+0.5 . -6 9.10
>>
>> i1 1.5 1 -12 9.03
>>
>> i1 ^+0.25 . < 9.02
>>
>> i1 ^+0.25 . -18 9.02
>>
>>
>> i1 ^+0.5 . -9 9.03
>>
>> i1 ^+0.25 . < 9.02
>>
>> i1 ^+0.25 . -15 9.02
>>
>>
>> i1 ^+0.5 . -12 9.03
>>
>> i1 ^+0.25 . < 9.02
>>
>> i1 ^+0.25 . < 9.02
>>
>> i1 ^+0.5 . -6 9.10
>>
>>
>>
>> </CsScore>
>>
>> </CsoundSynthesizer>
>>
>>
>> /* Joe */
>> 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

Date2016-07-01 17:52
From"Joe ."
SubjectRe: skips octaves?
anybody with a solution? I'm at a loss here. The sound and the skips change when I change the k rate.

/* Joe */

On Thu, Jun 30, 2016 at 11:14 AM, Joe . <not007ful@gmail.com> wrote:
I rendered the output I get and attached it below. I'm just using Csound 6, haven't compiled from the latest releases. 

/* Joe */

On Thu, Jun 30, 2016 at 1:50 AM, Steven Yi <stevenyi@gmail.com> wrote:
I ran the example here and it sounds as I expected to my ear.  Using a
"print iFrequency" before and after the cps2pch call gets:

SECTION 1:
new alloc for instr 1:
instr 1:  iFrequency = 7.100
instr 1:  iFrequency = 233.082
new alloc for instr 1:
instr 1:  iFrequency = 7.070
instr 1:  iFrequency = 195.998
new alloc for instr 1:
instr 1:  iFrequency = 6.070
instr 1:  iFrequency = 97.999
B  0.000 ..  0.250 T  0.125 TT  0.125 M:  0.33019  0.33019
new alloc for instr 1:
instr 1:  iFrequency = 7.100
instr 1:  iFrequency = 233.082
new alloc for instr 1:
instr 1:  iFrequency = 7.070
instr 1:  iFrequency = 195.998
B  0.250 ..  0.500 T  0.250 TT  0.250 M:  0.13804  0.13804
new alloc for instr 1:
instr 1:  iFrequency = 8.070
instr 1:  iFrequency = 391.996
new alloc for instr 1:
instr 1:  iFrequency = 7.100
instr 1:  iFrequency = 233.082
B  0.500 ..  0.750 T  0.375 TT  0.375 M:  0.12244  0.12244
instr 1:  iFrequency = 8.070
instr 1:  iFrequency = 391.996
instr 1:  iFrequency = 7.100
instr 1:  iFrequency = 233.082
B  0.750 ..  1.000 T  0.500 TT  0.500 M:  0.14572  0.14572
instr 1:  iFrequency = 7.100
instr 1:  iFrequency = 233.082
instr 1:  iFrequency = 7.070
instr 1:  iFrequency = 195.998
B  1.000 ..  1.250 T  0.625 TT  0.625 M:  0.26191  0.26191
instr 1:  iFrequency = 7.100
instr 1:  iFrequency = 233.082
instr 1:  iFrequency = 7.070
instr 1:  iFrequency = 195.998
B  1.250 ..  1.500 T  0.750 TT  0.750 M:  0.11737  0.11737
instr 1:  iFrequency = 8.070
instr 1:  iFrequency = 391.996
instr 1:  iFrequency = 7.100
instr 1:  iFrequency = 233.082
instr 1:  iFrequency = 9.030
instr 1:  iFrequency = 622.254
new alloc for instr 1:
instr 1:  iFrequency = 9.030
instr 1:  iFrequency = 622.254
B  1.500 ..  1.750 T  0.875 TT  0.875 M:  0.60299  0.60299
instr 1:  iFrequency = 8.070
instr 1:  iFrequency = 391.996
instr 1:  iFrequency = 7.100
instr 1:  iFrequency = 233.082
new alloc for instr 1:
instr 1:  iFrequency = 9.020
instr 1:  iFrequency = 587.330
new alloc for instr 1:
instr 1:  iFrequency = 9.020
instr 1:  iFrequency = 587.330
B  1.750 ..  2.000 T  1.000 TT  1.000 M:  0.34867  0.34867
instr 1:  iFrequency = 9.020
instr 1:  iFrequency = 587.330
instr 1:  iFrequency = 9.020
instr 1:  iFrequency = 587.330
B  2.000 ..  2.500 T  1.250 TT  1.250 M:  0.23619  0.23619
instr 1:  iFrequency = 9.030
instr 1:  iFrequency = 622.254
instr 1:  iFrequency = 9.030
instr 1:  iFrequency = 622.254
B  2.500 ..  2.750 T  1.375 TT  1.375 M:  0.71127  0.71127
instr 1:  iFrequency = 9.020
instr 1:  iFrequency = 587.330
instr 1:  iFrequency = 9.020
instr 1:  iFrequency = 587.330
B  2.750 ..  3.000 T  1.500 TT  1.500 M:  0.61638  0.61638
instr 1:  iFrequency = 9.020
instr 1:  iFrequency = 587.330
instr 1:  iFrequency = 9.020
instr 1:  iFrequency = 587.330
B  3.000 ..  3.500 T  1.750 TT  1.750 M:  0.25820  0.25820
instr 1:  iFrequency = 9.030
instr 1:  iFrequency = 622.254
instr 1:  iFrequency = 9.030
instr 1:  iFrequency = 622.254
B  3.500 ..  3.750 T  1.875 TT  1.875 M:  0.50744  0.50744
instr 1:  iFrequency = 9.020
instr 1:  iFrequency = 587.330
instr 1:  iFrequency = 9.020
instr 1:  iFrequency = 587.330
B  3.750 ..  4.000 T  2.000 TT  2.000 M:  0.66399  0.66399
instr 1:  iFrequency = 9.020
instr 1:  iFrequency = 587.330
instr 1:  iFrequency = 9.020
instr 1:  iFrequency = 587.330
B  4.000 ..  4.500 T  2.250 TT  2.250 M:  0.57427  0.57427
instr 1:  iFrequency = 9.100
instr 1:  iFrequency = 932.328
instr 1:  iFrequency = 9.100
instr 1:  iFrequency = 932.328
B  4.500 ..  4.750 T  2.375 TT  2.375 M:  1.00202  1.00202
B  4.750 ..  5.000 T  2.500 TT  2.500 M:  0.22216  0.22216
B  5.000 ..  5.500 T  2.750 TT  2.750 M:  0.04743  0.04743

I'm using a version of Csound I compiled on May 6th.  What version of
Csound are you using Joe?

On Wed, Jun 29, 2016 at 1:41 PM, jpff <jpff@codemist.co.uk> wrote:
> /PS please stop sending code as HTML -- too hard to cut/paste to run, and
> the double newline.....
>
> On Wed, 29 Jun 2016, Joe . wrote:
>
>>
>> Hey guys. Just playing around, came across this- the stuff after the ;===
>> break inexplicably skips to a higher octave, or plays both octaves. Same
>> thing
>> if I change the sample rate or the kontrol rate. If I remove the stuff
>> before
>> the ;== break its fine. Is there a bug or am I doing something wrong?
>> Thanks
>>
>>
>>
>>
>>
>>
>> <CsoundSynthesizer>
>>
>> <CsOptions>
>>
>> </CsOptions>
>>
>> <CsInstruments>
>>
>> sr = 192000
>>
>> ksmps = 10
>>
>> nchnls = 2
>>
>> 0dbfs = 2
>>
>>
>> opcode MarimbaEmulator, a, ii
>>
>> iAmplitude, iFrequency xin
>>
>> iAmplitude = ampdb(iAmplitude)
>>
>> iFrequency = cps2pch(iFrequency, 12)
>>
>> aEnvelope = transeg:a(iAmplitude, 0.5, -6, 0)
>>
>> aOut = oscil:a(aEnvelope, iFrequency, -1)
>>
>> xout aOut
>>
>> endop
>>
>>
>> instr 1
>>
>> aOut = MarimbaEmulator:a(p4, p5)
>>
>> outs aOut, aOut
>>
>> endin
>>
>> </CsInstruments>
>>
>> <CsScore>
>>
>> t 0 120
>>
>> i1 0 0.6 -18 6.07
>>
>> i1 . . . 7.07
>>
>> i1 . . . 7.10
>>
>> i1 0.25 . -24 7.07
>>
>> i1 . . . 7.10
>>
>> i1 0.5 . . 7.10
>>
>> i1 . . . 8.07
>>
>> i1 0.75 . . 7.10
>>
>> i1 . . . 8.07
>>
>> i1 1 0.6 -18 7.07
>>
>> i1 . . . 7.10
>>
>> i1 1.25 . -24 7.07
>>
>> i1 . . . 7.10
>>
>> i1 1.5 . . 7.10
>>
>> i1 . . . 8.07
>>
>> i1 1.75 . . 7.10
>>
>> i1 . . . 8.07
>>
>> ;======================================
>>
>> i1 1.5 1 -12 9.03
>>
>> i1 ^+0.25 . < 9.02
>>
>> i1 ^+0.25 . -18 9.02
>>
>>
>> i1 ^+0.5 . -9 9.03
>>
>> i1 ^+0.25 . < 9.02
>>
>> i1 ^+0.25 . -15 9.02
>>
>>
>> i1 ^+0.5 . -12 9.03
>>
>> i1 ^+0.25 . < 9.02
>>
>> i1 ^+0.25 . < 9.02
>>
>> i1 ^+0.5 . -6 9.10
>>
>> i1 1.5 1 -12 9.03
>>
>> i1 ^+0.25 . < 9.02
>>
>> i1 ^+0.25 . -18 9.02
>>
>>
>> i1 ^+0.5 . -9 9.03
>>
>> i1 ^+0.25 . < 9.02
>>
>> i1 ^+0.25 . -15 9.02
>>
>>
>> i1 ^+0.5 . -12 9.03
>>
>> i1 ^+0.25 . < 9.02
>>
>> i1 ^+0.25 . < 9.02
>>
>> i1 ^+0.5 . -6 9.10
>>
>>
>>
>> </CsScore>
>>
>> </CsoundSynthesizer>
>>
>>
>> /* Joe */
>> 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

Date2016-07-01 20:03
FromSteven Yi
SubjectRe: skips octaves?
I just tried again, this time on OSX.  I'm still getting the correct
results when rendering to disk or dac.  What version of Csound 6 are
you using and what operating system?

On Fri, Jul 1, 2016 at 12:52 PM, Joe .  wrote:
> anybody with a solution? I'm at a loss here. The sound and the skips change
> when I change the k rate.
>
> /* Joe */
>
> On Thu, Jun 30, 2016 at 11:14 AM, Joe .  wrote:
>>
>> I rendered the output I get and attached it below. I'm just using Csound
>> 6, haven't compiled from the latest releases.
>>
>> /* Joe */
>>
>> On Thu, Jun 30, 2016 at 1:50 AM, Steven Yi  wrote:
>>>
>>> I ran the example here and it sounds as I expected to my ear.  Using a
>>> "print iFrequency" before and after the cps2pch call gets:
>>>
>>> SECTION 1:
>>> new alloc for instr 1:
>>> instr 1:  iFrequency = 7.100
>>> instr 1:  iFrequency = 233.082
>>> new alloc for instr 1:
>>> instr 1:  iFrequency = 7.070
>>> instr 1:  iFrequency = 195.998
>>> new alloc for instr 1:
>>> instr 1:  iFrequency = 6.070
>>> instr 1:  iFrequency = 97.999
>>> B  0.000 ..  0.250 T  0.125 TT  0.125 M:  0.33019  0.33019
>>> new alloc for instr 1:
>>> instr 1:  iFrequency = 7.100
>>> instr 1:  iFrequency = 233.082
>>> new alloc for instr 1:
>>> instr 1:  iFrequency = 7.070
>>> instr 1:  iFrequency = 195.998
>>> B  0.250 ..  0.500 T  0.250 TT  0.250 M:  0.13804  0.13804
>>> new alloc for instr 1:
>>> instr 1:  iFrequency = 8.070
>>> instr 1:  iFrequency = 391.996
>>> new alloc for instr 1:
>>> instr 1:  iFrequency = 7.100
>>> instr 1:  iFrequency = 233.082
>>> B  0.500 ..  0.750 T  0.375 TT  0.375 M:  0.12244  0.12244
>>> instr 1:  iFrequency = 8.070
>>> instr 1:  iFrequency = 391.996
>>> instr 1:  iFrequency = 7.100
>>> instr 1:  iFrequency = 233.082
>>> B  0.750 ..  1.000 T  0.500 TT  0.500 M:  0.14572  0.14572
>>> instr 1:  iFrequency = 7.100
>>> instr 1:  iFrequency = 233.082
>>> instr 1:  iFrequency = 7.070
>>> instr 1:  iFrequency = 195.998
>>> B  1.000 ..  1.250 T  0.625 TT  0.625 M:  0.26191  0.26191
>>> instr 1:  iFrequency = 7.100
>>> instr 1:  iFrequency = 233.082
>>> instr 1:  iFrequency = 7.070
>>> instr 1:  iFrequency = 195.998
>>> B  1.250 ..  1.500 T  0.750 TT  0.750 M:  0.11737  0.11737
>>> instr 1:  iFrequency = 8.070
>>> instr 1:  iFrequency = 391.996
>>> instr 1:  iFrequency = 7.100
>>> instr 1:  iFrequency = 233.082
>>> instr 1:  iFrequency = 9.030
>>> instr 1:  iFrequency = 622.254
>>> new alloc for instr 1:
>>> instr 1:  iFrequency = 9.030
>>> instr 1:  iFrequency = 622.254
>>> B  1.500 ..  1.750 T  0.875 TT  0.875 M:  0.60299  0.60299
>>> instr 1:  iFrequency = 8.070
>>> instr 1:  iFrequency = 391.996
>>> instr 1:  iFrequency = 7.100
>>> instr 1:  iFrequency = 233.082
>>> new alloc for instr 1:
>>> instr 1:  iFrequency = 9.020
>>> instr 1:  iFrequency = 587.330
>>> new alloc for instr 1:
>>> instr 1:  iFrequency = 9.020
>>> instr 1:  iFrequency = 587.330
>>> B  1.750 ..  2.000 T  1.000 TT  1.000 M:  0.34867  0.34867
>>> instr 1:  iFrequency = 9.020
>>> instr 1:  iFrequency = 587.330
>>> instr 1:  iFrequency = 9.020
>>> instr 1:  iFrequency = 587.330
>>> B  2.000 ..  2.500 T  1.250 TT  1.250 M:  0.23619  0.23619
>>> instr 1:  iFrequency = 9.030
>>> instr 1:  iFrequency = 622.254
>>> instr 1:  iFrequency = 9.030
>>> instr 1:  iFrequency = 622.254
>>> B  2.500 ..  2.750 T  1.375 TT  1.375 M:  0.71127  0.71127
>>> instr 1:  iFrequency = 9.020
>>> instr 1:  iFrequency = 587.330
>>> instr 1:  iFrequency = 9.020
>>> instr 1:  iFrequency = 587.330
>>> B  2.750 ..  3.000 T  1.500 TT  1.500 M:  0.61638  0.61638
>>> instr 1:  iFrequency = 9.020
>>> instr 1:  iFrequency = 587.330
>>> instr 1:  iFrequency = 9.020
>>> instr 1:  iFrequency = 587.330
>>> B  3.000 ..  3.500 T  1.750 TT  1.750 M:  0.25820  0.25820
>>> instr 1:  iFrequency = 9.030
>>> instr 1:  iFrequency = 622.254
>>> instr 1:  iFrequency = 9.030
>>> instr 1:  iFrequency = 622.254
>>> B  3.500 ..  3.750 T  1.875 TT  1.875 M:  0.50744  0.50744
>>> instr 1:  iFrequency = 9.020
>>> instr 1:  iFrequency = 587.330
>>> instr 1:  iFrequency = 9.020
>>> instr 1:  iFrequency = 587.330
>>> B  3.750 ..  4.000 T  2.000 TT  2.000 M:  0.66399  0.66399
>>> instr 1:  iFrequency = 9.020
>>> instr 1:  iFrequency = 587.330
>>> instr 1:  iFrequency = 9.020
>>> instr 1:  iFrequency = 587.330
>>> B  4.000 ..  4.500 T  2.250 TT  2.250 M:  0.57427  0.57427
>>> instr 1:  iFrequency = 9.100
>>> instr 1:  iFrequency = 932.328
>>> instr 1:  iFrequency = 9.100
>>> instr 1:  iFrequency = 932.328
>>> B  4.500 ..  4.750 T  2.375 TT  2.375 M:  1.00202  1.00202
>>> B  4.750 ..  5.000 T  2.500 TT  2.500 M:  0.22216  0.22216
>>> B  5.000 ..  5.500 T  2.750 TT  2.750 M:  0.04743  0.04743
>>>
>>> I'm using a version of Csound I compiled on May 6th.  What version of
>>> Csound are you using Joe?
>>>
>>> On Wed, Jun 29, 2016 at 1:41 PM, jpff  wrote:
>>> > /PS please stop sending code as HTML -- too hard to cut/paste to run,
>>> > and
>>> > the double newline.....
>>> >
>>> > On Wed, 29 Jun 2016, Joe . wrote:
>>> >
>>> >>
>>> >> Hey guys. Just playing around, came across this- the stuff after the
>>> >> ;===
>>> >> break inexplicably skips to a higher octave, or plays both octaves.
>>> >> Same
>>> >> thing
>>> >> if I change the sample rate or the kontrol rate. If I remove the stuff
>>> >> before
>>> >> the ;== break its fine. Is there a bug or am I doing something wrong?
>>> >> Thanks
>>> >>
>>> >>
>>> >>
>>> >>
>>> >>
>>> >>
>>> >> 
>>> >>
>>> >> 
>>> >>
>>> >> 
>>> >>
>>> >> 
>>> >>
>>> >> sr = 192000
>>> >>
>>> >> ksmps = 10
>>> >>
>>> >> nchnls = 2
>>> >>
>>> >> 0dbfs = 2
>>> >>
>>> >>
>>> >> opcode MarimbaEmulator, a, ii
>>> >>
>>> >> iAmplitude, iFrequency xin
>>> >>
>>> >> iAmplitude = ampdb(iAmplitude)
>>> >>
>>> >> iFrequency = cps2pch(iFrequency, 12)
>>> >>
>>> >> aEnvelope = transeg:a(iAmplitude, 0.5, -6, 0)
>>> >>
>>> >> aOut = oscil:a(aEnvelope, iFrequency, -1)
>>> >>
>>> >> xout aOut
>>> >>
>>> >> endop
>>> >>
>>> >>
>>> >> instr 1
>>> >>
>>> >> aOut = MarimbaEmulator:a(p4, p5)
>>> >>
>>> >> outs aOut, aOut
>>> >>
>>> >> endin
>>> >>
>>> >> 
>>> >>
>>> >> 
>>> >>
>>> >> t 0 120
>>> >>
>>> >> i1 0 0.6 -18 6.07
>>> >>
>>> >> i1 . . . 7.07
>>> >>
>>> >> i1 . . . 7.10
>>> >>
>>> >> i1 0.25 . -24 7.07
>>> >>
>>> >> i1 . . . 7.10
>>> >>
>>> >> i1 0.5 . . 7.10
>>> >>
>>> >> i1 . . . 8.07
>>> >>
>>> >> i1 0.75 . . 7.10
>>> >>
>>> >> i1 . . . 8.07
>>> >>
>>> >> i1 1 0.6 -18 7.07
>>> >>
>>> >> i1 . . . 7.10
>>> >>
>>> >> i1 1.25 . -24 7.07
>>> >>
>>> >> i1 . . . 7.10
>>> >>
>>> >> i1 1.5 . . 7.10
>>> >>
>>> >> i1 . . . 8.07
>>> >>
>>> >> i1 1.75 . . 7.10
>>> >>
>>> >> i1 . . . 8.07
>>> >>
>>> >> ;======================================
>>> >>
>>> >> i1 1.5 1 -12 9.03
>>> >>
>>> >> i1 ^+0.25 . < 9.02
>>> >>
>>> >> i1 ^+0.25 . -18 9.02
>>> >>
>>> >>
>>> >> i1 ^+0.5 . -9 9.03
>>> >>
>>> >> i1 ^+0.25 . < 9.02
>>> >>
>>> >> i1 ^+0.25 . -15 9.02
>>> >>
>>> >>
>>> >> i1 ^+0.5 . -12 9.03
>>> >>
>>> >> i1 ^+0.25 . < 9.02
>>> >>
>>> >> i1 ^+0.25 . < 9.02
>>> >>
>>> >> i1 ^+0.5 . -6 9.10
>>> >>
>>> >> i1 1.5 1 -12 9.03
>>> >>
>>> >> i1 ^+0.25 . < 9.02
>>> >>
>>> >> i1 ^+0.25 . -18 9.02
>>> >>
>>> >>
>>> >> i1 ^+0.5 . -9 9.03
>>> >>
>>> >> i1 ^+0.25 . < 9.02
>>> >>
>>> >> i1 ^+0.25 . -15 9.02
>>> >>
>>> >>
>>> >> i1 ^+0.5 . -12 9.03
>>> >>
>>> >> i1 ^+0.25 . < 9.02
>>> >>
>>> >> i1 ^+0.25 . < 9.02
>>> >>
>>> >> i1 ^+0.5 . -6 9.10
>>> >>
>>> >>
>>> >>
>>> >> 
>>> >>
>>> >> 
>>> >>
>>> >>
>>> >> /* Joe */
>>> >> 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

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

Date2016-07-01 21:11
Fromjpff
SubjectRe: skips octaves?
Ay cance of a readable version of your program?

On Sat, 2 Jul 2016, Joe . wrote:

> anybody with a solution? I'm at a loss here. The sound and the skips change
> when I change the k rate.
> 
> /* Joe */
>

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

Date2016-07-02 04:56
From"Joe ."
SubjectRe: skips octaves?
jpff: you've talked about this a few times, I'm sure its entirely my fault but I really can't understand you. Would it be better I attach the files as a .csd file? Right now I just copy-paste it from Csoundqt, although I'm sure gmail monkeys with it. 

Steven: I just installed Csound 6_64 and it sounds fine. Must have been an problem with an older version of Csound 6, as you can hear from my rendered version. Thanks.

Joe

/* Joe */

On Sat, Jul 2, 2016 at 4:11 AM, jpff <jpff@codemist.co.uk> wrote:
Ay cance of a readable version of your program?

On Sat, 2 Jul 2016, Joe . wrote:

anybody with a solution? I'm at a loss here. The sound and the skips change
when I change the k rate.

/* Joe */


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

Date2016-07-02 16:51
Fromjpff
SubjectRe: skips octaves?
my problem is that you are sending html mail ratr than plain text. So yout 
code is confused.  For example your last message said inter alia

anybody with a solution? I'm at a loss here. The sound and the skips change
when I change the k rate.

/* Joe */

On Sat, 2 Jul 2016, Joe . wrote: > jpff: you've talked about this a few times, I'm sure its entirely my fault > but I really can't understand you. Would it be better I attach the files as > a .csd file? Right now I just copy-paste it from Csoundqt, although I'm sure > gmail monkeys with it.  > Steven: I just installed Csound 6_64 and it sounds fine. Must have been an > problem with an older version of Csound 6, as you can hear from my rendered > version. Thanks. > > Joe > > /* Joe */ > > On Sat, Jul 2, 2016 at 4:11 AM, jpff wrote: > Ay cance of a readable version of your program? > > On Sat, 2 Jul 2016, Joe . wrote: > > anybody with a solution? I'm at a loss here. The > sound and the skips change > when I change the k rate. > > /* Joe */ > > > 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

Date2016-07-02 18:14
From"Joe ."
SubjectRe: skips octaves?
giFunctionTable = ftgen:i(1, 0, 8192, 10, 1, 0.3)
instr  1
$AmplitudeFrequencyConverters
aVibrato  = poscil:a(iCPSconverter*0.0025, 5, 1, -1)
aMainFreq = poscil:a(iAmpConverter, iCPSconverter+aVibrato, 1, -1)
aDistune  = poscil:a(iAmpConverter, iCPSconverter*0.995,    1, -1)
aEnvelope = linseg:a(\
0,                 p6,
0.7*iAmpConverter, p3*p7,
iAmpConverter*p8,  p3-p6-(p3*p7)-(p9*p3),
iAmpConverter*p8,  p9*p3,
0)
aOut = (aMainFreq+aDistune)*aEnvelope
outs aOut, aOut

Is this better?

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

Date2016-07-02 19:32
Fromjpff
SubjectRe: skips octaves?
yes; usable

On Sun, 3 Jul 2016, Joe . wrote:

> giFunctionTable = ftgen:i(1, 0, 8192, 10, 1, 0.3)
> instr  1
> $AmplitudeFrequencyConverters
> aVibrato  = poscil:a(iCPSconverter*0.0025, 5, 1, -1)
> aMainFreq = poscil:a(iAmpConverter, iCPSconverter+aVibrato, 1, -1)
> aDistune  = poscil:a(iAmpConverter, iCPSconverter*0.995,    1, -1)
> aEnvelope = linseg:a(\
> 0,                 p6,
> 0.7*iAmpConverter, p3*p7,
> iAmpConverter*p8,  p3-p6-(p3*p7)-(p9*p3),
> iAmpConverter*p8,  p9*p3,
> 0)
> aOut = (aMainFreq+aDistune)*aEnvelope
> outs aOut, aOut
>
> Is this better?
>
> 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

Date2016-07-03 02:16
From"Joe ."
SubjectRe: skips octaves?
great.
/* Joe */


On Sun, Jul 3, 2016 at 2:32 AM, jpff  wrote:
> yes; usable
>
>
> On Sun, 3 Jul 2016, Joe . wrote:
>
>> giFunctionTable = ftgen:i(1, 0, 8192, 10, 1, 0.3)
>> instr  1
>> $AmplitudeFrequencyConverters
>> aVibrato  = poscil:a(iCPSconverter*0.0025, 5, 1, -1)
>> aMainFreq = poscil:a(iAmpConverter, iCPSconverter+aVibrato, 1, -1)
>> aDistune  = poscil:a(iAmpConverter, iCPSconverter*0.995,    1, -1)
>> aEnvelope = linseg:a(\
>> 0,                 p6,
>> 0.7*iAmpConverter, p3*p7,
>> iAmpConverter*p8,  p3-p6-(p3*p7)-(p9*p3),
>> iAmpConverter*p8,  p9*p3,
>> 0)
>> aOut = (aMainFreq+aDistune)*aEnvelope
>> outs aOut, aOut
>>
>> Is this better?
>>
>> 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