-
romulovieira-me
Dear Community,
I am trying to send OSC messages from my
osc_send
code toosc_receive
, as shown in the image below. Even after installing mrpeach, I cannot create objects that use this external. What could be happening? I am using Pure Data 0.54.1 on Windows 10. -
romulovieira-me
I have two patches on Pure Data as per the image below. As you can see, each patch opens in a different process. How do I send the values of one (which contains the send object) to the other, which contains the receive?
-
romulovieira-me
I want to send a variable number (e.g. int 1) from a lua script to Pure Data? How can I do this?
I'm trying [receive] object, but nothing happens.This is my code in Lua. We also need pdlua to works.
local ginga = pd.Class:new():register("ginga")
function ginga:initialize(sel, atoms)
self.inlets = 1
self.outlets = 1
return true
end -
romulovieira-me
Try this:
- git clone https://github.com/agraef/pd-lua.git
- cd pd-lua
- git submodule update --init (checks if Lua are installed in same directory than pd-lua)
- sudo make
- sudo make install
After this, probably pd-lua will be installed on yout computer. Check /usr/local/lib/pd-externals
-
romulovieira-me
@whale-av ddw_music
This is awesome. I made this little change and it works.
Thank you very much, guys. You're great. -
romulovieira-me
@ddw_music
I made some changes in qjacktctl and now it works!
Bellow are my steps to achieve this:- Install pulseaudio-module-jack: aptitude install pulseaudio-module-jack
- add to "/etc/pulse/default.pa" the following text: "load-module module-jack-sink
load-module module-jack-source" - Put Pure Data and QjackCTL with this setup --> photo
Now, you can use Pure Data and other music and videos applications, like YouTube, Twitch or VCL.
-
romulovieira-me
@ddw_music
I'm using a built-in soundcard, on Linux Mint 20.04. QjackCTL it is also installed
Should I already be able to use the mic on Pure Data with the audio setting on JACK? -
romulovieira-me
I used the specs from this link (https://askubuntu.com/questions/572120/how-to-use-jack-and-pulseaudio-alsa-at-the-same-time-on-the-same-audio-device ) and now I can hear sound from Pure Data and my browser at the same time.
However, for that, I had to leave the Pure Data audio media in the "jack", which prevents me from capturing the sound of my microphone using the following patch:
[adc~]
|
|
|
[dac~]Any suggestions on how to resolve this?
-
romulovieira-me
Hello,
I have two very simple questions
-
Why when Pure Data, when running on Linux, does it not allow other audio and video applications to run?
-
Is there any way to resolve this?
Thanks!
-
-
romulovieira-me
@seb-harmonik.ar I want to run a Pd patch in a Lua script. So, I will try LuaPD. That was illuminating. I was trying to use pdlua for this
Thanks.
-
romulovieira-me
@seb-harmonik.ar Hi Seb
Can you provide me some example in how to run a pure data patch inside a Lua script?
Prints and pictures are appreciated -
romulovieira-me
@seb-harmonik.ar It look likes that I do not install pdlua correctly. I will try reinstall and run the code again.
Thanks, Seb! Stay tuned on this post for news. -
romulovieira-me
@seb-harmonik.arI installed the pdlua library in Lua's package.path directory and the following error appeared:
./pd.lua:22: attempt to index a nil value (global 'pd')
stack traceback:
./pd.lua:22: in main chunk
[C]: in function 'require'
test.lua:1: in main chunk
[C]: in ?I'm getting inspiration from some codes present here: https://love2d.org/forums/viewtopic.php?t=90014
-
romulovieira-me
@seb-harmonik.ar I remove the require, but errors continue. I do not know what to do.
-
romulovieira-me
Hello,
I have this code in lua (teste.lua) that allows to create pure data patches in this language. However, when running it, the following error appears: "module 'pdlua' not found", even though I have the library installed.
Does anyone know the reason for the error?
-
romulovieira-me
@oid It look likes luajack package is broken =(
-
romulovieira-me
@oid Thanks for the answer.
I will run some tests with this tool and let you know the results. -
romulovieira-me
I'm creating a Lua script capable of capturing the sound of my microphone in real time. Can I use the Ofelia library to send the sounds captured in Pure Data to the Lua script?
-
romulovieira-me
@alexandros @seb-harmonik.ar Seb, you are right. I want to 'use' a Pd patch inside Lua.
For example, using the audio from my microphone (which is captured in Pure Data) in an application made in Lua.I discovered this library (https://love2d.org/forums/viewtopic.php?t=90014&sid=055636f859e6b8ab0e470c4aaeb8c605) but it looks like it's only useful for the LOVE game engine.
-
romulovieira-me
Hey guys
I know that it is possible to use Lua scripts in Pure Data using pd-lua. And the opposite, is it possible?