Csound Csound-dev Csound-tekno Search About

[Csnd] tempest

Date2011-10-24 09:16
Frommenno
Subject[Csnd] tempest
Hi,

instrument 2101 from the Csound Book, using the tempest opcode, does not
work for me.
Is someone willing to try it out?

Perhaps there is an issue with tempest because the following example does
not match my expectation as well?
p4 is the startempo. "beats.wav" = 120 bpm so i assume that the corrected
tempo will be displayed after half a second or so, but it does not. Instead
it follows more or less the value of the starttempo throughout the example,
but with a very deviation.




; Select audio/midi flags here according to platform
; Audio out   Audio in
-odac      ;;;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 = 1

; Instrument #1.
instr 1

itempo = p4
  asig soundin "beats.wav"
krms rms asig
  ; Estimate its tempo.
  k1 tempest krms, .02, .1, 3, 2, 30, .005, .3, p4, 1
  printk2 k1

  out asig
endin





; Table #1, a declining line.
f 1 0 128 16 1 128 1

; Play Instrument #1 for two seconds.
i 1 0 2 120
i 1 3 2 100
i 1 6 2 60
e






The output is this:

 i1     0.00000
 i1   127.68835
 i1   130.55675
 i1   135.93220
 i1   136.99758
 i1   135.06034
 i1   138.31908
 i1   138.28060
 i1   151.15247
 i1   158.53091
 i1   154.14752
B  0.000 ..  3.000 T  3.000 TT  3.000 M:  32767.0
soundin: opened '/home/menno/csound/Samples/beats.wav':
         44100 Hz, 1 channel(s), 88200 sample frames

 i1     0.00000
 i1    97.20582
 i1    95.77929
 i1    95.14187
 i1    95.69701
 i1    95.40662
 i1    94.94771
 i1    92.88452
 i1    95.49217
 i1    98.95349
B  3.000 ..  6.000 T  6.000 TT  6.000 M:  32767.0
soundin: opened '/home/menno/csound/Samples/beats.wav':
         44100 Hz, 1 channel(s), 88200 sample frames

 i1     0.00000
 i1    63.19203
 i1    64.82812
 i1    66.46707
 i1    66.38185
 i1    67.86636
 i1    67.61985
 i1    67.14476
 i1    70.85533

thanks,
Menno

--
View this message in context: http://csound.1045644.n5.nabble.com/tempest-tp4931696p4931696.html
Sent from the Csound - General mailing list archive at Nabble.com.


Send bugs reports to the Sourceforge bug tracker
            https://sourceforge.net/tracker/?group_id=81968&atid=564599
Discussions of bugs and features can be posted here
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"

Date2011-10-24 22:58
Fromk_o_m_p
SubjectRe: [Csnd] tempest
Hi Menno,
I was testing the instrument you send and changed the RMS opcode for the PITCHAMPDF following the example from tempest in the manual. There is some significant improvements. I suppose that if p4 is too far away from the correct tempo, tempest is not able to detect it. Tricky thing.
Best,
Luís


Em 24.10.11 10:16, menno escreveu:
Hi,

instrument 2101 from the Csound Book, using the tempest opcode, does not
work for me.
Is someone willing to try it out?

Perhaps there is an issue with tempest because the following example does
not match my expectation as well?
p4 is the startempo. "beats.wav" = 120 bpm so i assume that the corrected
tempo will be displayed after half a second or so, but it does not. Instead
it follows more or less the value of the starttempo throughout the example,
but with a very deviation.


<CsoundSynthesizer>
<CsOptions>
; Select audio/midi flags here according to platform
; Audio out   Audio in
-odac      ;;;RT audio I/O
; For Non-realtime ouput leave only the line below:
; -o tempest.wav -W ;;; for file output any platform
</CsOptions>
<CsInstruments>

; Initialize the global variables.
sr = 44100
kr = 4410
ksmps = 10
nchnls = 1

; Instrument #1.
instr 1

itempo = p4
  asig soundin "beats.wav"
krms rms asig
  ; Estimate its tempo.
  k1 tempest krms, .02, .1, 3, 2, 30, .005, .3, p4, 1
  printk2 k1

  out asig
endin


</CsInstruments>
<CsScore>

; Table #1, a declining line.
f 1 0 128 16 1 128 1

; Play Instrument #1 for two seconds.
i 1 0 2 120
i 1 3 2 100
i 1 6 2 60
e


</CsScore>
</CsoundSynthesizer>


The output is this:

 i1     0.00000
 i1   127.68835
 i1   130.55675
 i1   135.93220
 i1   136.99758
 i1   135.06034
 i1   138.31908
 i1   138.28060
 i1   151.15247
 i1   158.53091
 i1   154.14752
B  0.000 ..  3.000 T  3.000 TT  3.000 M:  32767.0
soundin: opened '/home/menno/csound/Samples/beats.wav':
         44100 Hz, 1 channel(s), 88200 sample frames

 i1     0.00000
 i1    97.20582
 i1    95.77929
 i1    95.14187
 i1    95.69701
 i1    95.40662
 i1    94.94771
 i1    92.88452
 i1    95.49217
 i1    98.95349
B  3.000 ..  6.000 T  6.000 TT  6.000 M:  32767.0
soundin: opened '/home/menno/csound/Samples/beats.wav':
         44100 Hz, 1 channel(s), 88200 sample frames

 i1     0.00000
 i1    63.19203
 i1    64.82812
 i1    66.46707
 i1    66.38185
 i1    67.86636
 i1    67.61985
 i1    67.14476
 i1    70.85533

thanks,
Menno

--
View this message in context: http://csound.1045644.n5.nabble.com/tempest-tp4931696p4931696.html
Sent from the Csound - General mailing list archive at Nabble.com.


Send bugs reports to the Sourceforge bug tracker
            https://sourceforge.net/tracker/?group_id=81968&atid=564599
Discussions of bugs and features can be posted here
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"




--
signatur luis antunes pena
Severinswall 54
D-50678 Köln

http://luisantunespena.eu

+49 (0)221 29020757
+49 (0)176 968 09 867 (mobile)