-
terrabyte
Hello again!
I've written a patch that uses twelve buttons and six analog controls (four potentiometers and two slide pots) as input for a sampler. The trouble is, however, that despite communications working in the pduino help file, and when testing them with the Firmata test application, the analog pins are very slow and the digital pins don't actually appear to be working at all. I'm running this on a Mac with OSX 10.6.8 with an Arduino Uno (Revision 3). I've tried using an external power supply and modifying how much power the buttons get, but I still get the same result...
The code and samples are here (the file was too big to upload). It contains all the samples so that you don't get spewed with errors during startup. There's a readme.txt file as well as a pd readme inside ArduiContPd.pd which should explain some of the more confusing elements...
https://www.dropbox.com/s/dstspchrranr6qm/ArduiContPD.zip
I hope that you can help and thanks in advance.
-
terrabyte
This is a random arp generator that takes the pattern 1 3 5 3 (degrees of a scale) and slowly messes around with it. It messes around with tempo and pitch slowly enough for excellent transition and effect. Anyway, enjoy it and do with it as you wish. And tell me what you do! I love to hear what people do with my little ideas! Thank you!
Note: Admittedly, it's not the best code I've written, but it does the job. Feel free to suggest changes.
-
terrabyte
Don't worry, we all screw up. Anyway, it works brilliantly now, I'll upload the subpatch later for general use. Thanks so much! I'll post the full patch when it's completed, too!
-
terrabyte
Hello! It seems like that fix worked, but now I'm getting a different error when I send the symbol filename:
"pack_symbol: wrong type"
I tried changing pack f $0 to pack s f $0, but whenever I tried that, I got the "0-chL doesn't exist" error.I'm quite glad that I managed to spot the deal with read, though! Looks like I'm getting better now!
Thanks for any more help, and sorry for asking a lot of questions.
-
terrabyte
I'm afraid that I'm still getting exactly the same error despite renaming them... Is it something to do with the message "read -resize $1 $0-chL $0-chR"? Thanks for your continued help!
-
terrabyte
Here it is again. Hopefully it'll work this time, it's now only 2.5mb rather than 6mb. It's only that big because of the 22 second sample... If this doesn't work I'll dropbox it.
EDIT: Got rid of the sample. You'll have to substitute the message in pd 1a if you want to test it.
http://www.pdpatchrepo.info/hurleur/ArduiContPD-No_Samples.zip
-
terrabyte
That's funny, that's the third time I've uploaded it. I'm on Safari (Mac) I that helps. I'll put it on Dropbox and post the link later. Thanks for the quick reply, by the way!
-
terrabyte
Hello! Despite following your instructions I'm having problems with using $0. I followed your instructions in my sub-patch 'lad', but I still get the "no 0-chL" error. Please help! I've not been using PD for very long, so I may have made a very silly mistake. pd 1a is supposed to send a sound file to be rendered in lad. I've attached the .pd files.