I have a simple gen01-to-loscil routine that uses part of a 24 bit, 48 kHz wav file. Yet when I render the score, the result is slower than the original soundfile. This happens irrespective of the settings in csound5gui's general performance settings (I assume sr & kr in CsInstruments overrides this), and it also happens whether I render from the GUI or from the command line (with or without the -3 flag for 24 bit). Yet sr is defined as 48000. Changing kcps of the loscil to 2 rather than 1 for some reason brings it back to the right speed, but I shouldn't have to do that, no?
I'm sure I'm overlooking something... sorry if it's obvious!
Here's the relevant code:
sr = 48000
kr = 4800
ksmps = 10
nchnls = 1
kamp = 30000
kcps = 1 ; keeping this setting makes soundfile play twice as slow
ifn = 1
ibas = 1
a1 loscil kamp, kcps, ifn, ibas
; gen01, read audio file
f 1 0 262144 1 "flux.wav" 0 4 0
i 1 0 4