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.

Monday, January 28, 2008

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

--- In oopic@yahoogroups.com, "c2cam1234" <c2cam1234@...> wrote:
>
> In OoPIC v6 there's a sample program called,
> Sample-B-hd-Jinglebells-V6.osc.
>
> It has a series of 4 notes. I see this as 4 switches operated in
> sequence.
>
> What would the program look like for 3-part harmony -- that is, 3
> switches operated concurrently and in sequence?
>
> Any free code out there for this?
>
> Thanks
>

Not going to happen! There is only one timer generating a single
frequency connected to a single pin.

See in the oSpeaker documentation:

The Freq property is an instance of the oFreqH object which the
oSpeaker Object uses to generate a square wave output to drive the
speaker. Since all instances of the oFreqH Object use the same PIC
hardware then all instances of the oSpeaker Object will output at the
same frequency. Also note that all other objects that use the
oFreqH object will also use the same 16-Bit value as well. (see
oFreqH Object for more detail)

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: