Bugs item #3440428, was opened at 2011-11-20 03:19 Message generated for change (Settings changed) made by veplaini You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=564599&aid=3440428&group_id=81968 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. >Category: Opcodes >Group: csound5 >Status: Closed >Resolution: Rejected Priority: 5 Private: No Submitted By: Menno (menno0) >Assigned to: Victor Lazzarini (veplaini) Summary: tempest issue Initial Comment: As you can see in the output of the following instrument the value of tempest gets higher and never reahes the right tempo (which is 120 beats per minute). ; Select audio/midi flags here according to platform ; Audio out Audio in -o doac ;;;RT audio I/O ; For Non-realtime ouput leave only the line below: ; -o tempest.wav -W ;;; for file output any platform ; Initialize the global variables. sr = 44100 kr = 4410 ksmps = 10 nchnls = 2 ; Instrument #1. instr 1 itempo = p4 ; Use the "beats.wav" sound file. asig diskin2 "beats.wav", 1, 0, 1 kcps, krms pitchamdf asig, 150, 1500, 200 ; Estimate its tempo. k1 tempest krms, .02, .1, 3, 2, 30, .005, .3, p4, 1 printk2 k1 outs asig, asig endin ; Table #1, a declining line. f 1 0 128 16 1 128 1 ; Play Instrument #1 for two seconds. i 1 0 6 120 i 1 7 . 100 i 1 14 20 60 e Thsi is my output: 0dBFS level = 32768.0 Csound version 5.14 beta (double samples) Nov 14 2011 STARTING FILE Creating options Creating orchestra Creating score Loading command-line libraries: /usr/local/lib/libloris.so rtaudio: ALSA module enabled RAWWAVE_PATH: /usr/local/share/csound/rawwaves/ rtmidi: PortMIDI module enabled orch compiler: 22 (23) lines read instr 1 Elapsed time at end of orchestra compile: real: 0.001s, CPU: 0.000s sorting score ... ... done Elapsed time at end of score sort: real: 0.001s, CPU: 0.000s Csound version 5.14 beta (double samples) Nov 14 2011 0dBFS level = 32768.0 orch now loaded audio buffered in 256 sample-frame blocks ALSA input: total buffer size: 1024, period size: 256 reading 1024-byte blks of shorts from adc:hw:0,0 (RAW) ALSA output: total buffer size: 1024, period size: 256 writing 512 sample blks of 64-bit floats to dac:hw:0,0 SECTION 1: ftable 1: new alloc for instr 1: diskin2: opened '/home/menno/csound/Samples/beats.wav': 44100 Hz, 1 channel(s), 88200 sample frames i1 0.00000 i1 122.01970 i1 125.36316 i1 123.93163 i1 126.79990 i1 127.28761 i1 125.99241 i1 123.18382 i1 125.28464 i1 125.28437 i1 124.61430 i1 127.47832 i1 125.11007 i1 123.93246 i1 126.45425 i1 130.38052 i1 130.25729 i1 128.71605 i1 129.93666 i1 130.00640 i1 127.60157 i1 127.08619 i1 123.58562 i1 135.65663 i1 137.44001 i1 150.80345 i1 152.17565 i1 157.21639 i1 159.82051 i1 164.22312 i1 168.53783 i1 167.78832 B 0.000 .. 7.000 T 7.000 TT 7.000 M: 32767.0 32767.0 diskin2: opened '/home/menno/csound/Samples/beats.wav': 44100 Hz, 1 channel(s), 88200 sample frames i1 0.00000 i1 99.88434 i1 101.07798 i1 106.21422 i1 114.96370 i1 119.90223 i1 120.71339 i1 119.32753 i1 123.22463 i1 124.24583 i1 124.10479 i1 127.07139 i1 124.90759 i1 123.83036 i1 126.33917 i1 130.35480 i1 130.23712 i1 129.93328 i1 131.64491 i1 131.34520 i1 128.24307 i1 127.40814 i1 123.73765 i1 135.74817 i1 137.47860 i1 150.82667 i1 152.19635 i1 157.28367 i1 159.85532 i1 164.25704 i1 168.55411 i1 167.79639 B 7.000 .. 14.000 T 14.000 TT 14.000 M: 32767.0 32767.0 diskin2: opened '/home/menno/csound/Samples/beats.wav': 44100 Hz, 1 channel(s), 88200 sample frames i1 0.00000 i1 62.50857 i1 61.60961 i1 62.72835 i1 62.06525 i1 61.97379 i1 61.04125 i1 59.98114 i1 61.28272 i1 62.95342 i1 61.51266 i1 61.60055 i1 62.19413 i1 62.81108 i1 62.78179 i1 62.71184 i1 61.39710 i1 62.33518 i1 60.57065 i1 60.03605 i1 60.08617 i1 60.94620 i1 59.87779 i1 62.22027 i1 61.16057 i1 64.54984 i1 62.26499 i1 61.61631 i1 63.06071 i1 62.37432 i1 63.83494 i1 63.02732 i1 67.03673 i1 64.76492 i1 65.77553 i1 69.22928 i1 72.87530 i1 72.22740 i1 72.60945 i1 75.72816 i1 79.43469 i1 81.27299 i1 82.13166 i1 83.40440 i1 83.46352 i1 83.75190 i1 83.21794 i1 82.23006 i1 90.34106 i1 93.60338 i1 91.63054 i1 91.37240 i1 95.59522 i1 94.75476 i1 92.17287 i1 99.19971 i1 106.79375 i1 109.83218 i1 112.69041 i1 117.49261 i1 114.34605 i1 118.23046 i1 116.92439 i1 120.18362 i1 120.92367 i1 118.39638 i1 121.74290 i1 123.48423 i1 128.34705 i1 125.72096 i1 136.93310 i1 139.14557 i1 137.89849 i1 151.07902 i1 148.82981 i1 145.07291 i1 142.36389 i1 139.46070 i1 134.95495 i1 131.94186 i1 128.52681 i1 127.08981 i1 137.74104 i1 143.76543 i1 140.12982 i1 141.63938 i1 139.11217 i1 137.88208 i1 134.21147 i1 131.65883 i1 134.62006 i1 130.64967 i1 139.80533 i1 143.00864 i1 154.09532 i1 154.90056 i1 164.32820 i1 162.24244 i1 165.19809 i1 157.41972 i1 162.08981 i1 162.04147 i1 169.13209 i1 168.08230 i1 172.29985 i1 174.88405 i1 172.79993 i1 180.04589 i1 173.30221 i1 177.44633 B 14.000 .. 34.000 T 34.000 TT 34.000 M: 32767.0 32767.0 Score finished in csoundPerformKsmps(). inactive allocs returned to freespace end of score. overall amps: 32767.0 32767.0 overall samples out of range: 0 0 0 errors in performance Elapsed time at end of performance: real: 34.027s, CPU: 8.250s 5858 512 sample blks of 64-bit floats written to dac:hw:0,0 Menno ---------------------------------------------------------------------- >Comment By: Victor Lazzarini (veplaini) Date: 2011-11-20 07:48 Message: This is not a bug. The opcode does not seem to work as well with low thresholds. By increasing it, we get a better tempo tracking. It needs a better example. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=564599&aid=3440428&group_id=81968 ------------------------------------------------------------------------------ All the data continuously generated in your IT infrastructure contains a definitive record of customers, application performance, security threats, fraudulent activity, and more. Splunk takes this data and makes sense of it. IT sense. And common sense. http://p.sf.net/sfu/splunk-novd2d _______________________________________________ Csound-devel mailing list Csound-devel@lists.sourceforge.net