I want to code a f4, a5 dyad how do I do that?
play_chord [:f4,:a5]]
Thank you that is very helpful…
I think you have one too many closing brackets in the answer
try
play_chord [:f4,:a5]
OOOO oooo PPPP pppp SSSS ssss
From the point of view of theory, it is not an chord but an interval (It takes three notes to have a chord). In the absolute, you should be able to code “play_interval” but the “play_chord” fulfills its ofiice well so everything is fine lol
Is there a difference between play [:f4,:a5] and play_chord [:f4,:a5]?
Effectively, there’s no major difference between the two, except that play ‘expects’ a single note number/name (though you can use a list), whereas play_chord (multiple calls to play) demands a list/array of more than one note number/name.
play 60
sleep 1
play_chord [65,70,75]
sleep 1
play_chord 60
The last line will throw an error.
PD-Pi
Thank you.
In play_chord [60], there seems to be no error.
Yes, that’s a list with one element. Quirky but necessary.