Using 1/f noise as Control Signal
Hey all,
I am flirting with the idea of using 1/f noise (pink noise) as a control signal to various PD parameters. As some of you may know, the 1/f noise equation is commonly found in nature and various natural systems. It is characterized by a frequency power spectral density that decreases as the frequency increases, following a power-law distribution. It can be observed in many natural phenomena such as earthquakes, wind, even in the heartbeat. I am thinking-exploring ways (and the know how) to apply this characteristic to control various parameters within a self-generative future patch, from microscopic to macroscopic level (in either audio or control rates). Things like ADSR curves, to the density of pitched sounds within a time framed composition and everything in between.
As an example, 1/f noise can be observed in the sound of Rainfall The different raindrop sizes result in variations in sound frequencies and amplitudes. Suppose one drop of rain is synthesized, how could you apply the 1/f noise to generate a complete Rainfall realistically?
Any ideas and reference to other patches exploring this idea are welcome.
PD on Mac M2 barely responding and unusable
Hello everyone, I have a question about the performance of Pure Data on mac M2 systems. The software seems to behave very strangely and barely responding, bangs are unclickable and the settings menu is unusable.
I am able to change settings but soon after the whole program does not respond to my trackpad, none of the usual controls work.
However when I operate the mac through an Intel Macbook via screensharing, it works perfectly fine.
Anyone with the same problem or any ideas?
Might it be the ping/latency of the bluetooth trackpad that is not working with the buffersize of puredata? I’m so confused by this since it does not seem to be an OSX/M2 problem only since it works when operated by the trackpad of the Intel macbook.
Thank you all!
"On The Run - Pink Floyd" patch
I have an assignment for university that is creating a similar sound comparing to this one. Can someone help please?
Using TouchOSC to draw into a 16 step array? communication back'n'forth? Show Array content in TouchOSC?
@esaruoho said:
hi, i'm not sure what Ping in TouchOSC is?
If it's enabled, then TouchOSC running on the tablet will send a /ping
message to the outgoing address/port at the moment when you activate the TouchOSC interface and every 30 seconds after that. This is an easy way to get the tablet to send a message to the computer right away, so that the computer can get the IP and port that the tablet is sending from.
hjh
Using TouchOSC to draw into a 16 step array? communication back'n'forth? Show Array content in TouchOSC?
@ddw_music said:
If you enable "Ping" in TouchOSC, then it will automatically send a message to the computer, which will trigger the "connect" logic right away.
hi, i'm not sure what Ping in TouchOSC is?
is it maybe this? i'll try to enable it and see what happens.
Using TouchOSC to draw into a 16 step array? communication back'n'forth? Show Array content in TouchOSC?
@whale-av said:
@esaruoho OSC is horrible in Vanilla..... because message headers are symbols but can include numbers that Pd interprets as floats. It is much easier to use the MrPeach externals.
Anyway...... vanilla....... plom.zip using a multifader object.
The index currently played by metro turns green.....
David.
Low-res screenshot.......
ok, i think i'm ready to try this out. i've been getting back'n'forth type stuff going on with TouchOSC and Ableton Live, so in theory i should be able to get PD stuff back to TouchOSC via OSC.
fingers crossed!
so on TouchOSC "Grid" called multifader1, the scripting contains
function onReceiveOSC(msg)
local colors =
{
red = Color(1.,.16,.11),
green = Color(.46,.8,.15),
blue = Color(.0,.77,.66),
yellow = Color(1.,.93,.0),
purple = Color(.67,.5,.67),
gray = Color(1.,1.,1.),
orange = Color(.98,.63,.11),
brown = Color(.51,.4,.28),
pink = Color(1.,.02,.95)
}
local address = msg[1]
if(address:sub(-6) == '/color') then
local argument = msg[2][1].value
local color = colors[argument]
if(color ~= nil) then
self.color = color
end
end
end
and the multifader1-named-grid sends out 7 different messages
Trying to save unique sound files but counter keeps resetting on reboot
Hello forum!
I have built the following patch for an interactive performance in order to achieve the following:
Button 1 will record a sound each time, which will be assigned a unique name "recording%d"
Button 2 will playback the most recently recorded sound file
Once 4 sound files are recorded, Button 3 will begin playback of these files, sequenced to a backing track. When the backing track finishes, all playback stops. During playback, all sound is routed to be recorded as a new sound file, which is also given a unique name "party%d".
Button 4 is set up as a panic button, to end playback if it is started in error via a momentary press. If the button is help down for 5 seconds it shuts down the pi.
I had hoped that by including a project save function (triggered just prior to shutdown), that the patch would remember the number assigned for each subsequent "party%d" sound file. However, when the Pi is rebooted it reverts to zero, and begins overwriting the prior sound files. I designed the patch so that the "recording%d" files are replaced every time, but I want to save the "party%d" files.
How can I get the patch to remember and continue where it left off? IE, "party1.wav" & "party2.wav" were created last time the device was on and the patch was running, so this time, once the pi boots up and the patch opens, we need to start with "party3.wav" and carry on from there.
Apologies that the patch is messy, I am still learning!
Using TouchOSC to draw into a 16 step array? communication back'n'forth? Show Array content in TouchOSC?
@esaruoho said:
I could try again, but it looked like UDP required me to know the IP address of both the laptop and the iPad, and that really threw me (i don't know how to figure out what the IP address of the iPad is, or how to make sure it's always the same, same for macOS).
Ah right, for bidirectional communication.
Actually in the netreceive help file, there is a flag for this: "optional -f flag for from address & port outlet (0.51+)".
Help file example prints from: list ::ffff:127.0.0.1 57120
where ::ffff:127.0.0.1
is an IPv6 address.
So...
... should configure the [netsend] to send to the first address from which messages were received (and I did a quick test, which worked). If you enable "Ping" in TouchOSC, then it will automatically send a message to the computer, which will trigger the "connect" logic right away.
Incidentally, I didn't know about this feature (never used the "from" address in Pd). My thought process was, "Well... this is a very common requirement, so let me have a look at the [netreceive] help patch and see if there's anything about 'from'" -- and toward the lower right, there's a [print from] box. Hm. Then, what's different about the [netreceive] feeding it is that it isn't only "-u -b xxxx" but rather "-u -b -f xxxx"... what's that "-f"? Then, looking up from there a little bit, there's a list of object creation flags, where "-f" is explained.
So the solution exists, and documentation for that solution is actually reasonably clear.
i have maybe an hour every 2-3 days to try and get something going, and also feel a bit like there's no "TouchOSC with PureData for idiots" blog-post for iPad / macOS going on, or at least i haven't been able to find it.
This I fully understand.
Pd OSC sending, like this. It won't send anything until after you push a connect ip.ad.dr.ess port
message into the netsend inlet -- as noted above, you can get the parameters for the connect message from [netreceive].
... producing messages like /1/toggle1 1.0
or /1/toggle2 0.0
. This type of message format is what you need to change a control's value on the tablet.
It's also possible to "set" the OSC command path before providing the arguments -- but try the simple way first.
hjh
Mix_take1.wav file???
Hi David,
Thanks very much for the reply.
Have just gone through saved files again (Yes, I am using Autmatonism) and the mists are clearing slightly!
I think I may have saved some others in a different place?
Will post again when I have a little more time.
Sorry to have panicked & wasted your time.
All best,
Brian.
AV Soundscape // Mars // Patch available for download
Download the patch here: https://patchstorage.com/av-soundscape-mars/
Data visualization patch for "mars" soundscape. RGB and movement data were extracted to a .wav file using GEM. The data was then used to sonify using different instruments along with various random algorithms to create more variety.
AV concept and data programming done on TouchDesigner by Andres Ponce Soundscape and sound programming done on Pure Data by Miguel Moreno Interface was added in post using DaVinci Resolve.
Original Video: https://www.instagram.com/p/CLzSsO9Ji49/
--
Link Tree: https://linktr.ee/MikeMorenoDSP