hello,
i would like to know how can i change the frequency of a sample?
thank you
ALine
-
Frequency
-
That's a little vague. Can you elaborate on what you're trying to do?
-
yes, sorry...
i will trigger a sound with a wiimote and according how i will move it,
the frequency of the sound will change...
is that could happen?thxx
-
Hehe, perhaps I should have been a little clearer as well. I guess I was asking more if you meant pitch-shifting or playback speed. I posted a patch a while back showing how to use MIDI notes to trigger samples at different speeds that might help here.
http://puredata.hurleur.com/sujet-2576-midi-play-sample-array
You could try modifying this by mapping wiimote messages to MIDI note numbers. If you're looking to change the frequency during playback, you'll have to set it up so that you're retriggering [vline~] at different speeds starting from the last sample played or replace it with a [phasor~] setup. The latter would be easier if you're using looped samples.
If it's just pitch-shifting you're looking for, look at the G09.pitchshift.pd patch in the audio examples.
-
thx Maelstorm, i couldn't find find the patch pitchshifting... :s
i'll tried both,
then do you thinnk if it will make a difference if i add at this music changing of "pitch" + changing of the wave form ??
how can i do that?thx for your help,
-
If you could load your sound in a array using soundfiler and then play it back with tabosc~
tabosc~ lets you change the playback speed and pitch pretty easy by and given factor.edit: I forgot to mention that this only works for loops, at least as far as I understand
-
You could use the [set array( message for [tabread4~] to change the table you're looking up.
I think [tabosc4~] is geared more toward single-cycle waveforms of the traditional power of two type. But really, using a [phasor~] to look up a table using [tabread4~] isn't much different.
-
ok thanks for your help!!!!! )))