How can i make chords on Arduino

Good Afternoon, I'd like to know if it is possible to create chords by using Arduino uno, and its function tone()?, i have been trying all day, even with that function millis(), but it seems to be impossible, maybe its just cause i am a novice.

If its possible, how?, what video should i watch to guide me?
In the case it is impossible by that way, which other thing could i try?

Thanks.

Good Morning

Take a search engine of your choice and ask the WWW for "chords by using Arduino uno"

1 Like

as @paulpaulson suggested, it’s a bit more complex, you can’t use tone() for concurrent frequencies.

You need to ‘synthesise the complex waveform in memory, then pump it out.

Depending on the frequencies needed, you may. be able to use two ‘timers’, and mix their hardware pins together.

1 Like

playing more than one tone at the same time

1 Like

No. The built-in tone() function will only play one frequency on one pin.

There is a third-party "Tone" library that can play multiple frequencies on multiple pins.

There are various projects that play polyphonic (multiple simultaneous notes) music. Google for polyphonic Arduino.

1 Like

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.