giuliomoro Yes, they are
render.cpp file disables sound on bela: both microphone and osc pd patches
does the MPR121 example work on its own?
- Edited
I have now reverted to my old render.cpp, and the I2CMPR121 files, adapted the library paths and now I get this error:
no matching function for call to 'sys_doio' column: 3, line: 343
/root/Bela/projects/Electret_test/render.cpp:343:3: error: no matching function for call to 'sys_doio'
sys_doio(pd_that);
~~~
/usr/local/include/libpd/s_stuff.h:168:6: note: candidate function not viable: requires 0 arguments, but 1 was provided
void sys_doio();
^
1 error generated.
make: *** [/root/Bela/projects/Electret_test/build/render.o] Error 1
Line 343 gives:
#ifdef PD_THREADED_IO
void fdLoop(void arg){
t_pdinstance pd_that = (t_pdinstance)arg;
while(!gShouldStop){
sys_doio(pd_that);
usleep(3000);
}
}
#endif / PD_THREADED_IO */
giuliomoro Like a charm
Pretty bangs when touched
I do get this in the bela terminal when I run the I2CMPR121 on it's own:
1 mode switch detected on the audio thread.
Bela stopped
Building project ...
Build finished
Running project ...
Running Pd 0.48-2
No MIDI device enabled
bonk version 1.5
fiddle version 1.1 TEST4
pique 0.1 for PD version 23
sigmund~ version 0.07
output~
error: ... couldn't create
verbose(4): ... you might be able to track this down from the Find menu.
0: bang
1: bang
Which basically says sound output - could not create
--> What is verbose(4) and the Find menu?
dywen --> What is verbose(4) and the Find menu?
those are printouts by Pd
dywen Which basically says sound output - could not create
interesting! you must be screwing something up pretty badly!
dywen I do get this in the bela terminal when I run the I2CMPR121 on it's own:
which project is this?
dywen /root/Bela/projects/Electret_test/render.cpp:343:3: error: no matching function for call to 'sys_doio'
sys_doio(pd_that);
fix this by removing pd_that
from sys_doio(pd_that)
.
- Edited
giuliomoro Which basically says sound output - could not create
interesting! you must be screwing something up pretty badly!
So, I added a |dac~| and the no sound output error disappeared
Late night forum posting
This is the Patch I'm using to test the MPR121
Output is perfect, a bang each time I touch the sensors:
Bela stopped
Building project ...
Building render.cpp...
...done
Extracting dependencies of library Midi
Extracting dependencies of library Scope
Extracting dependencies of library UdpServer
Linking...
...done
Build finished
Running project ...
Running Pd 0.48-2
No MIDI device enabled
bonk version 1.5
fiddle version 1.1 TEST4
pique 0.1 for PD version 23
sigmund~ version 0.07
0: bang
1: bang
2: bang
3: bang
-----> Back to post 1 in this Forum thread, still using these render.cpp and I2CMPR121 files: https://cloud.constantvzw.org/s/pNc45tZKRx2aRsQ
Which worked fine in August 2019, here's a video: http://www.wvanw.space/?p=322
(yesterday I worked with someone who's really good at pd, we have turned everything outside in)
- Edited
In August 2019 this render.cpp for the mpr121 Touch sensor worked.
--> So I have reverted back to the IDE that was available at that time: v0.3.6b
And guess what, I have sound
So in the rewrite of the IDE something happened that disables sound in the render.cpp I have.
This was a lot of unnecessary misery...
so it looks like your render.cpp
file from here is missing these lines from the setup()
function:
// start DSP:
// [; pd dsp 1(
libpd_start_message(1);
libpd_add_float(1.0f);
libpd_finish_message("pd", "dsp");
which are the equivalent of turning DSP on in Pd (i.e.: they are required to perform any audio processing), so without them it is normal that you won't hear anything.
Here is an attempt at integrating MPR121 into a modern version of Bela. Please try it and let me know how it goes
giuliomoro
yes, that did the trick! Very bizarre then that there is audio with the older IDE as it is logical to have to activate the dsp in PD. Non capisco - No lo entiendo - Ik begrijp dit niet - I don't understand.
I compared 'my render.cpp' a bit to the one for Trill (which can replace everything here.. and so it goes..).
Now the other work begins, making the interface and more complex and musical Pure Data Patches..
Thanks!
Ciaooo
w
dywen Very bizarre then that there is audio with the older IDE as it is logical to have to activate the dsp in PD.
yes indeed, who knows?