kunstmusik / blue

Blue - An Integrated Music Environment
https://blue.kunstmusik.com
GNU General Public License v2.0
131 stars 12 forks source link

--sample-accurate produces error #425

Open tjingboem opened 5 years ago

tjingboem commented 5 years ago

when rendering a soundfile (on the AudioLayer) to disk produces an error and thus an empty wav file as a result.

I did not notice this before but think it has been there all along. I mostly do my testing in realtime only, so this one probably escaped my attention...

Here is the output of the Bluefile AudioLayer_RenderToDisk.blue.zip In this case, a stereo file was used.

Render Command ( csound -+msg_color=false --format=wav:short -R -d -m135 --sample-accurate -o /media/menno/datae/onderzoek/VPhaserM/menno08.wav /tmp/tempCsd8736014865076709314.csd ) UnifiedCSD: /tmp/tempCsd8736014865076709314.csd STARTING FILE Creating orchestra closing tag Creating score rtaudio: ALSA module enabled rtmidi: ALSA Raw MIDI module enabled defining argument INVERSE_POWER``a as...#kval# defining argumentINVERSE_POWERa as...#kv# defining argument `INVERSE_POWERa as...#kval# defining argument `INVERSE_POWER``a as...#kv# instr BlueMixer uses instrument number 3 Elapsed time at end of orchestra compile: real: 0.007s, CPU: 0.028s sorting score ... ... done Elapsed time at end of score sort: real: 0.008s, CPU: 0.028s displays suppressed 0dBFS level = 1.0 orch now loaded audio buffered in 256 sample-frame blocks writing 1024-byte blks of shorts to /media/menno/datae/onderzoek/VPhaserM/menno08.wav (WAV) SECTION 1: new alloc for instr BlueMixer: B 0.000 .. 0.266 T 0.264 TT 0.264 M: 0.00000 0.00000 new alloc for instr 1: diskin2: opened '/media/menno/datae/EigenWerk/eigenwerk/samples/was_aanzwengelen.wav': 48000 Hz, 2 channel(s), 1349998 sample frames

PERF ERROR in instr 1 line 473: Out of range in vaget (0) from file /tmp/tempCsd8736014865076709314.csd (1)

k12 ##array_get aenv 0

note aborted B 0.266 .. 8.797 T 8.795 TT 8.795 M: 0.00000 0.00000 new alloc for instr 2: rtevent: T 8.797 TT 8.797 M: 0.00000 0.00000 Score finished in csoundPerformKsmps() with 2. inactive allocs returned to freespace end of score. overall amps: 0.00000 0.00000 overall samples out of range: 0 0 1 errors in performance Elapsed time at end of performance: real: 0.029s, CPU: 0.073s 512 1024 sample blks of shorts written to /media/menno/datae/onderzoek/VPhaserM/menno08.wav (WAV)

tjingboem commented 5 years ago

i found that i still had the option --sample-accurate in the Disk Render settings. When i removed it a decent wave file with content was produced:

Render Command ( csound -+msg_color=false --format=wav:short -R -d -m135 -o /media/menno/datae/onderzoek/VPhaserM/menno11.wav --env:SFDIR=/media/menno/datae/onderzoek/bluetests /media/menno/datae/onderzoek/bluetests/tempCsd2942464283198402041.csd ) UnifiedCSD: /media/menno/datae/onderzoek/bluetests/tempCsd2942464283198402041.csd STARTING FILE Creating orchestra closing tag Creating score rtaudio: ALSA module enabled rtmidi: ALSA Raw MIDI module enabled defining argument INVERSE_POWER``a as...#kval# defining argumentINVERSE_POWERa as...#kv# defining argument `INVERSE_POWERa as...#kval# defining argument `INVERSE_POWER``a as...#kv# instr BlueMixer uses instrument number 3 Elapsed time at end of orchestra compile: real: 0.012s, CPU: 0.021s sorting score ... ... done Elapsed time at end of score sort: real: 0.012s, CPU: 0.021s displays suppressed 0dBFS level = 1.0 orch now loaded audio buffered in 256 sample-frame blocks writing 1024-byte blks of shorts to /media/menno/datae/onderzoek/VPhaserM/menno11.wav (WAV) SECTION 1: new alloc for instr BlueMixer: B 0.000 .. 0.266 T 0.267 TT 0.267 M: 0.00000 0.00000 new alloc for instr 1: diskin2: opened '/media/menno/datae/EigenWerk/eigenwerk/samples/was_aanzwengelen.wav': 48000 Hz, 2 channel(s), 1349998 sample frames

B 0.266 .. 8.797 T 8.797 TT 8.797 M: 0.69000 0.47482 new alloc for instr 2: rtevent: T 8.800 TT 8.800 M: 0.00000 0.00000 Score finished in csoundPerformKsmps() with 2. inactive allocs returned to freespace end of score. overall amps: 0.69000 0.47482 overall samples out of range: 0 0 0 errors in performance Elapsed time at end of performance: real: 0.078s, CPU: 0.088s 512 1024 sample blks of shorts written to /media/menno/datae/onderzoek/VPhaserM/menno11.wav (WAV)