Hi,
Thanks. Yes, I'm going to need 20 Mhz osc. for midi.
Any examples on how to set up hserin code?
Thanks again, I appreciate.
Tony
Hi,
Thanks. Yes, I'm going to need 20 Mhz osc. for midi.
Any examples on how to set up hserin code?
Thanks again, I appreciate.
Tony
use the calc i did few month/years ago.. FREEBIES
http://www.picbasic.co.uk/forum/atta...6&d=1118138371
click on the button at the right twice and you're in business.
Now using the USART and this calc, you may discover that it will be possible to acheive a nice error % even with a 4MHZ clock.
HTH
Last edited by mister_e; - 14th July 2006 at 17:35.
Steve
It's not a bug, it's a random feature.
There's no problem, only learning opportunities.
Hi,
That's cool. Thank you.
I'm wondering if anyone could refer me to examples of HSERIN code.
I'm sending midi out like this:
hserout [$90, note, Velocity] 'send midi note & velocity out on channel 1
And with another pic18f452 I would just like to receive those transmitted variables; "note" and "Velocity".
Any ideas how I can proceed?
Thanks again,
Tony
Last edited by TonyA; - 14th July 2006 at 19:18.
I think everyone's avoiding the original question because it just seems too obvious.
If you're sending it with
hserout [$90, note, Velocity]
then you'd receive it with
hserin [wait($90), note, Velocity]
<br>
DT
Yes, that's what I needed. Thanks.
What is the "wait", a variable?
When I try to compile it in micro code studio I get an error for
HSerIn [wait($90), note, Velocity]
it says "expected ']'.
Thanks,
Tony
Last edited by TonyA; - 14th July 2006 at 20:46.
Hi Sorry, that works. I had to fix my code.Originally Posted by TonyA
I'm sure the hserin will work, but I like to read the port directly. Here is a
program that I wrote 3 years ago for a 909 kick drum copy that I built. It worked
great. It only responded to one MIDI channel and one note, but I think you will
be able to see what's happening and figure out how to implement your design.
Bookmarks