[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [sc-users] Pitch tracking [+ installing Tartini]



Thanks a lot for the tips.

I'm certainly keen to check out Tartini as well, I just can't manage to get it installed. I've tried doing "scons" in share/sc3-plugins but it throws a repeating error:

scons: warning: Two different environments were specified for target /home/peter/supercollider/common/Source/common/SC_fftlib.os,
    but they appear to have the same action: $SHCXX -o $TARGET -c $SHCXXFLAGS $SHCCFLAGS $_CCCOMCOM $SOURCES
File "/home/peter/share/sc3-plugins/SConstruct", line 352, in <module>

Anyone have any ideas what might be wrong (I'm on Linux)?

Thanks,
Peter




On 09/19/2010 06:17 PM, Chad McKinney wrote:
Hi Peter,
Check out SendTrig and SendReply. Using either of those classes you could do all the above things, also you might want to check out Tartini instead of Pitch. If you're interested in only notated rhythm, (say for a drum part or something) you could use Onset.kr. Sounds fun, I hope it works out for you. Best,

Chad

On Sun, Sep 19, 2010 at 8:49 AM, Peter O'Doherty <mail@xxxxxxxxxxxxxxxxx> wrote:
Hi,
I have a couple of questions concerning Pitch. Using the code below I get the frequency and midi information in the following format:

freq: 440
[ /tr, 1001, 69, 440 ]
freq: 272.809
[ /tr, 1001, 60, 272.80856323242 ]

Is there any way to "trim" this to print only freq and midi in a form such as: 440 69 ?
Is there any way to store the polled frequency information to allow it to be exported to, for example, excel?
Is it possible to convert the "copy" channel to a midi file, including attack info?
(Yes, I'm looking for a method to created a rough transcription of an audio file.)
Thanks,
Peter

(
SynthDef("pitchFollow1",{|t_poll = 0|
   var in, amp, freq, hasFreq, out, original, copy;
   in = PlayBuf.ar(1, c.bufnum, loop:0);

   # freq, hasFreq = Pitch.kr(in, ampThreshold: 0.01, median: 7);

   original = PlayBuf.ar(1, c.bufnum, loop: 0) * 2;
   copy = SinOsc.ar(freq, 0, 0.2);

   Poll.kr(Impulse.kr(10), freq, "freq", freq.cpsmidi, "midi");
   Out.ar(0, [original, copy]);

}).play(s);
)

--
->  Peter O'Doherty
->  http://www.peterodoherty.net
->  mail@xxxxxxxxxxxxxxxxx

**** rhizoradio
**** live every sunday at 18:00 (CET) on DFM
**** http://dfm.nu
**** http://rhizoradio.net
**** podcast: http://www.peterodoherty.net/rhizoradio/rhizoradio.xml
*************************************************


_______________________________________________
sc-users mailing list

info (subscription, etc.): http://www.beast.bham.ac.uk/research/sc_mailing_lists.shtml
archive: https://listarc.bham.ac.uk/marchives/sc-users/
search: https://listarc.bham.ac.uk/lists/sc-users/search/



-- 
-> Peter O'Doherty
-> http://www.peterodoherty.net
-> mail@xxxxxxxxxxxxxxxxx

**** rhizoradio
**** live every sunday at 18:00 (CET) on DFM
**** http://dfm.nu
**** http://rhizoradio.net
**** podcast: http://www.peterodoherty.net/rhizoradio/rhizoradio.xml
*************************************************