Csound Csound-dev Csound-tekno Search About

[Csnd] Table / Sample playback speed and duration

Date2018-04-17 10:42
Fromfauveboy
Subject[Csnd] Table / Sample playback speed and duration
SamplePlayback.csd
  

Hi,

I'm having some trouble identifying, why the sample (which is 44100 with
playing for a length of 21168001.000). in the score the duration is 1
second. however, the result is that it continues to play at half the speed.
What is the reason for this?






 


ksmps = 32
sr 		= 		44100
kr 		= 		4410
ksmps 	= 		10
nchnls 	= 		2

		
    instr 	107				
iamp =	ampdb(p4)	
ilen tableng 5 ; get length of sample
print ilen
p3 = ilen/ sr ; scale length to score event
aphas phasor 1/p3
aphas = aphas * ilen
asig table aphas, 5
asig = asig * iamp
outs asig, asig

		endin




f5  0 0 1  "hipprac.aif" 0 0 0

i 107	0	1	100










--
Sent from: http://csound.1045644.n5.nabble.com/Csound-General-f1093014.html

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

Date2018-04-17 11:12
FromJohn ff
SubjectRe: [Csnd] Table / Sample playback speed and duration
Stereo table read as mono

⁣Sent from TypeApp ​

On Apr 17, 2018, 10:43, at 10:43, fauveboy  wrote:
>SamplePlayback.csd
>  
>
>Hi,
>
>I'm having some trouble identifying, why the sample (which is 44100
>with
>playing for a length of 21168001.000). in the score the duration is 1
>second. however, the result is that it continues to play at half the
>speed.
>What is the reason for this?
>
>
>
>
>
>
> 
>
>
>ksmps = 32
>sr 		= 		44100
>kr 		= 		4410
>ksmps 	= 		10
>nchnls 	= 		2
>
>		
>    instr 	107				
>iamp =	ampdb(p4)	
>ilen tableng 5 ; get length of sample
>print ilen
>p3 = ilen/ sr ; scale length to score event
>aphas phasor 1/p3
>aphas = aphas * ilen
>asig table aphas, 5
>asig = asig * iamp
>outs asig, asig
>
>		endin
>
>
>
>
>f5  0 0 1  "hipprac.aif" 0 0 0
>
>i 107	0	1	100
>
>
>
>
>
>
>
>
>
>
>--
>Sent from:
>http://csound.1045644.n5.nabble.com/Csound-General-f1093014.html
>
>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

Date2018-04-19 15:36
Fromfauveboy
SubjectRe: [Csnd] Table / Sample playback speed and duration
deos that mean i should write something: asigL asigR table aphas, 5



--
Sent from: http://csound.1045644.n5.nabble.com/Csound-General-f1093014.html

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

Date2018-04-19 15:48
Fromfauveboy
SubjectRe: [Csnd] Table / Sample playback speed and duration
I don't  actually know what you mean?



--
Sent from: http://csound.1045644.n5.nabble.com/Csound-General-f1093014.html

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