C S O U N D P E R F O R M A N C E M O D E By Michael Gogins This program demonstrates Csound performance modes ('real-time' vs. 'non-real-time'). It attempts to answer questions that remain after reading documentation and source code. Testing csoundCompileCsdText... time resolution is 1000.000 ns 0dBFS level = 32768.0 --Csound version 6.12 beta (double samples) May 16 2018 [commit: 36ef6d6f4c3e1fb9c1a4a7611a415b68dc6bfbfb] libsndfile-1.0.28 STARTING FILE Creating options Creating orchestra closing tag Creating score instr Harpsichord uses instrument number 1 instr Buzzer uses instrument number 2 rtaudio: ALSA module enabled rtmidi: ALSA Raw MIDI module enabled displays suppressed 0dBFS level = 32768.0 ftable 101: ftable 102: orch now loaded audio buffered in 256 sample-frame blocks ALSA: -B 1024 not allowed on this device; using 3763 instead ALSA: -b 256 not allowed on this device; using 1881 instead ALSA output: total buffer size: 3763, period size: 1881 writing 512 sample blks of 64-bit floats to dac SECTION 1: B 0.000 .. 0.100 T 0.100 TT 0.100 M: 0 0 new alloc for instr Harpsichord: WARNING: instr Harpsichord uses 11 p-fields but is given 5 instr 1 t 0.1000 d 0.8050 k 60.0000 v 60.0000 p 0.0000 B 0.100 .. 0.200 T 0.200 TT 0.200 M: -9.63 -17.29 new alloc for instr Buzzer: WARNING: instr Buzzer uses 11 p-fields but is given 5 instr 2 t 0.2000 d 0.7000 k 64.0000 v 60.0000 p 0.0000 B 0.200 .. 0.300 T 0.300 TT 0.300 M: -7.44 -15.10 new alloc for instr Buzzer: WARNING: instr Buzzer uses 11 p-fields but is given 5 instr 2 t 0.3000 d 0.7000 k 67.0000 v 60.0000 p 0.0000 B 0.300 .. 0.400 T 0.400 TT 0.400 M: -2.81 -10.47 new alloc for instr Harpsichord: WARNING: instr Harpsichord uses 11 p-fields but is given 5 instr 1 t 0.4000 d 0.8050 k 71.0000 v 60.0000 p 0.0000 B 0.400 .. 0.700 T 0.900 TT 0.900 M: -1.45 -9.11 B 0.700 .. 0.600 T 0.905 TT 0.905 M: -10.63 -18.28 B 0.600 .. 0.950 T 0.950 TT 0.950 M: -7.33 -14.99 B 0.950 .. 0.800 T 1.000 TT 1.000 M: -13.33 -20.98 B 0.800 .. 1.050 T 1.050 TT 1.050 M: -18.04 -25.69 B 1.050 .. 0.900 T 1.205 TT 1.205 M: -19.27 -26.93 B 0.900 .. 1.506 T 1.506 TT 1.506 M: -22.59 -30.24 Score finished in csoundPerformKsmps() with 2. inactive allocs returned to freespace end of score. overall amps: -1.45 -9.11 overall samples out of range: 0 0 0 errors in performance Elapsed time at end of performance: real: 1.509s, CPU: 0.131s 519 512 sample blks of 64-bit floats written to dac Testing csoundCompileOrc... 0dBFS level = 32768.0 --Csound version 6.12 beta (double samples) May 16 2018 [commit: 36ef6d6f4c3e1fb9c1a4a7611a415b68dc6bfbfb] libsndfile-1.0.28 instr Harpsichord uses instrument number 1 instr Buzzer uses instrument number 2 rtaudio: ALSA module enabled rtmidi: ALSA Raw MIDI module enabled displays suppressed 0dBFS level = 32768.0 ftable 101: ftable 102: orch now loaded audio buffered in 256 sample-frame blocks ALSA: -B 1024 not allowed on this device; using 3763 instead ALSA: -b 256 not allowed on this device; using 1881 instead ALSA output: total buffer size: 3763, period size: 1881 writing 512 sample blks of 64-bit floats to dac SECTION 1: WITHOUT_E rtevent: T 0.214 TT 0.214 M: 0 0 new alloc for instr Harpsichord: WARNING: instr Harpsichord uses 11 p-fields but is given 5 instr 1 t 0.2145 d 0.8050 k 60.0000 v 60.0000 p 0.0000  rtevent: T 0.314 TT 0.314 M: -9.63 -17.29 new alloc for instr Buzzer: WARNING: instr Buzzer uses 11 p-fields but is given 5 instr 2 t 0.3145 d 0.7000 k 64.0000 v 60.0000 p 0.0000  rtevent: T 0.415 TT 0.415 M: -7.44 -15.10 new alloc for instr Buzzer: WARNING: instr Buzzer uses 11 p-fields but is given 5 instr 2 t 0.4145 d 0.7000 k 67.0000 v 60.0000 p 0.0000  rtevent: T 0.515 TT 0.515 M: -2.81 -10.47 new alloc for instr Harpsichord: WARNING: instr Harpsichord uses 11 p-fields but is given 5 instr 1 t 0.5145 d 0.8050 k 71.0000 v 60.0000 p 0.0000 Csound tidy up: Interrupt result: -5 inactive allocs returned to freespace end of score. overall amps: -1.45 -9.11 overall samples out of range: 0 0 0 errors in performance Elapsed time at end of performance: real: 2.994s, CPU: 0.208s 1038 512 sample blks of 64-bit floats written to dac Finished. result: 2 backtrace() returned 13 addresses /usr/local/lib/libcsound64.so.6.0(+0x41ba3) [0x7f3e27e81ba3] /lib/x86_64-linux-gnu/libc.so.6(+0x37140) [0x7f3e27a97140] /lib/x86_64-linux-gnu/libc.so.6(__poll+0x14) [0x7f3e27b68904] /usr/lib/x86_64-linux-gnu/libasound.so.2(+0x4f91e) [0x7f3e252a491e] /usr/lib/x86_64-linux-gnu/libasound.so.2(+0x54858) [0x7f3e252a9858] /usr/lib/x86_64-linux-gnu/libasound.so.2(snd_pcm_mmap_writei+0x5a) [0x7f3e252b58fa] /usr/local/lib/csound/plugins64-6.0/librtalsa.so(+0x36f2) [0x7f3e1c4eb6f2] /usr/local/lib/libcsound64.so.6.0(+0x6a7e7) [0x7f3e27eaa7e7] /usr/local/lib/libcsound64.so.6.0(+0x43b6d) [0x7f3e27e83b6d] /usr/local/lib/libcsound64.so.6.0(csoundPerformKsmps+0x59) [0x7f3e27e852e9] ./performance_mode(+0xc8b) [0x564f0f889c8b] /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf1) [0x7f3e27a811c1] ./performance_mode(+0xd3a) [0x564f0f889d3a]