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.508s, CPU: 0.139s 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: WITH_E rtevent: T 0.115 TT 0.115 M: 0 0 Score finished in csoundPerformKsmps() with 2. result: 2 inactive allocs returned to freespace end of score. overall amps: 0 0 overall samples out of range: 0 0 0 errors in performance Elapsed time at end of performance: real: 0.094s, CPU: 0.009s 40 512 sample blks of 64-bit floats written to dac Finished. result: 2