Pages: [1]   Go Down
Author Topic: controlling osc pitch with usb tablet school project  (Read 809 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 4
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi guys!

Im fairly new to building stuff with arduino. I want to  control pitch and maybe tone sustain from an osc with an usb tablet through max/msp.
I reckon i need to setup the osc with arduino and make max see the tablet as a midi controller. link it all up and get freaky with it.

Could anyone please advice me on this? maybe tell me if this is at all possible! smiley

Thanks in advance!
Tom.
Logged

Seattle, WA USA
Offline Offline
Brattain Member
*****
Karma: 601
Posts: 48543
Seattle, WA USA
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
I want to  control pitch and maybe tone sustain from an osc with an usb tablet through max/msp.
Excuse me. What is the Arduino going to be doing? Listening to the music and dancing?

Quote
I reckon i need to setup the osc with arduino
We don't do hill-billy here. Once more in English, please.

Quote
maybe tell me if this is at all possible!
If what is possible? I can't figure out what you want the Arduino to do.
Logged

Manchester (England England)
Offline Offline
Brattain Member
*****
Karma: 596
Posts: 33271
Solder is electric glue
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

You can't connect your USB device to the arduino because they are both slaves. You possibly could using a USB host shield but the software that needs to be written for that is probably beyond you.
This is a project that is best done without an arduino's involvement using software on your PC, possibly in the free language called Processing. Getting support for your USB tablet is going to be your problem.
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 4
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi Grumpy_Mike,

Thanks for you reply!

 I was not planning on connecting the tablet to the arduino. My idea is using the tablet to control parameters in max msp, sending that to my arduino controlling an osc.

I am having trouble getting max to detect the tablet though..
Logged

Manchester (England England)
Offline Offline
Brattain Member
*****
Karma: 596
Posts: 33271
Solder is electric glue
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

What OS are you running.
If you are on a Mac then you could use quartz composer to handle the conversion between the USB device and some OSC messages.
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 4
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Im on a windows 7 machine.

I think It comes down to making a x/y controller with max and a controller. then i want to output the data from max into the arduino, controlling an oscillator. id like one parameter to control pitch and the other note length. I also wonder if there isnt an onboard oscillator on the mega 2560?

Logged

Manchester (England England)
Offline Offline
Brattain Member
*****
Karma: 596
Posts: 33271
Solder is electric glue
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

No on board oscillator but there are some timers. However an arduino isn't great at producing quality tones. Shame about the windows.
Would you not be better getting max to do it all?
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 4
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Yes That would be easier, but the assignment says we have to build or use an external osc.. And this seemed a nice opportunity to get more aquainted with my arduino.

At the moment im also struggling with getting max to detect any HID's that are installed.strangely enough, the help patches or Hi tester dont detect any devices..

Its quite a challenge :p

Thanks again for your effort!
« Last Edit: October 11, 2011, 03:54:07 pm by Woosasa » Logged

Nowhere
Offline Offline
God Member
*****
Karma: 3
Posts: 852
|-\ |\|\
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Fancy polyphonic tones with many possible waveforms are possible with arduino, it's just a little tricky dealing with timers and stuff.


However, in a much simpler way, it's possible to get simple square waves, it's just toggling an output pin at the right frequency.  This can be done manually, in loops with millis() or delayMicroseconds(), but there are also libraries that can do it automatically, like the tone library, or the tone() function built in to arduino.
Logged

Soundcloud page: http://soundcloud.com/beefinator-2
Youtube channel: http://www.youtube.com/user/beefinator14
Old soundcloud page (ran out o

Pages: [1]   Go Up
Jump to: