-
llorona
Just in case you were interested, here's my GUI plugin.
(Edit: can't seem to get the file upload to work.)
-
llorona
Here's another example of a post that displays incorrectly: http://forum.pdpatchrepo.info/topic/5287/what-is-an-abstraction-and-why-use-0-1-etc
Though I don't think
[table]
is to blame here...Also, the HTML entity … (ellipsis) is showing up escaped; not sure if this is a problem for any other entities.
Finally, the backup site at http://puredata_bak.hurleur.com/ is unavailable, showing an "Unable to insert into online list" error.
-
llorona
@le-NEKO Would it be possible to fix posts from the old forum that contain
[table]
(sans markdown, of course) so they display correctly in the new forum? Right now, posts that contain this particular string are mangled and the threads don't make much sense, for example http://forum.pdpatchrepo.info/topic/7656/creating-a-sfxplayer-file-wav-and-making-it-have-arrays/8 -
llorona
The new forum doesn't seem to like it when the word "table" is enclosed by square brackets (I.e. the ASCII representation of PD's table object). I guess it thinks it's BBCode? It chops off the rest of the post.
-
llorona
I get the following error when I try to create a csoundapi~ object:
/usr/lib/pd/extra/csoundapi~.pd_linux: /usr/lib/pd/extra/csoundapi~.pd_linux: undefined symbol: csoundSetHostImplementedAudioIO
csoundapi~
... couldn't createI'm running Ubuntu 10.04, and I should mention that I installed the Csound API through Synaptic (I believe it's the "pd-csound" package).
-
llorona
The subpatch could be opening outside the boundaries of your screen. Click on the subpatch, press Alt-Spacebar, then press X to maximize the window. You can then resize the window as needed.
-
llorona
Soundfiler only accepts "read" and "write" messages. What you need is actually a series of [read( messages, like:
[read -resize ~/samples/foo.wav your-table(
[read -resize ~/samples/bar.wav your-table( -
llorona
Also,
http://puredata.hurleur.com/viewtopic.php?pid=31337#p31337
I wonder if it would be possible to make a [keydown] external that fired a single bang regardless of OS or how long the key was held down...
-
llorona
You should be able to do what you need by hacking Gromit's patch in this thread:
http://puredata.hurleur.com/sujet-9502-sustaining-duration-note-using-key-keyup-release
-
-
llorona
As it turns out I made a patch to do (more or less) exactly this a few years ago. It fills a table with seven notes of a diatonic scale and allows you to select any combination of twelve root notes and seven modes.
-
llorona
You need to compute a few values with the output from [soundfiler].
First it’s helpful to think of how Pd stores audio files in arrays. If your sample length is 672000, [soundfiler] will, provided you use the -resize flag, fill an array with values from 0 to 671999. If the sample length is 336000, from 0 to 335999, etc.
Since [phasor~] outputs values from 0 to 1, we only need to multiply its output by the output from [soundfiler] and pass this new value into [tabread4~] to play the audio from beginning to end.
However, the frequency of [phasor~] also needs to be adjusted so that a single cycle of [phasor~] is the same duration as your audio file. This is done by dividing 44100 (assuming that’s the samplerate of your audio file) by the output of [soundfiler].
Having computed the [phasor~] frequency, you can now scale it to change the sample’s playback speed, or multiply it by -1 to reverse sample playback.
The attached patch should do what you need. You can pass messages into its inlet to control it:
1: forward, normal speed
-1: reverse, normal speed
0.5: forward, half speed… and so on.
-
llorona
Well, there's no hard and fast rule. Certainly you can build EQs, mixers, etc. with Pd and use sliders, etc. to input data. However, from your other posts it seems you're developing for some smaller platform like Raspberry Pi or a game engine. In that case you'd want your patches to be as efficient as possible.
I'd definitely recommend getting rid of GUI arrays in favor of
-
llorona
I forgot to mention... you can replace the GUI arrays with http://www.pdpatchrepo.info/hurleur/llorona-sfx2~.pd
-
llorona
Esa,
I made some small modifications to your patch. This version loads the sample when the object is created, eliminating the need for the first inlet. Now you can simply bang the single inlet to play the sample as soon as the object is created. I also added the -resize flag to the read message you're passing to [soundfiler]. Hopefully this helps you out.