This Forum is Dedicated For all The Object Oriented PIC Lovers .......... The concept behind OOPic is straight forward. Use preprogrammed multitasking Objects from a library of highly optimized Objects to do all the work of interacting with the hardware. Then write small scripts in Basic, C, or Java syntax styles to control the Objects. During operation, the Objects run continuously and simultaneously in the background while the scripts run in the foreground telling the objects what to do.

Tuesday, January 29, 2008

[oopic] Re: 1-part and 3-part harmony analogy.

--- In oopic@yahoogroups.com, "c2cam1234" <c2cam1234@...> wrote:
>
> Thanks for the quick response, rtstofer!
>
> Let me get this straight: Yes, the sample file,
> Sample-B-hd-Jinglebells-V6.osc, uses the Freq property in the oFreqH
> object, but *by analogy* (i.e., instead of musical notes, LEDs are
> used like switches - not using oFreqH, but other objects or code), are
> you implying that two or more switches can't be controlled
> concurrently and in sequence?
>
> Any free code out there for this?
>
> Thanks

I don't understand your question or the analogy.

You can have a lot of digital inputs and outputs. You can even have
analog inputs and create analog outputs using oPWMH. But LEDs are
outputs, switches are inputs and oFreq is an output (and there is only
one instance).

But, regardless of how many inputs you have, your code, having analyzed
the switches, can only set a single value (at a time) into the
frequency property. There is no way to add 3 different frequencies and
get harmony because there aren't 3 timers to do it with.

Look in the Files section for a lot of free code but there won't be
code to do what you are asking.

Richard


Yahoo! Groups Links

<*> To visit your group on the web, go to:

http://groups.yahoo.com/group/oopic/

<*> Your email settings:
Individual Email | Traditional

<*> To change settings online go to:

http://groups.yahoo.com/group/oopic/join

(Yahoo! ID required)

<*> To change settings via email:
mailto:oopic-digest@yahoogroups.com
mailto:oopic-fullfeatured@yahoogroups.com

<*> To unsubscribe from this group, send an email to:
oopic-unsubscribe@yahoogroups.com

<*> Your use of Yahoo! Groups is subject to:

http://docs.yahoo.com/info/terms/

No comments: